View previous topic :: View next topic |
Author |
Message |
gir489 Grandmaster Cheater Reputation: 14
Joined: 03 Jan 2012 Posts: 835 Location: Maryland, United States
|
Posted: Sun Aug 24, 2014 10:29 am Post subject: Condition breakpoints with pointers? |
|
|
I'm trying to deference the SP to see what's on the stack, but it doesn't seem to be working.
I tried if [ESP+4] != 0 then return 0; else return 1; But it doesn't seem to be working, even though I can see it with the VSDBGR that the call is happening when I try it with the VSDBGR . If I just set a blind breakpointer, I get a hit once every frame, because the game is calling the function once per frame, but it's only a rare condition I care about.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sun Aug 24, 2014 10:52 am Post subject: |
|
|
The condition is a lua statement. Use readInteger(ESP+4) to get the value.
E.g:
Code: |
return (readInteger(ESP+4)==0)
|
Or as a simple condition:
Code: |
readInteger(ESP+4)==0
|
_________________
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 |
|
|
gir489 Grandmaster Cheater Reputation: 14
Joined: 03 Jan 2012 Posts: 835 Location: Maryland, United States
|
Posted: Sun Aug 24, 2014 2:38 pm Post subject: |
|
|
Dark Byte wrote: | The condition is a lua statement. Use readInteger(ESP+4) to get the value.
E.g:
Code: |
return (readInteger(ESP+4)==0)
|
Or as a simple condition:
Code: |
readInteger(ESP+4)==0
|
|
I don't like Lua, and I try to avoid it if I can. But thanks.
|
|
Back to top |
|
|
|