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 


How to compare float value in Conditional Break and Trace?

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

Joined: 04 Feb 2020
Posts: 18

PostPosted: Tue Feb 04, 2020 5:15 pm    Post subject: How to compare float value in Conditional Break and Trace? Reply with quote

Hi everyone, I would like to know how to write Break and Trace condition in correct format. I know we can write something like EAX==0x000000A4 but can we write something like (0x191B6EA4)==(float)149. I want to compare value in the address with float.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Tue Feb 04, 2020 5:56 pm    Post subject: Reply with quote

Code:

readFloat(0x191B6EA4)==149

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

Joined: 04 Feb 2020
Posts: 18

PostPosted: Tue Feb 04, 2020 6:33 pm    Post subject: Reply with quote

Can I try something like readFloat (ECX)==149?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Feb 05, 2020 2:39 am    Post subject: Reply with quote

if ecx is a pointer to a float yes
if ECX itself is a float then you need to convert it first

byteTableToFloat(dwordToByteTable(ECX))==149

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

Joined: 04 Feb 2020
Posts: 18

PostPosted: Wed Feb 05, 2020 5:27 am    Post subject: Reply with quote

Excuse me. I'm not so sure what you mean. ECX store address and that address store float value.

ECX=0019F178
0019f178=(float)149

I want to compare to see if 0019f178 is equal to (float)149

Can I write readFloat([ECX])==149?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Feb 05, 2020 9:26 am    Post subject: Reply with quote

then use
Code:

readFloat(ECX)==149


if the target is 64-bit then use RCX instead of ECX (though it should work)

_________________
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