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 to read values through pointerchains ?

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

Joined: 03 Oct 2014
Posts: 48

PostPosted: Fri Jan 05, 2018 7:02 am    Post subject: how to read values through pointerchains ? Reply with quote

No good:

local CharNameLength = readInteger("[[[ rbxAddress + 30] + 28] + 10] + 10"); -- this one turns the rbxAddress variable into literal string ..


local CharNameLength = readInteger('[[[' .. rbxAddress .. '+ 30] + 28] + 10] + 10');


this works on the address table:
[[[816F4A80 + 30] + 28] + 10] + 10 as address for 4 byte integer ..

EDIT1:
this 1 worked so I'll try printf next
CharNameLength = readInteger("[[[816F4A80 + 30] + 28] + 10] + 10");

EDIT2:

this worked
local CharNameLength = readInteger(string.format("[[[%10X+ 30] + 28] + 10] + 10",rbxAddress));

EDIT3:

and this reads me unicode string

local CharNameLength = readInteger(string.format("[[[%10X+ 30] + 28] + 10] + 10",rbxAddress));
local zCharName = readString(string.format("[[[%10X+ 30] + 28] + 10] + 14",rbxAddress), CharNameLength * 2, 1);
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