View previous topic :: View next topic |
Author |
Message |
Betcha Expert Cheater Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Fri Dec 08, 2017 3:12 pm Post subject: Script doesn't change value back. |
|
|
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 |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Sat Dec 09, 2017 4:08 am Post subject: |
|
|
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 |
|
|
Betcha Expert Cheater Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Sat Dec 09, 2017 4:28 am Post subject: |
|
|
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 |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Dec 09, 2017 8:28 pm Post subject: |
|
|
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 |
|
|
Betcha Expert Cheater Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Sun Dec 10, 2017 5:04 am Post subject: |
|
|
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 |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Dec 10, 2017 11:23 am Post subject: |
|
|
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 |
|
|
Betcha Expert Cheater Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Sun Dec 10, 2017 11:55 am Post subject: |
|
|
Yes, you deserve another rep from me! |
|
Back to top |
|
|
|