| View previous topic :: View next topic |
| Author |
Message |
Gwinx Advanced Cheater
Reputation: 0
Joined: 30 Jul 2010 Posts: 65
|
Posted: Mon Aug 29, 2011 5:32 pm Post subject: Help NOP? |
|
|
| I need to know when to NOP and when NOT TO. TY!
|
|
| Back to top |
|
 |
Innovation Grandmaster Cheater
Reputation: 12
Joined: 14 Aug 2008 Posts: 617
|
Posted: Mon Aug 29, 2011 8:38 pm Post subject: |
|
|
| NOPs are generally used to replace other opcodes with "code that does nothing."
|
|
| Back to top |
|
 |
Radiation Grandmaster Cheater
Reputation: 14
Joined: 17 Jun 2009 Posts: 842 Location: Chernobyl
|
Posted: Tue Aug 30, 2011 1:51 am Post subject: |
|
|
if you see a line of code that tells the game to subtract ammo every time you shoot, you would nop that line of code which will tell the game to go over to the next instruction, thus skipping the subtraction function. your ammo will never be subtracted. unlimited ammo.
hope i helped
_________________
|
|
| Back to top |
|
 |
Seergaze3 Master Cheater
Reputation: -1
Joined: 10 Mar 2009 Posts: 347 Location: earth
|
Posted: Tue Aug 30, 2011 2:31 am Post subject: |
|
|
before trying to NOP a code i would recommend you to back it up, in case its something to do with story/cutscene triggers, you could really screw up the game, espically in rpgs
and also, take itapas example, NOP'ing the entire subtract ammo code might also make the enemy also having infinite ammo, so you have to becareful if thats not what you want
|
|
| Back to top |
|
 |
Radiation Grandmaster Cheater
Reputation: 14
Joined: 17 Jun 2009 Posts: 842 Location: Chernobyl
|
Posted: Wed Aug 31, 2011 12:03 am Post subject: |
|
|
| im4eversmart wrote: | | and also, take itapas example, NOP'ing the entire subtract ammo code might also make the enemy also having infinite ammo, so you have to becareful if thats not what you want |
oh yes, that's right, i didn't take that into account
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Aug 31, 2011 1:40 pm Post subject: |
|
|
You're better off avoiding nops as much as possible and actually use code caves instead so you can still allow normal code flow to happen in such cases as mentioned above. Typically nop'ing something is generally useful when you are certain the effect wont break the game/app, only effects what you want it to, and is not some huge mess of replacements.
If you find yourself nop'ing a whole function, find different methods to approach what you are doing. Use jumps, use returns, and so on. No need to write 100 nops when you can just write a simple ret instead. (Ensuring you cleanup the stack and such if the function needs it.)
_________________
- Retired. |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25861 Location: The netherlands
|
Posted: Wed Aug 31, 2011 4:17 pm Post subject: |
|
|
Also, it's a matter of severity.
Is infinite ammo for an enemy really a problem or not? (Most fps games cheat with that in singleplayer giving them inf ammo anyhow)
for health it is of course a problem yes. The first method I usually go with is compare against the function table pointer in the class, but if it's used by the enemy as well then compare against other stuff like team id's, or finding a pointer to a block that describes the player (structure spider can be useful here)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
haunted5 Cheater
Reputation: 1
Joined: 23 Aug 2011 Posts: 35
|
Posted: Mon Sep 19, 2011 9:10 am Post subject: |
|
|
Hi,
Just to add a little info,
I normally use CE 'what addresses this code accesses' option to see if the same code is used by multiple addresses and if it is used then a nop might crash the game.
Also I wouldnt Nop a instruction that uses a pop like 'fstp' cause if I Nop that the value reamins on stack and is used by the game later often causing a crash.
Hope this helps
|
|
| Back to top |
|
 |
|