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 


Data structure / Pointers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Dubstepper
Newbie cheater
Reputation: 0

Joined: 13 Jan 2012
Posts: 10

PostPosted: Wed May 16, 2012 9:31 am    Post subject: Data structure / Pointers Reply with quote

So I did some work to narrow down how a game dropped loot.

It builds a table as loot drops, but it is basically a table of pointers to the loot, and the loot has pointers in it's data structure... blah blah blah.

Anyway.

I tracked down the table.

Basically the base pointer is something like this.

Game.exe+012283ex+5dc+0+108+58 <-- Fake but you get the idea, 5 deep, with a 0 and a 58.

Well it turns out 58 points to an individual stat on the item, say speed. If I push this along... to say 5B it is the item damage, etc. Oh and 58 isn't the base. There is an item ID upstream somewhere, I think the start of each item is like 32 or something... Anyway.

If I move the 3rd pointer point, the 0, to 4, it is the next item in the table.

So all I have to do is loop the 0, and the 58 to create a table that would show all the loot on the floor of the game, and all their stats.

However, I'm not really sure if the data dissector would allow me to do that?

If the floor can hold say 100 items, and each item has 16 properties... That is a lot of copy paste to build all the entries by hand. Sad

I'm not even 100% convinced that my pointer is consistent. But its working thus far.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed May 16, 2012 11:27 am    Post subject: Reply with quote

Try splitting it up into separate standalone structures each pointing to the next one
Then just insert multiple pointer types of the specific structure in a row.

Tip: Don't use autoguess to fill in pointerstructures, fill it in manually, it'll look a lot better

_________________
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
Dubstepper
Newbie cheater
Reputation: 0

Joined: 13 Jan 2012
Posts: 10

PostPosted: Wed May 16, 2012 8:43 pm    Post subject: Reply with quote

Not following... The only real examples of a data structures doesn't use pointers.

They just use a base memory address. So, how would i put a pointer as the target of my data structure. No real way to drag and drop a pointer there.

If I targeted the 2nd pointer, the one with a 0, and then enumerate that, it will be a list of pointers, okay... But then I need to drill into each of those, with a separate data structure that will have all the items.

Completely lost. Shocked

I just followed them out, and manually added them both here...

However I'm looking to make a table, I supposed this is a table, just build horizontally instead of the typically vertical.



Dissect.jpg
 Description:
Following the pointers manually, and pointing at them.
 Filesize:  86.17 KB
 Viewed:  3391 Time(s)

Dissect.jpg


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 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