View previous topic :: View next topic |
Author |
Message |
Fresco Grandmaster Cheater Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
Posted: Fri Feb 24, 2012 11:04 am Post subject: quick way to trace the caller |
|
|
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 |
|
|
Geri Moderator Reputation: 111
Joined: 05 Feb 2010 Posts: 5636
|
Posted: Fri Feb 24, 2012 11:23 am Post subject: |
|
|
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.
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Fri Feb 24, 2012 11:55 am Post subject: |
|
|
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 |
|
|
Jeffrey_ Expert Cheater Reputation: 1
Joined: 10 Jun 2011 Posts: 164
|
Posted: Wed Mar 07, 2012 1:30 pm Post subject: |
|
|
pretty useful, thanks fresco
|
|
Back to top |
|
|
|