1. ## How to get offset from base to adress

Hi guys,

my base is DE77A4 and the final adress from which I read values is CFB7E0.
How do I get the offset which points from the base to the adress?

Liduen

2. wat

dont understand

3. What program are you using?

4. Your question isn't very clear, might want to reword it for others.... but if I understood it correctly, heres what I have to say:

typically a class starts at an address somewhere in memory, all of its members are so many bytes away from this base address

example

class Example
{
int x;
int y;
int z;
int health;
};

if Example starts at memory 0x0
then x is at 0x4, y is at 0x8, z is at 0xC and health is at 0x10

Another good way is watching how these values get their values (watching the registers / stack and working backwards!

Can someone else with some more experience chime in?

5. Ah sorry guys, my fault. Totally nonsense what I've posted.
It was just a terrible misunderstanding on my side, lol.

6. Would you mind explaining your confusion in here so that others who probably have, or will have the same question as you can see it?! And then explaining how you fixed / understood it?
You'd be helping out the community!

Thanks

7. Well it's a bit hard for me to explain all this is english, because english isn't my native language. But I'll give it a try

All in all, I just had a little mess in my understanding of system adresses.
If I got it right now- the whole thing behaves like this:
When you got an adress with an offset and base which is the game base, then the offset is equal to the final adress to read/write. (Game Base + Offset = Adress; Offset == Adress)
When you got a random adress with an offset, the final adress to read/write is (mostly?) different to the offset. (Random Base + Offset = Adress; Offset != Adress)

I wasn't really sure if my hack would work on other systems if I just use static adresses with no pointers. So I wanted even the static ones with offsets and the game base as base.
But some days ago I found out that my hack works pretty well on other systems without these pointers too. After all this topic was unnecessary, sorry for that.
If I'm still not totally right of how pointers and base adresses work, please reply and tell me what's wrong and how it should be.
If that's the case the thread wasn't useless at all.