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 


[help] Advanced BP condition

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
reverser69
Expert Cheater
Reputation: 0

Joined: 03 Sep 2014
Posts: 107

PostPosted: Wed Jan 27, 2021 5:17 am    Post subject: [help] Advanced BP condition Reply with quote

hi all

I need some help regarding the advanced LUA breakpoint condition
is there a manual about it? Google is not helping.

for example :
stop if [rcx+10] is not 1
stop if xmm0 is not 6.5
stop if a symbol i defined equals X
stop if the thread is XXX
stop if between two values
stop if BP is hit for X times
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Jan 27, 2021 5:43 am    Post subject: This post has 1 review(s) Reply with quote

stop if [rcx+10] is not 1

can be done using a simple 1 line lua condition:
Code:

readInteger(RCX+0x10)~=1


stop if xmm0 is not 6.5. (You did not specify if it's a double or float, so assuming float)
needs a complex condition:
Code:

debug_getContext(true)
return byteTableToFloat(XMM0)~=6.5

(note that for floats I recommend doing a range check like >=6.49 and <=6.51 as floats can sometimes not be exactly 6.5000000)

stop if a symbol i defined equals X
(I'm assuming your symbol points to an address, and you don't mean when some other script changes the address of that symbol, and that the type of the symbol is a 4 byte)
Code:

readInteger(getAddressSafe("a symbol I defined"))==X


stop if the thread is XXX
Code:

THREADID==XXX


stop if between two values
Let's assume RCX between 10 and 20
Code:

RCX>=10 and RCX<=20


stop if BP is hit for X times
Not built in so this needs a complex one as well, and afterwards you need to reset the counter
Code:

if not counter then counter=0 end
counter=counter+1
return counter>X

_________________
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
reverser69
Expert Cheater
Reputation: 0

Joined: 03 Sep 2014
Posts: 107

PostPosted: Wed Jan 27, 2021 5:55 am    Post subject: Reply with quote

thank you very much.
but is there any link to a comprehensive LUA just for working with CE?
every time i google it's just LUA for creating games and ...

of course, there's CE a forum but i don't want to mess around with noobish questions.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Jan 27, 2021 6:02 am    Post subject: Reply with quote

there's celua.txt but that's mostly for describing the functions available to CE, but for the rest it's just normal Lua
_________________
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 -> 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