|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
GreyHatHelper Newbie cheater Reputation: 0
Joined: 25 Nov 2014 Posts: 10
|
Posted: Tue Nov 25, 2014 1:15 pm Post subject: Help? I need help with the Lua Script. |
|
|
I'm trying to run this in Lua/Trainer, but it keeps crashing CE 6.4. Did I write something out wrong?
Code: | dbvm_initialize(false)
function CEToggleBox1Click(sender)
readBytes(0x004EDEF9, 0x90)
writeBytes(EAX, 1)
function debugger_onBreakpoint()
if (RIP==0x004EDEF9) then
EAX=1
debug_continueFromBreakpoint(co_run)
return 0
end
end
debug_setBreakpoint(0x004EDEF9)
end
function CEToggleBox2Click(sender)
readBytes(0x004EDEE7, 0x90)
writeBytes(EAX, 1)
function debugger_onBreakpoint()
if (RIP==0x004EDEE7) then
EAX=1
debug_continueFromBreakpoint(co_run)
return 0
end
end
debug_setBreakpoint(0x004EDEE7)
end
function CEToggleBox3Click(sender)
function checkKeys(timer)
if (isKeyPressed(VK_Z)) then if lastspeed ~= 10 then speedhack_setSpeed(10) lastSpeed=10 end
else if lastspeed ~= 1 then speedhack_setSpeed(1) lastSpeed=1 end
end
end
t=createTimer(0)
timer_setInterval(t, 100)
timer_onTimer(t, checkKeys)
timer_setEnabled(t, true)
end
function CEToggleBox4Click(sender)
readBytes(0x004EDFAA, 0x90)
writeBytes(EAX, 1)
function debugger_onBreakpoint()
if (RIP==0x004EDFAA) then
EAX=1
debug_continueFromBreakpoint(co_run)
return 0
end
end
debug_setBreakpoint(0x004EDFAA)
end
function CEToggleBox5Click(sender)
readBytes(0x004EDF80, 0x90)
writeBytes(EAX, 1)
function debugger_onBreakpoint()
if (RIP==0x004EDF80) then
EAX=1
debug_continueFromBreakpoint(co_run)
return 0
end
end
debug_setBreakpoint(0x004EDF80)
end
function CEToggleBox6Click(sender)
readBytes(0x004EE042, 0x90)
writeBytes(EAX, 1)
function debugger_onBreakpoint()
if (RIP==0x004EE042) then
EAX=1
debug_continueFromBreakpoint(co_run)
return 0
end
end
debug_setBreakpoint(0x004EE042)
end
function CEToggleBox7Click(sender)
readBytes(0x004EDF24, 0x90)
writeBytes(EAX, 1)
function debugger_onBreakpoint()
if (RIP==0x004EDF24) then
EAX=1
debug_continueFromBreakpoint(co_run)
return 0
end
end
debug_setBreakpoint(0x004EDF24)
end
--hideAllCEWindows()
RequiredCEVersion=6.4
if (getCEVersion==nil) or (getCEVersion()<RequiredCEVersion) then
messageDialog('Please install Cheat Engine '..RequiredCEVersion, mtError, mbOK)
closeCE()
end
addresslist=getAddressList()
getAutoAttachList().add("RobloxPlayerBeta.exe")
gPlaySoundOnAction=false
CETrainer.show()
function AboutClick()
end
function CloseClick()
--called by the close button onClick event, and when closing the form
closeCE()
return caFree --onClick doesn't care, but onClose would like a result
end | [/code]
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Tue Nov 25, 2014 4:48 pm Post subject: |
|
|
Your buttons will overwrite the debugger_onBreakpoint functions and they do not remove the previous breakpoint
And you don't seem to attach the debugger
And you're giving false to dbvm_initialize which causes it to only check if dbvm is loaded, but won't load it if not found
I recommend babysteps
Try getting one tiny function with a lot of prints in it to function and learn from it
_________________
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 |
|
|
GreyHatHelper Newbie cheater Reputation: 0
Joined: 25 Nov 2014 Posts: 10
|
Posted: Tue Nov 25, 2014 5:28 pm Post subject: |
|
|
Dark Byte wrote: | Your buttons will overwrite the debugger_onBreakpoint functions and they do not remove the previous breakpoint
And you don't seem to attach the debugger
And you're giving false to dbvm_initialize which causes it to only check if dbvm is loaded, but won't load it if not found
I recommend babysteps
Try getting one tiny function with a lot of prints in it to function and learn from it |
Is it a difficult fix?
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Nov 25, 2014 7:06 pm Post subject: Re: Help? I need help with the Lua Script. |
|
|
GreyHatHelper wrote: |
Code: | function CEToggleBox1Click(sender)
readBytes(0x004EDEF9, 0x90)
writeBytes(EAX, 1)
(...)
end
|
|
first line in above function - you read 0x90 bytes here (144 bytes), but, you do not store the results
second line - EAX is not known here
Start from basic stuff.
Form what I see, you want to change EAX to 1 for all breakpoints, so:
Code: | debugProcess()
function debugger_onBreakpoint()
EAX=1
debug_continueFromBreakpoint(co_run)
return 1
end
function CEToggleBox1Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDEF9)
else debug_removeBreakpoint (0x004EDEF9)
end
function CEToggleBox2Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDEE7)
else debug_removeBreakpoint (0x004EDEE7)
end
...
...
...
...
...
...
... |
_________________
|
|
Back to top |
|
|
GreyHatHelper Newbie cheater Reputation: 0
Joined: 25 Nov 2014 Posts: 10
|
Posted: Wed Nov 26, 2014 1:00 am Post subject: Re: Help? I need help with the Lua Script. |
|
|
mgr.inz.Player wrote: | GreyHatHelper wrote: |
Code: | function CEToggleBox1Click(sender)
readBytes(0x004EDEF9, 0x90)
writeBytes(EAX, 1)
(...)
end
|
|
first line in above function - you read 0x90 bytes here (144 bytes), but, you do not store the results
second line - EAX is not known here
Start from basic stuff.
Form what I see, you want to change EAX to 1 for all breakpoints, so:
Code: | debugProcess()
function debugger_onBreakpoint()
EAX=1
debug_continueFromBreakpoint(co_run)
return 1
end
function CEToggleBox1Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDEF9)
else debug_removeBreakpoint (0x004EDEF9)
end
function CEToggleBox2Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDEE7)
else debug_removeBreakpoint (0x004EDEE7)
end
...
...
...
...
...
...
... |
|
Thanks! But, when I try to run it, I get "Error: attempted to call a nil value"
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Wed Nov 26, 2014 5:42 am Post subject: |
|
|
forgot "end"
Code: | debugProcess()
function debugger_onBreakpoint()
EAX=1
debug_continueFromBreakpoint(co_run)
return 1
end
function CEToggleBox1Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDEF9)
else debug_removeBreakpoint (0x004EDEF9)
end
end
function CEToggleBox2Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDEE7)
else debug_removeBreakpoint (0x004EDEE7)
end
end |
_________________
|
|
Back to top |
|
|
GreyHatHelper Newbie cheater Reputation: 0
Joined: 25 Nov 2014 Posts: 10
|
Posted: Wed Nov 26, 2014 10:40 am Post subject: |
|
|
mgr.inz.Player wrote: | forgot "end"
Code: | debugProcess()
function debugger_onBreakpoint()
EAX=1
debug_continueFromBreakpoint(co_run)
return 1
end
function CEToggleBox1Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDEF9)
else debug_removeBreakpoint (0x004EDEF9)
end
end
function CEToggleBox2Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDEE7)
else debug_removeBreakpoint (0x004EDEE7)
end
end |
|
I got most of it, but the ToggleButtons (1,2,4,5,6,7) don't activate. They are just there, the 3rd buttons, on the other hand, works. So, if you can, help me here?
Code: | dbvm_initialize(true)
debugProcess =("RobloxPlayerBeta.exe")
function debugger_onBreakpoint()
EAX=1
debug_continueFromBreakpoint(co_run)
return 1
end
function CEToggleBox1Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDEF9)
else debug_removeBreakpoint (0x004EDEF9)
end
end
function CEToggleBox2Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDEE7)
else debug_removeBreakpoint (0x004EDEE7)
end
end
function CEToggleBox3Click(sender)
function checkKeys(timer)
if (isKeyPressed(VK_Z)) then if lastspeed ~= 10 then speedhack_setSpeed(10) lastSpeed=10 end
else if lastspeed ~= 1 then speedhack_setSpeed(1) lastSpeed=1 end
end
end
t=createTimer(nil)
timer_setInterval(t, 100)
timer_onTimer(t, checkKeys)
timer_setEnabled(t, true)
end
function CEToggleBox4Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDFAA)
else debug_removeBreakpoint (0x004EDFAA)
end
end
function CEToggleBox5Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDF80)
else debug_removeBreakpoint (0x004EDF80)
end
end
function CEToggleBox6Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EE042)
else debug_removeBreakpoint (0x004EE042)
end
end
function CEToggleBox7Click(sender)
if sender.Checked then debug_setBreakpoint (0x004EDF24)
else debug_removeBreakpoint (0x004EDF24)
end
end
--hideAllCEWindows()
RequiredCEVersion=6.4
if (getCEVersion==nil) or (getCEVersion()<RequiredCEVersion) then
messageDialog('Please install Cheat Engine '..RequiredCEVersion, mtError, mbOK)
closeCE()
end
addresslist=getAddressList()
getAutoAttachList().add("RobloxPlayerBeta.exe")
gPlaySoundOnAction=false
CETrainer.show()
function AboutClick()
end
function CloseClick()
--called by the close button onClick event, and when closing the form
closeCE()
return caFree --onClick doesn't care, but onClose would like a result
end |
|
|
Back to top |
|
|
|
|
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
|
|