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 can I break when an address is at a certain value?

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

Joined: 19 May 2012
Posts: 12

PostPosted: Sat May 19, 2012 9:31 pm    Post subject: How can I break when an address is at a certain value? Reply with quote

I am breaking and tracing on a point and getting this :
Code:
imgur,com/O29Px.png

(replace commas to see picture)


As you can see, the value at 017943A0 is being moved into EAX, giving it the value 1108.

I want to find out how this value 1108 is created, so I want to find out what writes it to 017943A0.

But if I use "what writes to this address", I get hundreds of operations - I only want to find the one that makes it 1108.

How do I do this?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat May 19, 2012 9:48 pm    Post subject: Reply with quote

Do you wish to break or break and trace ?

Anyhow, based on your question formulation: you wish to find the instruction that writes the value 1108 to address 017943a0

(so not a break, just a find and record state)

Easiest method:
Use find what writes to this address (might want to pause the game first if it's constantly written)
Go to memory view and click view->breakpoint list
rightclick the breakpoint and choose "set/change condition"
Go to the easy tab and fill in
Code:

readInteger(0x017943a0)==1108

(if you meant hexadecimal 1108, then do 0x1108 )
click ok

now play the game (and resume if you suspended it) and make that value change to 1108
You will only see instructions that write 1108 to it

Some extra info for those that care: "find what xxxx this address" breakpoints break AFTER the instruction has been executed. That is why readInteger is a viable solution

_________________
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: Sat May 19, 2012 10:15 pm    Post subject: Reply with quote

That worked perfectly, thanks!
Back to top
View user's profile Send private message
igor
Expert Cheater
Reputation: 1

Joined: 04 Apr 2012
Posts: 145

PostPosted: Sun May 20, 2012 10:00 am    Post subject: Reply with quote

@Dark Byte
Thanks, It's great tip of the day.
Back to top
View user's profile Send private message
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