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 


Breakpoint conditional on other breakpoint?

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

Joined: 19 May 2012
Posts: 12

PostPosted: Tue May 29, 2012 6:05 am    Post subject: Breakpoint conditional on other breakpoint? Reply with quote

How can I set a breakpoint to only trigger if another breakpoint has been previously triggered?

I want to break within a function that is called very often, but only if a function far up the call stack is also called.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Tue May 29, 2012 7:57 am    Post subject: Reply with quote

define the function onBreakpoint

in there check if if the first breakpoint has been triggered, and if so, cause an actual break


alternatively, use a more complex conditional breakpoint code
In the breakpoint that needs to be triggered first set a variable to a specific state (and set it to never actually break, just update a variable)
then on the breakpoint you wish to break do a check if that variable has been set and if so, break

_________________
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
hjefferson
Newbie cheater
Reputation: 0

Joined: 19 May 2012
Posts: 12

PostPosted: Tue May 29, 2012 12:31 pm    Post subject: Reply with quote

Ah ok, wasn't sure if there was a non-Lua way to do it.

Thank you.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Tue May 29, 2012 12:41 pm    Post subject: Reply with quote

Well, you could always go with the plugin route and write it in a language you're good at. And in the plugin make use of the debugger callback, but I think lua is easier than that
_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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