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 


Dissect Structure not showing all offsets?

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

Joined: 08 Jul 2016
Posts: 25

PostPosted: Sat Jul 16, 2016 11:06 pm    Post subject: Dissect Structure not showing all offsets? Reply with quote

When dissecting data structures I've noticed it doesn't show all the offsets. Say, I found my health address at [ecx+00000039] and wanted to find enemy health addresses plus any other information I can in those structures (ie mana addresses) I could dissect whatever [ecx] is for myself and some enemies. To find my and the enemy health addresses I would find offset 39 in the [ecx] structure, but sometimes the offset just isn't listed there. It will have something like:

> 002F
> 0030
> 0038
> 0040
> 0048
> 004C

It's easy enough to get around this by starting with the offset I want but I'm curious why the dissect structure list seems to skip around a bit with the offsets.

Here is a URL to part of a video that can serve as an example if you aren't sure what I mean:

youtu.be/nR7ub4_9vrY?t=403
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Jul 16, 2016 11:16 pm    Post subject: Reply with quote

39 is such an odd offset and Cheat Engine can only guess data types based on their value.
Addresses are normally type-aligned, meaning they're often a multiple of 4.

Based on your list of offsets, I have to assume Cheat Engine guessed that bytes 38 through 3F consisted of a double.

In the video, Cheat Engine skipped over offset 78 simply because it thought offset 74 was a double.
A double is an 8-byte value, meaning it covered both offsets 74 and 78.

Everything is just a guess based on value ranges and whether the number would make sense to a human.
Back to top
View user's profile Send private message
Blank 0
Cheater
Reputation: 0

Joined: 08 Jul 2016
Posts: 25

PostPosted: Sat Jul 16, 2016 11:20 pm    Post subject: Reply with quote

Ah, thank you very much. That makes sense. I've been wondering about that for a while now.

And yeah, I made up the example I listed with 39 being the offset. In the video I believe offset 78 was a float. It's one of those games where 1 is full health and it decreases to 0 as you are damaged.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sun Jul 17, 2016 4:25 am    Post subject: Reply with quote

yeah, it's just a guess.
but you can just add offset 78 manually and set it as a float. There is no rule that entries can't overlap so you can just do that (you can even have the same offset multiple times)

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