This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! Ask For No Offset Value In Dump.cs (GoldandGlory)

I'm noob and just start learning about hack and mod, i just complete the task to dump a game gold&glory, after watch some tutorial, i must have the offsets value in order to hack the game. But after i search in dump.cs file, it doesn't have the Offset value,just VA and RVA. Am i miss something or There is another step? Please give me your advice.
 
If like this how can i find the offset,i try to use lua script like field offset finder,it will gave me one addres,then i dont know how to find the offset cause it just one addres has found.
That's a field offset, you're supposed to access it from an instance of that class.

for example, to access MoveSpeed you can hook Update() in thirdpersoncontroller class and take its first parameter (which will be the instance), then your absoluteOffset (the one you have to access) will be instance + fieldoffset

C++:
// example hook using the macro

// Easy way to get a field from an instance
template<typename T> inline T &GetField(void *instance, uint64_t offset) {
    return (T &) (*(T *) ((uint64_t) instance + offset));
}

void (*old_thirdPersonController)(...);
void thirdPersonController(void* instance) {
    if (instance) {
        // change moveSpeed at 0x20
        GetField<float>(instance, 0x20) = 99.f;
    }
    old_thirdPersonController(instance);
}

// remember to use your Hook library to hook the Update() function from thirdPersonController
 
Thx for your explanation,but im use the game guardian, i learn from your explanation that if i want get the offset of movespeed,i must search the instance address,then if i want to get the offset of the mov speed, instance + movespeed (0x20), is that like that? However i use the game guardian so i cant use hooking methods, can you give me explanation about how i search an instance of class using game guardian?
 
best bet would be to find static methods that point to that instance of a class, but you should seriously try proper hooking for any serious modding