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 


Prevent memory viewer from opening during Lua Debugging?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Rammwurst
How do I cheat?
Reputation: 0

Joined: 18 Jul 2017
Posts: 8

PostPosted: Wed Jul 19, 2017 12:19 pm    Post subject: Prevent memory viewer from opening during Lua Debugging? Reply with quote

I'm executing the following script, but everytime I do the memory viewer opens up, is there a way to prevent this or a command that closes it again?

Code:
[ENABLE]
{$LUA}
debug_removeBreakpoint(address);
debug_setBreakpoint(address, 4, bptWrite);
function debugger_onBreakpoint()
lockAddress = RIP-2
writeBytes(lockAddress, 56, 00)
debug_continueFromBreakpoint(co_run)
return 0;
end

[DISABLE]
{$LUA}
writeBytes(lockAddress, 00, 00)
debug_removeBreakpoint(address);
lockAddress=0
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Wed Jul 19, 2017 2:08 pm    Post subject: Reply with quote

this may work...not tested however
Code:
getMemoryViewForm().Visible = false
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Jul 19, 2017 2:28 pm    Post subject: Reply with quote

change return 0 to return 1 (looks like the behavior is inverted for bp specific handlers)

or
Code:

debug_removeBreakpoint(address);
debug_setBreakpoint(address, 4, bptWrite, function()
function debugger_onBreakpoint()
lockAddress = RIP-2
writeBytes(lockAddress, 56, 00)
debug_continueFromBreakpoint(co_run)
return 0;
end )

_________________
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
Rammwurst
How do I cheat?
Reputation: 0

Joined: 18 Jul 2017
Posts: 8

PostPosted: Wed Jul 19, 2017 2:50 pm    Post subject: Reply with quote

FreeER wrote:
this may work...not tested however
Code:
getMemoryViewForm().Visible = false


That works if used in a script after the script that opened the memory viewer, for me anyway.

Dark Byte wrote:
change return 0 to return 1 (looks like the behavior is inverted for bp specific handlers)

or
Code:

debug_removeBreakpoint(address);
debug_setBreakpoint(address, 4, bptWrite, function()
function debugger_onBreakpoint()
lockAddress = RIP-2
writeBytes(lockAddress, 56, 00)
debug_continueFromBreakpoint(co_run)
return 0;
end )


Thank you that worked perfectly, i used it like this

Code:
debug_continueFromBreakpoint(co_run)
return 1;
end
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