| View previous topic :: View next topic |
| Author |
Message |
Alan Samson How do I cheat?
Reputation: 0
Joined: 25 Feb 2016 Posts: 8 Location: Ukraine
|
Posted: Thu Feb 25, 2016 3:06 pm Post subject: Pointer and AA script |
|
|
So, I'm currently trying to write Auto Assembly script to change value in moveset script (DS2) but the problem is that the script is a pointer.
So, how do I create such script to change value in pointer? It's a bit annoying to change every value after every restart.
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Feb 25, 2016 4:31 pm Post subject: |
|
|
| Code: | push rax
mov rax,DS2.exe+00000000
mov rax,[rax+00]
mov rax,[rax+00]
mov rax,[rax+00]
mov [rax+00],0000
pop rax |
|
|
| Back to top |
|
 |
Alan Samson How do I cheat?
Reputation: 0
Joined: 25 Feb 2016 Posts: 8 Location: Ukraine
|
Posted: Fri Feb 26, 2016 11:25 am Post subject: |
|
|
| Zanzer wrote: | | Code: | push rax
mov rax,DS2.exe+00000000
mov rax,[rax+00]
mov rax,[rax+00]
mov rax,[rax+00]
mov [rax+00],0000
pop rax |
|
I'm not sure if it's done correctly, but my mate helped me edit it slightly. Help me to fix it, please. I've paste offsets to every "+00" and an address via memory view in "0000000".
| Code: | [ENABLE]
alloc(derp,128)
derp:
push rax
mov rax,BasePTR
mov rax,[rax+D0]
mov rax,[rax+7F8]
mov rax,[rax+138]
mov [rax+00],0098DC1D
pop rax
[DISABLE]
dealloc(derp) |
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Feb 26, 2016 12:48 pm Post subject: |
|
|
If 138 is the last offset, it should be
| Code: | push rax
mov rax,BasePTR
mov rax,[rax+D0]
mov rax,[rax+7F8]
mov [rax+138],0098DC1D
pop rax |
|
|
| Back to top |
|
 |
Alan Samson How do I cheat?
Reputation: 0
Joined: 25 Feb 2016 Posts: 8 Location: Ukraine
|
Posted: Fri Feb 26, 2016 1:15 pm Post subject: |
|
|
Here's offsets in order
0
138
7f8
d0
My friend said that they should be reversed, I'm not as experienced as he's.
He also removed DS2.exe+000000 as you see.
And one more thing - it's SotFS version, dx11.
|
|
| Back to top |
|
 |
|