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 backtrace with stop condition (LUA) ?

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

Joined: 06 Dec 2009
Posts: 36

PostPosted: Mon Jun 13, 2011 4:52 am    Post subject: How to backtrace with stop condition (LUA) ? Reply with quote

Hi,
I found some target code, but it used for many other values too. I need to make backtrace like described here http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles/225-basic-encryptions-debugging-backtracing-and-some-info-on-the-stack

so I need to set breakpoint with stopcondition.
How to setup stopcondition for example to stop and trace only if EAX==071BEDE0 ??

my value accessed by a command:
add eax,04

so to find the parent function, that make this call, I need to set "Break and Trace instructions" on this "add eax,04" command in debugger.

but i need to see trace not for all situations, but only when eax==071BEDE0 - it address of my value.

so im tryed to setup stopcondition eax==071BEDE0 or even impossible eax<0 - and get fault... trace appear.

how to setup stopcondition?
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Mon Jun 13, 2011 5:30 am    Post subject: Reply with quote

EAX == 0x071BEDE0
_________________
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
Dave_Scream
Cheater
Reputation: 0

Joined: 06 Dec 2009
Posts: 36

PostPosted: Mon Jun 13, 2011 7:14 am    Post subject: Reply with quote

Geri wrote:
EAX == 0x071BEDE0

why if I go into Trace after trace gone, expand all and look at first command from where trace stats, the register EAX is not 0x071BEDE0 as I type in stopcondition?
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Mon Jun 13, 2011 7:22 am    Post subject: Reply with quote

You need to set the condition before the program would reach the breakpoint, otherwise it will surely not work.
_________________
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
Dave_Scream
Cheater
Reputation: 0

Joined: 06 Dec 2009
Posts: 36

PostPosted: Mon Jun 13, 2011 8:57 am    Post subject: Reply with quote

Geri wrote:
You need to set the condition before the program would reach the breakpoint, otherwise it will surely not work.

dosent work for me:
http://www.youtube.com/watch?v=1jVrrFFCOT0
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Mon Jun 13, 2011 11:40 am    Post subject: This post has 1 review(s) Reply with quote

You are changing the stop condition for the tracing. This means that when the condition will be true, the tracing will stop.

You need to change the breakpoint condition.
Set break and trace on the code, then when it is green already, right-click on the code and use the "Set/Change" break condition. It doesn't hurt to pause the game or something until you set the condition.

_________________
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 -> 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