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 a game with hotkey and enter in debugger directelly

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
danrevella
Master Cheater
Reputation: 2

Joined: 11 Jun 2008
Posts: 292

PostPosted: Thu Jan 07, 2016 11:11 am    Post subject: break a game with hotkey and enter in debugger directelly Reply with quote

Hi!!!
Many time I would like to break a game and landing into debugger in some situation: f.e. a few moment before a enemy hit me....
But the problem is that I don't know where I have to put a breakpoint.
So I would like: define an hotkey who pause the game, then auto-set a breakpoint on the return address when the game is unpaused.
CE does support setting an hotkey to pause the game, and then pressing again the game resume, this means that CE know EXACTLY at what address have to resume, so I think why not give us the opportunity to enter directelly in the debugger?
It may be really usefull many times.
I have post under Lua scripting, coz I think this may be released in Lua.

Thanks
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Thu Jan 07, 2016 12:47 pm    Post subject: Reply with quote

I'm not sure that this would help you much with the situation that you have described, as the game could be executing any random code at the time of pause.

Better to use ultimap and find the call that gets executed during enemy attack sequence or something.
Back to top
View user's profile Send private message
danrevella
Master Cheater
Reputation: 2

Joined: 11 Jun 2008
Posts: 292

PostPosted: Thu Jan 07, 2016 5:19 pm    Post subject: Reply with quote

++METHOS wrote:
I'm not sure that this would help you much with the situation that you have described, as the game could be executing any random code at the time of pause.

Better to use ultimap and find the call that gets executed during enemy attack sequence or something.

In the time of pause (I mean process suspended, not speed hack set to 0.0), no code is executed, and when I resume I land exactelly where I was...
If an enemy have just hit me, for sure the code that will be executed, will be the code who kill me.
BTW in the time of Win95 this job was perfectly working using Softice as debugger.
Ultimap unfortunelly on my computer give only many and many BSOD... Sad
and even worse, it's always better get another chance.........
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Thu Jan 07, 2016 5:25 pm    Post subject: Reply with quote

the code that gets executed after resume can also be the code responsible for playing music, rendering pixels on the screen, dealing with animations, dealing with input, dealing with loss of keyboard focus, or anything else related
and that's not even counting threads

_________________
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
danrevella
Master Cheater
Reputation: 2

Joined: 11 Jun 2008
Posts: 292

PostPosted: Fri Jan 08, 2016 1:25 am    Post subject: Reply with quote

Dark Byte wrote:
the code that gets executed after resume can also be the code responsible for playing music, rendering pixels on the screen, dealing with animations, dealing with input, dealing with loss of keyboard focus, or anything else related
and that's not even counting threads

Ok, as always it was not a good idea...... Embarassed Crying or Very sad
many thanks
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 Lua Scripting 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