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 could i write a pointer address to another address value

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> Pointer tutorials
View previous topic :: View next topic  
Author Message
binba1028
How do I cheat?
Reputation: 0

Joined: 13 Sep 2018
Posts: 1

PostPosted: Thu Sep 13, 2018 12:31 am    Post subject: How could i write a pointer address to another address value Reply with quote

lets say the pointer is [[[["xxx.exe"+4AB2180]+08]+218]+80]+88

i want to write this pointer address (not address value ) into xxx.exe+2AE2370 , how could i do this
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater
Reputation: 34

Joined: 09 Aug 2013
Posts: 893

PostPosted: Thu Sep 13, 2018 5:38 am    Post subject: Reply with quote

perhaps
Code:
xxx.exe+2AE2370:
  readmem([[[["xxx.exe"+4AB2180]+08]+218]+80]+88,4)
Honestly I can't remember trying it with the pointer syntax like that but it may work. If not then some lua certainly would
Code:
{$lua}
local src = '[[[["xxx.exe"+4AB2180]+08]+218]+80]+88'
local dest = 'xxx.exe+2AE2370'
local typeSize = 4
local bytes = readBytes(src, typeSize, true)
writeBytes(dest, bytes)


Though if you wanted to do it with other asm code neither of those would work. You'd need something like
Code:
push eax
mov eax, [[[[["xxx.exe"+4AB2180]+08]+218]+80]+88]
mov [xxx.exe+2AE2370], eax
pop eax
and that would only work if none of the pointers changed during gameplay, if it did you'd need to do each pointer read separately eg.
Code:
push rax
mov rax, ["xxx.exe"+4AB2180]
mov rax, [rax+8]
mov rax, [rax+218]
mov rax, [rax+80]
mov eax, [rax+88]
mov [xxx.exe+2AE2370], eax
pop rax

_________________
https://github.com/FreeER/ has a few CE related repos
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 Tutorials -> Pointer tutorials 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