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 and Trace Condition (With Offset)

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

Joined: 04 Feb 2020
Posts: 18

PostPosted: Sun Feb 09, 2020 9:20 am    Post subject: Break and Trace Condition (With Offset) Reply with quote

Hi

readInteger(0x0019EE18)==0x3F800000 It work.
readInteger(ESP+18)==0x3F800000 It doesn't work (ESP+18=0x0019EE18)

It seem that +Offset is not recognized
Do you know the correct syntax?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Sun Feb 09, 2020 10:12 am    Post subject: Reply with quote

Did you mean to write ESP+0x18?
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Rexkh
Newbie cheater
Reputation: 0

Joined: 04 Feb 2020
Posts: 18

PostPosted: Sun Feb 09, 2020 10:38 am    Post subject: Reply with quote

Yes. It's equal to

cmp [esp+18],0019EE18

in script

And I come across another problem. If I write the script as following

cmp ebp,01000001 (01000001 is value, not address) and activate it, 01000001 turn to StateOfDecay.exe+C00001. why?

81 FD 01000001 cmp ebp,StateOfDecay.exe+C00001
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Feb 09, 2020 10:56 am    Post subject: Reply with quote

so you tried this?
Code:

readInteger(ESP+0x18)==0x3F800000


as for the second thing, click view->show module addresses

_________________
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: Sun Feb 09, 2020 10:59 am    Post subject: Reply with quote

How can I tell the compiler that 01000001 is hex number, not an address?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Feb 09, 2020 11:13 am    Post subject: Reply with quote

there is no difference between a hex number and an address

just click view->show module addresses until the checkbox disappears and it shows all values as hexadecimal

_________________
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: Sun Feb 09, 2020 11:25 am    Post subject: Reply with quote

It's so tricky. I have to 0x before 18 to make it works. Dark Byte. You know everything.

By the way, uncheck Show module address is just toggle between Real Address and Base Address plus offset.

The problem is, If address 01000001 = 00005555, it would compare ebp with 00005555 instead of 01000001.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Feb 09, 2020 12:13 pm    Post subject: Reply with quote

Code:

cmp ebp,StateOfDecay.exe+C00001

is the same as
Code:

cmp ebp,01000001

so in both cases the value of the EBP register gets compared with 01000001

if you do
Code:

cmp [ebp],01000001

and EBP is 00005555 then the value at 00005555 gets compared with 01000001

if EBP is 12345678 then the value at 12345678 gets compared with 01000001

_________________
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: Sun Feb 09, 2020 12:28 pm    Post subject: Reply with quote

Oh my bad, you are right.

By the way, do you know if it is possible to search for specific opcode.

Ex. add eax,???. search for add of eax register and any register. Plus how many of them in total in the entire code.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Feb 09, 2020 12:29 pm    Post subject: Reply with quote

search->find assembly code
and then search for
Code:

add eax,*

_________________
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