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 do i make a breakpoint for this:

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

Joined: 10 Apr 2020
Posts: 174

PostPosted: Wed Jul 08, 2020 12:39 pm    Post subject: How do i make a breakpoint for this: Reply with quote

So i have this:

CMP byte ptr [esi+0x8],3E

I need it to break if byte at [esi+0x8] is 3E.

I tried:

readBytes(readPointer(ESI+0x8), 1) == 3E

but it didnt work Sad
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 98

Joined: 14 Jul 2007
Posts: 3349

PostPosted: Fri Jul 10, 2020 3:40 am    Post subject: This post has 1 review(s) Reply with quote

The comparison is a good start, but that's not where you break.
After the comparison, you need to make a jump to some dummy instruction where you will break.

E.g.
Code:
cmp byte ptr [esi+0x08],0x3E
jne short @f
nop
@@:

You'd set your breakpoint on the NOP - that will only break when you need it.
Back to top
View user's profile Send private message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 174

PostPosted: Thu Jul 16, 2020 9:21 pm    Post subject: Reply with quote

Ahhh. Awesome. So basically i just make a jump if equal to a code cave and then i can break. Thats thinking outside of the box.
Back to top
View user's profile Send private message
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