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 keeps crashing after few minutes of using my script

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

Joined: 02 Aug 2020
Posts: 1

PostPosted: Sun Aug 02, 2020 5:08 am    Post subject: game keeps crashing after few minutes of using my script Reply with quote

i've been using a script in some idle game which causes the mobs to not attack me, i've been running this script overnight without any issues but now after using it for about 1-2 minutes the game randomly closes with no errors or anything? the game hasn't been updated or anything.. this started happening out of nowhere and i have no idea why or how to fix this.

the script looks like this:

Code:

[ENABLE]

aobscanmodule(EnemyAttacking,GameAssembly.dll,48 8B 43 30 48 85 C0 0F 84 74 05)
alloc(newmem,$100,GameAssembly.dll)
newmem:

CantCastSkills:
  mov byte ptr [rbx+3C],#0 // Did attack reset?
  mov byte ptr [rbx+20],#0 // Auto cast skill

CantAttack:
  push rcx
  mov rcx,[rbx+30]
  mov byte ptr [rcx+41],#0
  pop rcx

MainDefault:
  mov rax,[rbx+30]
  test rax,rax
  jmp return

EnemyAttacking:
  jmp newmem
  nop 2
return:
registersymbol(EnemyAttacking)

[DISABLE]

EnemyAttacking:
  db 48 8B 43 30 48 85 C0
unregistersymbol(EnemyAttacking)
dealloc(newmem)

{"GameAssembly.dll"+1E8C3D: 48 8B D9              -  mov rbx,rcx
"GameAssembly.dll"+1E8C40: 75 12                 -  jne GameAssembly.dll+1E8C54
"GameAssembly.dll"+1E8C42: 8B 0D 20 DE 13 01     -  mov ecx,[GameAssembly.dll+1326A68]
"GameAssembly.dll"+1E8C48: E8 03 E5 F0 FF        -  call GameAssembly.dll+F7150
"GameAssembly.dll"+1E8C4D: C6 05 A4 B1 7A 01 01  -  mov byte ptr [GameAssembly.dll+1993DF8],01
"GameAssembly.dll"+1E8C54: 33 D2                 -  xor edx,edx
"GameAssembly.dll"+1E8C56: 48 8B CB              -  mov rcx,rbx
"GameAssembly.dll"+1E8C59: E8 E2 58 45 00        -  call GameAssembly.dll+63E540
"GameAssembly.dll"+1E8C5E: 84 C0                 -  test al,al
"GameAssembly.dll"+1E8C60: 0F 84 4D 04 00 00     -  je GameAssembly.dll+1E90B3
// ---------- INJECTING HERE ----------
"GameAssembly.dll"+1E8C66: 48 8B 43 30           -  mov rax,[rbx+30]
"GameAssembly.dll"+1E8C6A: 48 85 C0              -  test rax,rax
// ---------- DONE INJECTING  ----------
"GameAssembly.dll"+1E8C6D: 0F 84 74 05 00 00     -  je GameAssembly.dll+1E91E7
"GameAssembly.dll"+1E8C73: 80 78 48 00           -  cmp byte ptr [rax+48],00
"GameAssembly.dll"+1E8C77: 48 89 7C 24 40        -  mov [rsp+40],rdi
"GameAssembly.dll"+1E8C7C: 0F 85 24 04 00 00     -  jne GameAssembly.dll+1E90A6
"GameAssembly.dll"+1E8C82: 48 85 C0              -  test rax,rax
"GameAssembly.dll"+1E8C85: 0F 84 54 05 00 00     -  je GameAssembly.dll+1E91DF
"GameAssembly.dll"+1E8C8B: 48 8B 48 38           -  mov rcx,[rax+38]
"GameAssembly.dll"+1E8C8F: 48 85 C9              -  test rcx,rcx
"GameAssembly.dll"+1E8C92: 0F 84 41 05 00 00     -  je GameAssembly.dll+1E91D9
"GameAssembly.dll"+1E8C98: 80 79 1E 00           -  cmp byte ptr [rcx+1E],00
}
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25840
Location: The netherlands

PostPosted: Sun Aug 02, 2020 5:57 am    Post subject: Reply with quote

perhaps the game got updated
Perhaps rcx+41 now points to something else, or that flag is checked by the game


try this code:
Code:

...
alloc(crashcounter,8,GameAssembly.dll)
registersymbol(crashcounter)
crashcounter:
dq 0

newmem:

CantCastSkills:
{$try}
  mov byte ptr [rbx+3C],#0 // Did attack reset?
  mov byte ptr [rbx+20],#0 // Auto cast skill

CantAttack:
  push rcx
  mov rcx,[rbx+30]
  mov byte ptr [rcx+41],#0
  pop rcx
  jmp short MainDefault
{$except}
  add qword ptr [crashcounter],1

MainDefault:
  mov rax,[rbx+30]
  test rax,rax
  jmp return
...


check if crashcounter is increasing

_________________
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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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