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 


learning pointers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
zakusa
Cheater
Reputation: 0

Joined: 09 Sep 2015
Posts: 48

PostPosted: Thu Aug 03, 2017 9:54 pm    Post subject: learning pointers Reply with quote

hi i have been learning pointers but i cant seem to get a base address from a pointer through lua i have the offsets and the address ( something written like "Assault Cube" - 5555555 ) but i c ant get the actual address though from it i tried using main.lua but its so hard to learn from it. can someone please give me the script
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Fri Aug 04, 2017 9:32 am    Post subject: Reply with quote

Here's the pointer for the first step of the tutorial (well step 2 since the first is just clicking next lol)


To use it in lua you could use: writeInteger("[Tutorial-i386.exe+1FD5D0]+480", 300)

like this:



You can also use getAddress to get the address as a number that you can manipulate with math (eg. + 4 instead of concatenating 4 into the string address)



if you had multiple offsets then you just add multiple [] to denote reading the address eg. you have the base address BA and the hex offsets 4, 8, 16, 32 you'd use

local addr = "[[[[BA]+4]+8]+16]+32"

or if you really want to you can manually follow the path with something like

Code:
-- lua uses decimal numbers so if you want hex you need to use 0x
local offsets = {0x4,0x8,0x16,0x32}
local addr = "BA"
for k,v in ipairs(offsets) do
  addr = readPointer(addr) + v
end


example on step 8


celua.txt wrote:
readPointer(address): In a 64-bit target this equals readQword, in a 32-bit target readInteger()
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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