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 


Reading Memory Address with LUA

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
SEKTION
Cheater
Reputation: 0

Joined: 05 Nov 2017
Posts: 39
Location: Behind the keyboard

PostPosted: Sat Aug 08, 2020 5:30 am    Post subject: Reading Memory Address with LUA Reply with quote

Hi,
So I was trying to store address from [register+offset] to a variable in Lua but I'm not able to do it.
I know pointer can be read from or static memory address can be read from e.g [game.exe+offset] but I wanna know if value from [register+offset] can be read with LUA? e.g [rdi+1580] stores a value of 30 so i want to store this value in variable in LUA.
Thanks!!!

_________________
TH3 UND3N14BL3
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 98

Joined: 14 Jul 2007
Posts: 3356

PostPosted: Sat Aug 08, 2020 6:56 am    Post subject: Reply with quote

Have you tried readInteger?
Quote:

readInteger(address) : Reads a 32-bit integer from the specified address
Back to top
View user's profile Send private message
SEKTION
Cheater
Reputation: 0

Joined: 05 Nov 2017
Posts: 39
Location: Behind the keyboard

PostPosted: Sat Aug 08, 2020 7:33 am    Post subject: Reply with quote

Yes
It doesn't work!

_________________
TH3 UND3N14BL3
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 153

Joined: 06 Jul 2014
Posts: 4734

PostPosted: Sat Aug 08, 2020 10:43 am    Post subject: Reply with quote

Search for "injection copy" (use AA)
_________________
I don't know where I'm going, but I'll figure it out when I get there.
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 Lua Scripting 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