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 


Auto Assembler and Multilevel Pointers

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

Joined: 28 Jan 2016
Posts: 2

PostPosted: Thu Jan 28, 2016 4:28 pm    Post subject: Auto Assembler and Multilevel Pointers Reply with quote

i'm not adept at writing Auto Assembler scripts and the documentation for AA and Lua is incomplete. after doing some reading, i gathered AOBSCAN(MODULE) is executed first, then READMEM, and GLOBALALLOC last. this puts me in a bad situation when trying to read multilevel pointers

Code:
globalalloc(alloc1,4)
alloc(alloc2,4)
 
aobscanmodule(aob1,...)
 
alloc2:
readmem(aob+1,4)
 
alloc1:
readmem(alloc2,4)


unfortunately, this doesn't work because the memory isn't allocated until after READMEM, which initializes it to 0. detouring (which is what i've seen suggested here) is not an option because it writes to the .text section. my current solution is to use CREATETHREAD, but i'm trying to avoid this. is there any alternative that doesn't involve code injection?
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Jan 28, 2016 5:05 pm    Post subject: Reply with quote

Code:
globalalloc(alloc1,4)

aobscanmodule(aob1,....)

alloc1:
readmem([aob1],4)





Code:
globalalloc(alloc1,4)

aobscanmodule(aob1,....)

alloc1:
readmem([[[aob1+offset0]+offset1]+offset2]+offset3,4)

_________________
Back to top
View user's profile Send private message MSN Messenger
IIlIIII
How do I cheat?
Reputation: 0

Joined: 28 Jan 2016
Posts: 2

PostPosted: Thu Jan 28, 2016 5:14 pm    Post subject: Reply with quote

thank you very much!
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 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