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 tutorial?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
deama1234
Master Cheater
Reputation: 3

Joined: 20 Dec 2014
Posts: 328

PostPosted: Fri May 01, 2015 9:11 pm    Post subject: break and trace tutorial? Reply with quote

I can't seem to find a tutorial (for starters) about how the "break and trace instructions" feature works, could someone give me a tutorial or just write one?
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Fri May 01, 2015 11:50 pm    Post subject: Reply with quote

There is a description for it in the help file. What is that you want to know exactly?
_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
deama1234
Master Cheater
Reputation: 3

Joined: 20 Dec 2014
Posts: 328

PostPosted: Sat May 02, 2015 10:48 am    Post subject: Reply with quote

Geri wrote:
There is a description for it in the help file. What is that you want to know exactly?

If there was an instruction like
"mov [ecx+00000110],eax"
how would I trace the "eax" part? As in, how would I use the break and trace feature to trace the "eax" all the way to the part where it was assigned a value?

So, if:
"eax = 100"
how would I trace it to the point when it was given that "100" value?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat May 02, 2015 11:26 am    Post subject: Reply with quote

Well, if you're lucky, you can simply scroll up and find mov eax,****
If you're even more lucky, that instruction won't be a temporary address from the stack.

The true hope you have is that the game normally reads the existing value before changing it.
Again, if you're lucky, it will have a separate instruction that reads from the value only when an action occurs.

So, use the Find out what accesses this address (instead of 'writes to').
Perform an action that changes it then go to the instruction similar to mov eax,[ecx+00000110]
Break and trace the instruction there.
Now press CTRL-F to find 'EIP==0x#######' where that value is the EIP value of the original write instruction you found.

Now you know that the trace you are looking at has the entire logic from beginning to end.
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Sat May 02, 2015 1:22 pm    Post subject: Reply with quote

Tracing doesn't go backwards, because the code is not executed backwards. If you want to backtrace something, try those things that Zanzer said. Sometimes, this is very easy, sometimes it is very complicated. The code is executed from top to bottom unless you hit a jump or call or other instruction that takes you to somewhere else. So if you want to know what happened with eax before your instruction, then scroll up in the code and if it helps, you can try to start the tracing a little higher up, but this may give false results due to the mentioned jumps.
_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
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