|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
redplug How do I cheat? Reputation: 0
Joined: 20 Jun 2012 Posts: 9
|
Posted: Tue Jul 24, 2012 8:26 am Post subject: debugger_onBreakpoint triggers on lua breakpoint |
|
|
Hi,
i have this code:
Code: | ErrorLoadingWoWBot = true;
WorkaroundTimer = nil;
function debugger_onBreakpoint()
print('asdasd');
return false;
end;
function onOpenProcess()
WorkaroundTimer = createTimer(nil, false);
timer_setInterval(WorkaroundTimer, 60 * 1000);
timer_onTimer(WorkaroundTimer, function()
debug_setBreakpoint('"Wow.exe"+F992D');
timer_setEnabled(WorkaroundTimer, false);
print('done');
end);
timer_setEnabled(WorkaroundTimer, true);
end;
|
but the function dose not triggers if the breakpoint is assigned by lua. If i reassing the breakpoint manual the function starts triggering. Why?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Tue Jul 24, 2012 10:59 am Post subject: |
|
|
Does it do the print at least once?
Add in a check for multiple onOpenProcess calls, as you may be creating multiple workaroundtimer's, but I doubt that is the cause of the problem.
Do you know that it will take one minute before it will set a breakpoint ?
And does the normal windows debgger work, or do you usually require the veh debugger or kernelmode debugger?
use debugProcess(2) for veh, and debugProcess(3) for kernel, else it uses the default option in settings
Also, instead of "return false" do "return 1" if you don't want to break, and "return 0" if you do wish to break
_________________
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 |
|
|
redplug How do I cheat? Reputation: 0
Joined: 20 Jun 2012 Posts: 9
|
Posted: Tue Jul 24, 2012 1:26 pm Post subject: |
|
|
so yes i know that it takes one minute. i tryed to debug it. i get it running now but i have to use workarounds..
Code: | ErrorLoadingWoWBot = true;
OnTimerCreated = false;
function WoWDebuggerBreakpoint()
return WoWBotOnBreakpoint();
end;
function onOpenProcess(pid)
debugger_onBreakpoint = nil;
debugProcess();
debugger_onBreakpoint = WoWDebuggerBreakpoint;
TimerDidRun = false;
if WorkaroundTimer == nil then
WorkaroundTimer = createTimer(nil, false);
timer_setInterval(WorkaroundTimer, 1000);
timer_onTimer(WorkaroundTimer, function()
if not TimerDidRun then
debug_setBreakpoint('"Wow.exe"+F992D');
WoWBotOnOpenProcess(pid);
end;
TimerDidRun = true;
end);
timer_setEnabled(WorkaroundTimer, true);
end;
end;
function WoWBotInitialized()
ErrorLoadingWoWBot = false;
startWoWBot();
closeCe();
end;
if startWoWBot == nil then
loadPlugin('wowbot.dll');
if ErrorLoadingWoWBot then
showMessage('Error loading wowbot.dll');
closeCE();
end
else
startWoWBot();
closeCe();
end |
but sometimes the programm hangs in the WoWDebuggerBreakpoint function.
even if i change the function to:
Code: |
function WoWDebuggerBreakpoint()
print('test');
return 1;
end; |
and even if i remove the plugin dll loading stuff.
its crazy..
But for information: it hangs if the breakpoint is called a lot of times.
dont know what debugger i nead. i tryed it with debugProcess(2) but it wont work (it dose noting.) and debugProcess(3) shows me an error.
there is also an other solution for my problem. an injected dll that calls my code at a time... according to this question:
stackoverflow[DOT]com/questions/11635701/check-if-memory-is-readable-or-why-do-it-not-catches-the-exception
|
|
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
|
|