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 


Break if condition is met

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
sitapea1337
Newbie cheater
Reputation: 0

Joined: 29 Mar 2010
Posts: 19

PostPosted: Wed Feb 08, 2017 6:25 am    Post subject: Break if condition is met Reply with quote

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 Smile
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Feb 08, 2017 6:31 pm    Post subject: Reply with quote

Code:
debug_setBreakpoint(0x12345678, 1, bptExecute, function()
  if EAX ~= 123 then
    debug_continueFromBreakpoint(co_run)
    return 1
  end
end)
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Thu Feb 09, 2017 4:15 am    Post subject: Reply with quote

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.
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
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