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 


Cheat Engine Disable/Reset Script

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

Joined: 16 Mar 2021
Posts: 2

PostPosted: Tue Mar 16, 2021 7:22 pm    Post subject: Cheat Engine Disable/Reset Script Reply with quote

Does anyone know how to disable/reset a script? I downloaded a cheat engine for The Surge and there is a "One Hit Kill" script so I tried using it but when I checked my game, the reason I was doing 1 Hit Kill was basically ALL of my WEAPONS have insanely increased up to 6K which I guess it does the work but the problem is I can not disable it nor reset it. I have tried restarting the game, tried to suicide my character but still no good on resetting this script.
Now the 6k damage is permanent :/
(The normal damage of my weapon does not even reach 100, somewhere like 50-70ish).

I would really appreciate any help, I'm on the last area of the game that's why I don't want to make new character because I'm doing a 100% run.

Here's the script:

{ Game : TheSurge.exe
Version:
Date : 2017-11-04
Author : Kalas

This script does blah blah blah
}

[ENABLE]

// 314 -- (float)1 -- Player
// 314 -- (float)0 -- Enemy

aobscanmodule(_SharedHealth,TheSurge.exe,F3 0F 11 89 B0 00 00 00 A9)
alloc(newmem,$1000,TheSurge.exe)

label(code)
label(return)
label(HeroCheck)

newmem:
cmp [rcx+314], (float)1 // Player
je HeroCheck
jmp @f

@@:
mov [rcx+000000B0],(float)0
jmp return

code:
movss [rcx+000000B0],xmm1
jmp return

HeroCheck:
movss [rcx+000000B0],xmm1
jmp return

_SharedHealth:
jmp newmem
nop
nop
nop
return:
registersymbol(_SharedHealth)

[DISABLE]

_SharedHealth:
db F3 0F 11 89 B0 00 00 00

unregistersymbol(_SharedHealth)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: "TheSurge.exe"+2A0D61

"TheSurge.exe"+2A0D3E: 48 8B D9 - mov rbx,rcx
"TheSurge.exe"+2A0D41: 0F 2F C1 - comiss xmm0,xmm1
"TheSurge.exe"+2A0D44: F3 0F 10 B1 B0 00 00 00 - movss xmm6,[rcx+000000B0]
"TheSurge.exe"+2A0D4C: 72 0D - jb TheSurge.exe+2A0D5B
"TheSurge.exe"+2A0D4E: 0F 2F C2 - comiss xmm0,xmm2
"TheSurge.exe"+2A0D51: 76 05 - jna TheSurge.exe+2A0D58
"TheSurge.exe"+2A0D53: 0F 28 CA - movaps xmm1,xmm2
"TheSurge.exe"+2A0D56: EB 03 - jmp TheSurge.exe+2A0D5B
"TheSurge.exe"+2A0D58: 0F 28 C8 - movaps xmm1,xmm0
"TheSurge.exe"+2A0D5B: 8B 81 20 01 00 00 - mov eax,[rcx+00000120]
// ---------- INJECTING HERE ----------
"TheSurge.exe"+2A0D61: F3 0F 11 89 B0 00 00 00 - movss [rcx+000000B0],xmm1
// ---------- DONE INJECTING ----------
"TheSurge.exe"+2A0D69: A9 00 80 00 00 - test eax,00008000
"TheSurge.exe"+2A0D6E: 76 2B - jna TheSurge.exe+2A0D9B
"TheSurge.exe"+2A0D70: 0F 2F F1 - comiss xmm6,xmm1
"TheSurge.exe"+2A0D73: 76 26 - jna TheSurge.exe+2A0D9B
"TheSurge.exe"+2A0D75: F3 0F 10 05 9B 44 76 00 - movss xmm0,[TheSurge.exe+A05218]
"TheSurge.exe"+2A0D7D: 0F 2F D0 - comiss xmm2,xmm0
"TheSurge.exe"+2A0D80: 77 14 - ja TheSurge.exe+2A0D96
"TheSurge.exe"+2A0D82: A9 00 00 02 00 - test eax,00020000
"TheSurge.exe"+2A0D87: 76 0A - jna TheSurge.exe+2A0D93
"TheSurge.exe"+2A0D89: 0F BA F0 0F - btr eax,0F
}

Can anyone point out why disable/resetting is not working?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 154

Joined: 06 Jul 2014
Posts: 4754

PostPosted: Tue Mar 16, 2021 7:51 pm    Post subject: Reply with quote

It's almost certainly something else in the cheat table. All that's doing is (poorly) writing 0 to an enemy's health.

Also, code tags exist on these forums.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
CyanPickles
How do I cheat?
Reputation: 0

Joined: 16 Mar 2021
Posts: 2

PostPosted: Tue Mar 16, 2021 9:47 pm    Post subject: Reply with quote

ParkourPenguin wrote:
It's almost certainly something else in the cheat table. All that's doing is (poorly) writing 0 to an enemy's health.

Also, code tags exist on these forums.


So any chance to fix these? I'm willing to study it if that's what it takes, all I need is to know the basic execution of a script on how to enable and disable it
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 154

Joined: 06 Jul 2014
Posts: 4754

PostPosted: Tue Mar 16, 2021 11:18 pm    Post subject: Reply with quote

You know how you clicked on a box to enable the script? Click it again and it disables the script. Enabling a script executes code under [ENABLE], and disabling a script executes the code under [DISABLE].

Find the script that's actually modifying your weapon damage and read the code to figure out how to undo what it did. Weapon damage could be derived from other values - e.g. maybe your character's strength was increased or something.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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