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 as Lua variable

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

Joined: 01 Feb 2019
Posts: 9

PostPosted: Wed Feb 05, 2020 10:36 am    Post subject: Pointer as Lua variable Reply with quote

I found the pointer address for some data and would like to get the same data that the pointer points to as lua's variable (4 bytes like in cheat engine) (look at attachment for this post). I am asking for help in this matter.


Ps. I tried this code:

Code:

local x=readBytes("[[[[[[[h3hota HD.exe+0029CCFC]+40]+24]+8]+8]+4]+4]+E4",4);
print(x);


but it wasn't work.



screen2.png
 Description:
 Filesize:  24.96 KB
 Viewed:  1660 Time(s)

screen2.png




Last edited by catshy on Wed Feb 05, 2020 11:10 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Wed Feb 05, 2020 11:09 am    Post subject: Reply with quote

Code:

address=AddressList.getMemoryRecordByDescription('ramka - x i y').CurrentAddress


or

Code:

address=getAddressSafe('[[[[[[["h3hota HD.exe"+0011DE5C]+40]+24]+8]+8]+4]+4]+e4')


or

Code:

address=readPointer(getAddress('"h3hota HD.exe"+0011DE5C'))
address=readPointer(address+0x40)
address=readPointer(address+0x24)
address=readPointer(address+0x8)
address=readPointer(address+0x8)
address=readPointer(address+0x4)
address=readPointer(address+0x4)
address=address+0xe4

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
catshy
How do I cheat?
Reputation: 0

Joined: 01 Feb 2019
Posts: 9

PostPosted: Wed Feb 05, 2020 11:31 am    Post subject: Reply with quote

Thanks! Smile
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