 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
sitapea1337 Newbie cheater
Reputation: 0
Joined: 29 Mar 2010 Posts: 19
|
Posted: Wed Feb 08, 2017 6:25 am Post subject: Break if condition is met |
|
|
Hey guys,
I'm trying to trace "a function" that is called by thousands of times, but I'm interested only in one time where specific condition is met (EAX+4).
Now, I know the specific EAX value and I need CE to break and trace ONLY when EAX is specific value.
Is it possible?
Right now it seems CE can TRACE UNTIL condition is met, that's not the same thing at all.
I need to BREAK WHEN/IF condition is met.
PS: "a function" is simple "mov" and "retn", nothing else, but since it's called thousands of times within the program, then looking through every call is pain in the ass.
Thank you.
EDIT: I cannot put "Break and trace" and after change break condition. Why? Because it breaks and traces as soon as I put the breakpoint. There is no time to change to break condition, it's instant break&trace after I put it.
So therefore, maybe consider adding "Break condition" into "Break and trace", if it doesn't already exist.
EDIT2: Oh stupid me - got it by pausing the game.
Anyways, still thing to consider, please add it to your list so one could add break condition to break and trace.
At the moment you need to do:
1) Pause the game;
2) Place break and trace;
3) Change/add break condition;
4) Un-pause the game.
Annoying, but manageable
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed Feb 08, 2017 6:31 pm Post subject: |
|
|
Code: | debug_setBreakpoint(0x12345678, 1, bptExecute, function()
if EAX ~= 123 then
debug_continueFromBreakpoint(co_run)
return 1
end
end) |
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Thu Feb 09, 2017 4:15 am Post subject: |
|
|
This needs to be made into a lua extension or implemented in CE. I've had to use x64dbg/olly but there's been several times now i've had to do this.
_________________
|
|
Back to top |
|
 |
|
|
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
|
|