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 


How to RESTORE a VALUE by Disabling The Same Script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
FIRESKY
Cheater
Reputation: 0

Joined: 01 Mar 2017
Posts: 34

PostPosted: Wed Sep 04, 2019 1:51 pm    Post subject: How to RESTORE a VALUE by Disabling The Same Script Reply with quote

Hi everyone, I tried to modify this script by entering this value:
mov [rax+000000FC],(Float)550 "and everything works perfectly"

However when you disable the script, even though everything works correctly,
but the value remains 550 (Float), when normally it should be 268.5 (float)

Ultimately I need a method to make the value come back or be changed to 268.5 (float),
but what interests me most is that this happens by disabling the script itself.

would be very nice to have a practical example on my original script, in order to analyze the various errors I have made so far



[ENABLE]

aobscanmodule(BLABLA,game.exe,F3 0F 10 A0 FC 00 00 00)
alloc(newmem,$1000,"Game.exe"+1D8084B)

label(code)
label(return)

newmem:

code:
mov [rax+000000FC],(Float)550 // -> "Original Value Need Restore Is: 268.5" -> Original Code Is : movss xmm6,[rax+000000FC]
jmp return

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

[DISABLE]

BLABLA:
db F3 0F 10 A0 FC 00 00 00

unregistersymbol(BLABLA)
dealloc(newmem)


Thank you in advance if someone can solve this problem!
Back to top
View user's profile Send private message
FIRESKY
Cheater
Reputation: 0

Joined: 01 Mar 2017
Posts: 34

PostPosted: Sat Sep 14, 2019 8:29 am    Post subject: Anyone able to help me with this question? Reply with quote

Anyone able to help me with this doubt?
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 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