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 


Script doesn't change value back.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Fri Dec 08, 2017 3:12 pm    Post subject: Script doesn't change value back. Reply with quote

Basically when activate script it changes the value from 1 to 3.5.
When deactivate script it doesn't change it back to default value 1.

Maybe cause the value i edit is like dead, nothing shows up in : What access this address.
To make a script i did injection on active value who is in same structure with the value i need.
Below can see movss xmm0,[rdi+74] useless active value, while mov [rdi+3C],(float)3.5 is what i need
Code:
newmem:
  mov [rdi+3C],(float)3.5

code:
  movss xmm0,[rdi+74]
  jmp return


I somewhere saw that people add after [DISABLE] instruction Like:
Code:
[DISABLE]

newmem:
  mov [rdi+3C],(float)1

blahblah+01:
  db bytes here

unregistersymbol(blahblah)
dealloc(newmem)

But of course this isnt working lol. Cause cant find where i saw thing like this.
It Should change back the value into 1 after deactivating script..
But how is the correct way writing instruction after [DISABLE] idk..
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1587

PostPosted: Sat Dec 09, 2017 4:08 am    Post subject: Reply with quote

you can use readmem (i tried readmem couple times but it didnt work maybe i was doing it wrong), or simply let the script to be active forever and create a hotkey with an address and compare if hotkey = 1 then move 3.5 otherwise it gonna move 1.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Sat Dec 09, 2017 4:28 am    Post subject: Reply with quote

Ye, by making flag can solve problem, but i dont want hotkeys..
Other solution was ''Browse this memory region'' copy bytes and make script.
But it takes forever to activate, cause CE scans for that long aob.
Guess there isnt in aob injection after [DISABLE] instruction like i wrote.
Probably i saw ''Full Injection'' where is Define and on bottom this

Code:
[DISABLE]

address:
  db bytes
  // call firefox.exe+7818

dealloc(newmem)
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Dec 09, 2017 8:28 pm    Post subject: Reply with quote

Code:
newmem:
  push rax
  mov rax,myvar
  mov eax,[rax]
  mov [rdi+3C],eax
  pop rax

code:
  movss xmm0,[rdi+74]
  jmp return

myvar:
  dd (float)3.5

label(myvar)
registersymbol(myvar)

[DISABLE]
myvar:
  dd (float)1.0
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Sun Dec 10, 2017 5:04 am    Post subject: Reply with quote

Hmm, with your suggestion it does change the value 1 to 3.5
But still doesnt changes back to 1 after deactivated script.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Dec 10, 2017 11:23 am    Post subject: This post has 1 review(s) Reply with quote

Code:
newmem:
  push rax
  mov rax,myvar
  mov [rax],rdi
  mov [rdi+3C],(float)3.5
  pop rax

code:
  movss xmm0,[rdi+74]
  jmp return

myvar:
  dq 0

label(myvar)
registersymbol(myvar)

[DISABLE]

//normal stuff

[myvar]+3C:
dd (float)1
unregistersymbol(myvar)
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Sun Dec 10, 2017 11:55 am    Post subject: Reply with quote

Yes, you deserve another rep from 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 -> 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