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

Solved How to hook bool method

Status
Not open for further replies.
oh I see. I'm just curious about how to use updates in other classes. Have you ever used the PurulianCheaterz Offset Tester?
 
Ouh, I'm just curious how to do a hook using update in another class. like the one on the Purulian offset tester
Easy, here are some examples...

1)
C++:
void (*old_PlayerController_Update)(void *instance);
void PlayerController_Update(void *instance) {
    if(instance!=nullptr) {
        if(Example1) {
            SpeedBoost(instance, 9999);
        }
    }
    old_PlayerController_Update(instance);
}

2)
C++:
void (*old_PlayerCamera_FixedUpdate)(void *instance);
void PlayerCamera_FixedUpdate(void *instance) {
    if(instance!=nullptr) {
        if(Example2) {
            *(float *) ((uint64_t) instance + 0x4C) = 10.0;
        }
    }
    old_PlayerCamera_FixedUpdate(instance);
}

Then under hackthread...
C++:
HOOK("0x747C2D", PlayerController_Update, old_PlayerController_Update);

HOOK("0x7411CD", PlayerCamera_FixedUpdate, old_PlayerCamera_FixedUpdate);
 
Isn't an instance pointer needed to access another class? In which games does this work, can you name at least one game, and the necessary offsets? I imagined a situation where in classCurrency there is an int field coins 0x10, but there is no update method in this class, but Update is in classMoney (these classes are obviously similar), but in classMoney there is already a field with an offset of 0x10 (for example, string TypeName 0x10), or there is no field with an offset of 0x10 at all, then how will the value of the int coins field in the classCurrency change if using update from classMoney? It's unclear.
Thank you in advance for the clarification
 
My examples are just showing how to use more than one update hook, not how to use an update from a different class when there's no update in the class you're hooking field offsets from. For that yes you do need an instance pointer
 

Brother, I'm also using this struct for a game name : Chicken Gun. I'm using it for [PunRPC] Methods. It was working fine in armeabi-v7a. But now I shifted my project to arm64-v8a. And now this struct [CreateString] offset and [PunRPC] offset just crashing my game when I try to use the [PunRPC] Methods.
Could you please help me out?
 
I have also checked the Offsets are correct IDK why tf it crashes when I turn on the cheat.
 
Hmm, hard to know what's causing the crash if you're offsets are correct after changing to arm64-v8a, so not sure how I can help
 
Thread will be set to "solved" and closed.
When you're not happy with that just send me a message and i will re-open the thread for you.

Thanks.
 
Status
Not open for further replies.