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 


game crashes when disable trainers

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

Joined: 02 Apr 2021
Posts: 3
Location: dk

PostPosted: Sat Apr 03, 2021 8:11 am    Post subject: game crashes when disable trainers Reply with quote

unlimited ammo
Code:


[ENABLE]

aobscan(INJECT,8B 87 C4 00 00 00 48 89 87 C4 00 00 00 85 C0) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:
mov [edi+000000C4],(float)01

code:
  mov eax,[edi+000000C4]
  jmp return

INJECT:
  jmp newmem
  nop
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
  db 8B 87 C4 00 00 00

unregistersymbol(INJECT)
dealloc(newmem)








rapid fire [code]

[ENABLE]

aobscan(INJECT,D9 9F A0 00 00 00 C6) // should be unique
alloc(newmem,$10)

label(code)
label(return)

newmem:

code:
  //fstp dword ptr [edi+000000A0]
  jmp return

INJECT:
  jmp newmem
  nop
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
  db D9 9F A0 00 00 00

unregistersymbol(INJECT)
dealloc(newmem)









no punch cooldown [/code]

[ENABLE]

aobscan(INJECT,D9 9F A0 00 00 00 D9 EE) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
  //fstp dword ptr [edi+000000A0]
  jmp return

INJECT:
  jmp newmem
  nop
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
  db D9 9F A0 00 00 00

unregistersymbol(INJECT)
dealloc(newmem)





no punch dmg, one punch kills



[ENABLE]

aobscan(INJECT,D95F3083EC0C68xxxxxxxxE8xxxxxxxx83C4100FB605F23Exxxx85C00F84C9000000) // should be unique
alloc(newmem,$10)

label(code)
label(return)

newmem:
add [edi+30],(float)01

code:
fstp dword ptr [edi+30]
//sub esp,0C
jmp return

INJECT:
jmp newmem
nop
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
db D9 5F 30 83 EC 0C

unregistersymbol(INJECT)
dealloc(newmem)

_________________
noah santana
Back to top
View user's profile Send private message AIM Address MSN Messenger
sbryzl
Master Cheater
Reputation: 6

Joined: 25 Jul 2016
Posts: 252

PostPosted: Sat Apr 03, 2021 10:14 pm    Post subject: Reply with quote

They all use the same symbol name. This will cause a crash when disabling.

Any time you have a registersymbol in a script it must be a unique name. So you could use INJECT1, INJECT2, INJECT3 ... or some other unique names.
Back to top
View user's profile Send private message
IamNosa
How do I cheat?
Reputation: 0

Joined: 02 Apr 2021
Posts: 3
Location: dk

PostPosted: Sun Apr 04, 2021 6:48 am    Post subject: Reply with quote

sbryzl wrote:
They all use the same symbol name. This will cause a crash when disabling.

Any time you have a registersymbol in a script it must be a unique name. So you could use INJECT1, INJECT2, INJECT3 ... or some other unique names.



omg thank u ur a genius

_________________
noah santana
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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