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 use the address of a Linked List Node in a Cheat Tabl

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

Joined: 08 Nov 2017
Posts: 2

PostPosted: Wed Nov 08, 2017 3:02 pm    Post subject: How to use the address of a Linked List Node in a Cheat Tabl Reply with quote

Hi, I'm trying to poke at an old game on PCSX2. I had been trying to find a solid pointer for the character position through the debugger, but had not been having much luck. I finally spent a while trying to figure out why and actually discovered that it's on a linked-list-like structure which seems to hold structs for some sort of dynamic game object.

I've have some code that traverses the linked list:

Code:

currentblock = readInteger(0x2036C080) --read the pointer to the first block

while ((currentblock ~= 0) and (currentblock ~= nil)) do
  print(readString(currentblock + 0x20000000))

  currentblock=readInteger(currentblock + 0x20000024)   --get next block
end


This also prints a label that each node has, for example:

Code:

HEAD
NONAME
NONAME
NONAME
NONAME
NONAME
NONAME
NONAME
NONAME
NONAME
NONAME
NONAME
Quake
NONAME
Triangle
Triangle
Layer
NONAME
NONAME
Message
Window
Window
Window
Window
Window
Player
HumanSplash
NONAME
SingleDoor
NONAME
NONAME
Item
Item
Item
Item
Item
Item
Triangle
Triangle
Triangle
Triangle
Triangle
Triangle
NONAME
TaskWater
RainSplashRoot
NONAME
NONAME
View
NONAME
NONAME
NONAME
NONAME
NONAME
ROOT_DRAW
NONAME
COMPASSTASK
TAIL


I want to be able to get the address of any particular node (in this case, the Player node) and use its address in the Cheat Table if possible.
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