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 


Pointer and AA script

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

Joined: 25 Feb 2016
Posts: 8
Location: Ukraine

PostPosted: Thu Feb 25, 2016 3:06 pm    Post subject: Pointer and AA script Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Feb 25, 2016 4:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alan Samson
How do I cheat?
Reputation: 0

Joined: 25 Feb 2016
Posts: 8
Location: Ukraine

PostPosted: Fri Feb 26, 2016 11:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Feb 26, 2016 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alan Samson
How do I cheat?
Reputation: 0

Joined: 25 Feb 2016
Posts: 8
Location: Ukraine

PostPosted: Fri Feb 26, 2016 1:15 pm    Post subject: Reply with quote

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
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