 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
SleepiDreamer Cheater
Reputation: 0
Joined: 27 Aug 2021 Posts: 41
|
Posted: Tue Aug 31, 2021 5:15 am Post subject: Code overloads game crashing it |
|
|
Sorry for posting so much lately!
My code is:
| Code: | local address1 = 0x215A3AA5218
base = '[Minecraft.Windows.exe+4030538]+0x3CA51F0'
addresses = {0x28, 0x300, 0x2FC, 0x9C, 0x2BC, 0x2C0, 0x2C4, 0x2C8, 0x2CC, 0x2D0, 0x23C}
function findAddress(address, iter)
debug_setBreakpoint(address, 4, bptWrite, function()
print(string.format("%X: %X accessed %X", iter, RIP-8, address))
debug_continueFromBreakpoint(co_run)
debug_removeBreakpoint(address)
NOP(RIP-8)
return 0
end)
end
function NOP(address)
writeBytes(address, 0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90)
end
for listCount = 1, #addresses do
findAddress(getAddress(base)+addresses[listCount], listCount)
sleep(300)
end |
it finds the addresses using simply using an offset of a base pointer, then NOPs whatever is writing to it.
Doing this for a single address works fine, but once I added multiple, it crashes the game. I thought sleep(300) would fix it but the game stays frozen until the Lua script it done, after which it crashes.
How can I make cheat engine not use all available resources? (if that's the best fix)
_________________
Hope you're having a great day! |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Tue Aug 31, 2021 5:23 am Post subject: |
|
|
don't use debug_continueFromBreakpoint inside a breakpoint handler
anyhow, try a timer instead of sleep
example:
| Code: |
for listCount = 1, #addresses do
createTimer(1+300*(i-1), function(t)
findAddress(getAddress(base)+addresses[listCount], listCount)
end
end
|
Also, you can only have 4 watches at a time. Wait before continuing with the next, so try a repeating timer instead that checks if the other one is done
_________________
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 |
|
 |
SleepiDreamer Cheater
Reputation: 0
Joined: 27 Aug 2021 Posts: 41
|
Posted: Tue Aug 31, 2021 7:04 am Post subject: |
|
|
Funny you say that, as I think you wrote that code in a different post ^v^
Would you mind explaining what a watch is and how I could check?
EDIT: alright, no you didn't write it, it was only based off of your code.
But more importantly, it still crashes (probably because I did something wrong). I made some slight modifications to make it run.
| Code: | for listCount = 1, #addresses do
createTimer(1+350*(listCount-1), function(t)
findAddress(getAddress(base)+addresses[listCount], listCount)
end)
end |
EDIT2: nvm, I'm dumb, it's just the watches thing exceeding 4.
_________________
Hope you're having a great day! |
|
| 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
|
|