Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


auto disable hotkey

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
vistra
How do I cheat?
Reputation: 0

Joined: 07 May 2021
Posts: 1

PostPosted: Fri May 07, 2021 3:31 pm    Post subject: auto disable hotkey Reply with quote

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 Crying or Very sad Crying or Very sad Crying or Very sad

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
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Fri May 07, 2021 4:30 pm    Post subject: Reply with quote


  1. You PUSH ESI but you never POP it, which will most like cause a crash.
  2. 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.
  3. You register "newmem" to the user symbols list, so if that is used in another script it will be using the same memory.
  4. If the disable code is correct, you're also missing a PUSH for EAX in the script.
  5. Depending on what "Jumg2" is you may be injecting to the wrong place, since it's not declared in this script.
  6. 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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites