|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
vistra How do I cheat? Reputation: 0
Joined: 07 May 2021 Posts: 1
|
Posted: Fri May 07, 2021 3:31 pm Post subject: auto disable hotkey |
|
|
I have some problem is a function in CE is teleport so when i press it to activate example Key G press and then when it go to 5 or 10 seconds my game is crash so i need to know how to fix or i can use some code/script to use for disable this function when is activate 5 second and then close can you suggest me pls i have no idea what to do
Code: |
[ENABLE]
alloc(newmem,2048,"6E2D69)
label(originalcode)
label(Jm2)
registersymbol(newmem)
registersymbol(Jm2)
newmem:
mov [ebp-00000084],ecx
lea eax,[ebp-24]
push esi
mov esi,[J01]
mov esi,[esi+1C]
mov esi,[esi+40]
mov [eax],esi
mov esi,[J01]
mov esi,[esi+1C]
mov esi,[esi+44]
mov [eax+4],esi
mov [eax+08],42000000
jmp Jumg2+5
originalcode:
mov [ebp-00000084],ecx
lea eax,[ebp+08]
006C2EE9:
Jumg2:
Jm2:
jmp newmem
nop
nop
lea eax,[ebp-24]
[DISABLE]
dealloc(newmem)
Jm2:
mov [ebp-00000084],ecx
lea eax,[ebp+08]
push eax
unregistersymbol(newmem)
unregistersymbol(Jm2) |
|
|
Back to top |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Fri May 07, 2021 4:30 pm Post subject: |
|
|
- You PUSH ESI but you never POP it, which will most like cause a crash.
- You use the value form "J01", which isn't set in this script. And you never test that value to make sure it's not zeros before using it as an address.
- You register "newmem" to the user symbols list, so if that is used in another script it will be using the same memory.
- If the disable code is correct, you're also missing a PUSH for EAX in the script.
- Depending on what "Jumg2" is you may be injecting to the wrong place, since it's not declared in this script.
- At the injection point you have "lea eax,[ebp-24]", which will be overriding whatever code is 7 bytes past the injection point. And I don't think the byte length will match what you have in the disable section.
Try actually going to the injection point in the memory view form and set a breakpoint then step though the code to see where it actually crashes. And you should start with the CE script templates to setup the start of your scripts.
_________________
|
|
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
|
|