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 


quick way to trace the caller

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Fri Feb 24, 2012 11:04 am    Post subject: quick way to trace the caller Reply with quote

let's suppose you're in a shooter

your game runs and runs and when you fire the run run code calls the "decrease ammo" code ...

for whatever reasons you want to know who(address) called the decrease ammo code ...

...
in the code list doubleclick the decrease ammo code.
the debugger should pop at that instruction.
scroll down the code till you see a ret instruction ...
right click the instruction before ret and click "break and trace instructions" ... track only 4 instructions not 1000 ...
now shoot one bullet.
a new window(tracer) should appear with some code.
right click anywhere and choose "expand all" ; and now doubleclick the instruction after your ret ... the debugger(memory viewer) should now show that instruction ... scroll up one line ... there you should find your caller.

_________________
... Fresco
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5636

PostPosted: Fri Feb 24, 2012 11:23 am    Post subject: Reply with quote

Also useful for finding the end of the function:

Right-click -> Select current function

And if you stop the game (manual debugging), then Shift + F8 (Execute till return).

Or you can set a manual breakpoint and set a hotkey for Debug-> Run.
If the breakpoint is hit, CE will show the return addresses from the stack in the bottom right corner. Double click on them to see the return point.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Fri Feb 24, 2012 11:55 am    Post subject: Reply with quote

That works too most of the time. (As long as EBP isn't messed with, and as the OP is the same guy from http://forum.cheatengine.org/viewtopic.php?t=548457 , you can assume that in his case, EBP is messed up)
_________________
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
Jeffrey_
Expert Cheater
Reputation: 1

Joined: 10 Jun 2011
Posts: 164

PostPosted: Wed Mar 07, 2012 1:30 pm    Post subject: Reply with quote

pretty useful, thanks fresco
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials 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