| View previous topic :: View next topic |
| Author |
Message |
BodaciousBrian How do I cheat?
Reputation: 0
Joined: 30 Jun 2010 Posts: 1
|
Posted: Wed Jun 30, 2010 2:43 pm Post subject: Freeze address stored in edi |
|
|
I'm quite new to cheat engine, I normally use IDA pro and a hex editor =) However, I don't want this cheat to be on all the time, so i'm not about to modify the file.
I believe you call this a pointer:
Core.DLL+409DD Code :dec [edi]
This is the code that takes currant ammo(stored in edi) and subtracts 1 on firing.
I cant simply nop this out, it crashes the program. And EDI is dynamic, I have yet to see it in the same place twice. How can I make a trainer to freeze the address located at edi?
I notice the trainer maker built in to CE says "hint: make use of pointers when the game uses dynamic memory allocation" so there has to be a way!
|
|
| Back to top |
|
 |
Pingo Grandmaster Cheater
Reputation: 8
Joined: 12 Jul 2007 Posts: 571
|
Posted: Wed Jun 30, 2010 3:35 pm Post subject: |
|
|
Core.DLL+409DD = static address, EDI = dynamic like you said.
Try changing the dec to inc
See if that still crashes the game.
dec means decrease by 1
inc is increase by 1
_________________
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25866 Location: The netherlands
|
Posted: Wed Jun 30, 2010 4:53 pm Post subject: |
|
|
looks to me it's a decrease routine called by a script engine
it might be better to see if you can find a way to detect is the object being decreased is your ammo or not. Perhaps there's a specific class pointer/function table pointer you can use
_________________
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 |
|
 |
BodaciousBrian How do I cheat?
Reputation: 0
Joined: 30 Jun 2010 Posts: 1
|
Posted: Wed Jun 30, 2010 8:09 pm Post subject: |
|
|
Changing dec to inc forces a crash. It is indeed the ammo variable that I'm looking for, freezing it works well! Here is about all the information I can uncover about it. Searching for the address stored in edi returns 0 results, and I don't know enough about assembly language to see how it generates the address it stores in edi(which should be the solution to this problem).
| Description: |
|
| Filesize: |
146.5 KB |
| Viewed: |
6712 Time(s) |

|
|
|
| Back to top |
|
 |
|