Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Freeze address stored in edi

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
BodaciousBrian
How do I cheat?
Reputation: 0

Joined: 30 Jun 2010
Posts: 1

PostPosted: Wed Jun 30, 2010 2:43 pm    Post subject: Freeze address stored in edi Reply with quote

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
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Wed Jun 30, 2010 3:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

Joined: 09 May 2003
Posts: 25866
Location: The netherlands

PostPosted: Wed Jun 30, 2010 4:53 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
BodaciousBrian
How do I cheat?
Reputation: 0

Joined: 30 Jun 2010
Posts: 1

PostPosted: Wed Jun 30, 2010 8:09 pm    Post subject: Reply with quote

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).


edi.JPG
 Description:
 Filesize:  146.5 KB
 Viewed:  6714 Time(s)

edi.JPG


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites