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 


Multi Breakpoint {$lua} something is missing

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
FIRESKY
Newbie cheater
Reputation: 0

Joined: 01 Mar 2017
Posts: 14

PostPosted: Wed Nov 07, 2018 6:26 pm    Post subject: Multi Breakpoint {$lua} something is missing Reply with quote

Hi guys, I need an example written on my script.

I state that and other, alone work perfectly, the problem is if i activate 2 similar breakpoints at the same time the game is closed.

Dark Byte helped me to understand the problem better, but I could not put it into practice, his advice was:
"every script overwrites debugger_onBreakpoint
you need to write your onBreakpoint handler to deal with both

or set a custom function in debug_setBreakpoint
"

Could you help me put it into practice by editing this script, so that I can understand?


[ENABLE]
{$lua}
_cromatic=[[
aobscanmodule(Health,Blabla.exe,80 2F 70 50 73 0A 8B DC)
alloc(Stamina,$1000,"blabla.exe"+145CBD4)

label(code)
label(return)
registersymbol(Stamina)

Stamina:

code:
mov [rax+64],(Float)2
jmp "blabla.exe"+155DCE8
jmp return

Health:
return:
registersymbol(Health)
]]

function debugger_onBreakpoint()
RIP=getAddress("Health")
debug_continueFromBreakpoint(co_run)
return 1
end

reinitializeSymbolhandler()
autoAssemble(_cromatic)
debugProcess(2)
debug_setBreakpoint("blabla.exe+145CBD4")

{$asm}

[DISABLE]
{$lua}
debug_removeBreakpoint("blabla.exe+145CBD4")

{$asm}

Health:
db 80 2F 70 50 73 0A 8B DC

unregistersymbol(Health)
dealloc(Stamina)
unregistersymbol(Stamina)
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