| View previous topic :: View next topic |
| Author |
Message |
Blank 0 Cheater
Reputation: 0
Joined: 08 Jul 2016 Posts: 25
|
Posted: Sat Jul 16, 2016 11:06 pm Post subject: Dissect Structure not showing all offsets? |
|
|
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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Jul 16, 2016 11:16 pm Post subject: |
|
|
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 |
|
 |
Blank 0 Cheater
Reputation: 0
Joined: 08 Jul 2016 Posts: 25
|
Posted: Sat Jul 16, 2016 11:20 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Sun Jul 17, 2016 4:25 am Post subject: |
|
|
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 |
|
 |
|