Posted: Tue Jun 14, 2022 1:56 pm Post subject: AOB error when cheat engine is closed then reopened
if i forget to deactivate my scripts before closing cheat engine, then open cheat engine again and try to activate those same scripts again, they won't. They give AOB error because the bytes changed or something. And then the only way to activate my scripts again would be to restart the game/process. Is there any workaround for this so i don't have to go through all that?
If you can't do that, automatically disable the scripts when you close the main form. (haven't tested this)
Code:
if closeCallback then MainForm.unregisterCloseCallback(closeCallback); closeCallback = nil end
closeCallback = MainForm.registerCloseCallback(function(f, closeaction)
if closeaction == caFree then
-- disable scripts
AddressList.getMemoryRecordByDescription'my script'.Active = false
end
return closeaction
end)
And if you must leave the scripts enabled, you'll need to leave a magic identifier in your code injections to find them in the next CE instance. Manually disable them by reading the destination of the return jump, overwriting the injection point with the original bytes (these can be stored as part of the magic identifier), and freeing the memory of the injection. This would probably be a fair bit of work for each script. _________________
I don't know where I'm going, but I'll figure it out when I get there.
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