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 


[help] Game crash after a while

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

Joined: 21 Apr 2020
Posts: 7

PostPosted: Wed Dec 20, 2023 9:15 pm    Post subject: [help] Game crash after a while Reply with quote

Hi there, i was trying to cheat Dave the Diver. my code is trying to prolong the oxygen and divide the weight he was carryings.
Usually it will run smoothly, but after a while the game will close on its own leaving nothing behind.

here's my code for oxygen

Code:

aobscanmodule(OXYGEN,GameAssembly.dll,F3 0F 11 B9 94 00 00 00) // should be unique
alloc(newmem,$1000,OXYGEN)
registersymbol(tick)
label(code)
label(return)
label(tick)
newmem:
  cmp [tick],4
  jge code
  inc [tick]
  jmp return
code:
  //mov [tick],0
  movss [rcx+00000094],xmm7
  jmp return
tick:
  dw 0
OXYGEN:
  jmp newmem
  nop 3
return:
registersymbol(OXYGEN)

[DISABLE]

OXYGEN:
  db F3 0F 11 B9 94 00 00 00

unregistersymbol(OXYGEN)
dealloc(newmem)


Code:

aobscanmodule(OXY,GameAssembly.dll,F3 0F 11 83 94 00 00 00 48 83 C4 40) // should be unique
alloc(newmem,$1000,OXY)

label(code)
label(return)

newmem:
  cmp [tick],4
  jge code
  inc [tick]
  jmp return
code:
  mov [tick],0
  movss [rbx+00000094],xmm0
  jmp return

OXY:
  jmp newmem
  nop 3
return:
registersymbol(OXY)

[DISABLE]

OXY:
  db F3 0F 11 83 94 00 00 00

unregistersymbol(OXY)
dealloc(newmem)


it consist of two code which should be activated at the same time


and this one is the weight code


Code:

aobscanmodule(WEIGH,GameAssembly.dll,F3 41 0F 11 4F 2C 68) // should be unique
alloc(newmem,$1000,WEIGH)
registersymbol(kali)
label(code)
label(return)
label(kali)
label(modi)
newmem:
  comiss xmm1,[r15+2C]
  jbe code
  //comiss xmm1,[modi]
  //jb code
  subss xmm1,[r15+2C]
  mulss xmm1,[kali]
  addss xmm1,[r15+2C]
code:
  movss [r15+2C],xmm1
  jmp return
kali:
  dd (float)0.50
modi:
  dd (float)1.0
WEIGH:
  jmp newmem
  nop
return:
registersymbol(WEIGH)

[DISABLE]

WEIGH:
  db F3 41 0F 11 4F 2C

unregistersymbol(WEIGH)
dealloc(newmem)


how could i have the code to be more stable
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Thu Dec 21, 2023 12:01 am    Post subject: Reply with quote

I don't see any of the original code in your script so can't really give advice; however, here is a script I made for version 0.6.1.470 (Steam) when I had the game:
Code:

[ENABLE]
aobscanmodule(aobOxygen,GameAssembly.dll,64 6A 00 83 EC 0C F3 0F 11 44 24 08)
alloc(newmem,$1000)
label(code)
label(return)

newmem:
  movss [ebp+0C],xmm0

code:
  movss [esp+08],xmm0
  jmp return

aobOxygen+06:
  jmp newmem
  nop
return:
registersymbol(aobOxygen)

[DISABLE]

aobOxygen+06:
  db F3 0F 11 44 24 08

unregistersymbol(aobOxygen)
dealloc(newmem)


It can be found in the class/method:
Code:

PlayerBreathHandler.set_HP


As for weight, I didn't really get that far because the game wasn't really for me.
Back to top
View user's profile Send private message
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