Jump to content

Help With Ted Menu Hooking


Go to solution Solved by bR34Kr,

7 posts in this topic

Recommended Posts

Posted (edited)

So basically I need some help, I've been making a menu using ted's template but when I hook the function and test it in game it does nothing. Can one of y'all tell me what I'm missing or messed up. 

 

function used: 

// RVA: 0x18A5568 Offset: 0x18A5568 VA: 0x1018A5568

public float get_WalkSpeed { }

field used:

//private float walkSpeed; //0xB4

 

code: 

 

#import "Macros.h"

#import <CoreFoundation/CoreFoundation.h>

#import <substrate.h>

#import <Foundation/Foundation.h>

 

void (* ThirdPersonController_WalkSpeed)(void *ThirdPersonController);void _ThirdPersonController_WalkSpeed(void *ThirdPersonController) {

 

    if([switches isSwitchOn:@"Super Speed"]) {

    //private float walkSpeed; // 0xB4

*(float *)((uint64_t)ThirdPersonController + 0xB4) = 200.0f;

 

return ThirdPersonController_WalkSpeed(ThirdPersonController);}

}

void setup() {

 

MSHookFunction((void *)getRealOffset(0x1018A5568), (void *)_ThirdPersonController_WalkSpeed, (void**)&ThirdPersonController_WalkSpeed);

 

        [switches addSwitch:@"Super Speed"

                description:@"extra speed"];

                

                

}

Updated by Tay-K 47
forgot to add something
  • Solution
Posted

Are you sure your hook actually works without the menu? Try hooking to the update function or another function that gets called.

Posted

wait @bR34Kr I got this compile error when I did that. 

Tweak.xm:26:39: error: expected '(' for function-style cast or type construction

ThirdPersonController_WalkSpeed(float , value);

 

I was looking on google about this and found it's a syntax error. Ive tried the fixed but I can't get (float value) to stop tripping.

 

code where error occurs:

{

 

ThirdPersonController_WalkSpeed(float value);

 

    shouldactivateSuperSpeed = false;

    

    }

Posted
1 hour ago, Tay-K 47 said:

wait @bR34Kr I got this compile error when I did that. 

Tweak.xm:26:39: error: expected '(' for function-style cast or type construction

ThirdPersonController_WalkSpeed(float , value);

 

I was looking on google about this and found it's a syntax error. Ive tried the fixed but I can't get (float value) to stop tripping.

 

code where error occurs:

{

 

ThirdPersonController_WalkSpeed(float value);

 

    shouldactivateSuperSpeed = false;

    

    }

Share the full code and put it in a code block as this is unreadbale

Posted
23 hours ago, bR34Kr said:

Share the full code and put it in a code block as this is unreadbale

#import "Macros.h"
#import <CoreFoundation/CoreFoundation.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

//public void set_WalkSpeed(float value); // RVA: 0x18A5724 Offset: 0x18A5724 VA: 1018A5724

void (* ThirdPersonController_WalkSpeed) (void *ThirdPersonController, float value) = (void (*) (void *, float))getRealOffset(0x1018A5724);

    bool shouldactivateSuperSpeed = true;
    
void (*old_ThirdPersonController_Update) (void *ThirdPersonController);

void ThirdPersonController_Update (void *Update){

int item = [[switches getValueFromSwitch:@"SuperSpeed:"]intValue];

if([switches isSwitchOn:@"SuperSpeed:"])

{

if(shouldactivateSuperSpeed)

{

ThirdPersonController_WalkSpeed(float value);

    shouldactivateSuperSpeed = false;
    
    }

}

else

{

    shouldactivateSuperSpeed = true;

    }
}

void setup() {

MSHookFunction((void *)getRealOffset(0x1018A607C), (void *)ThirdPersonController_Update, (void**)&ThirdPersonController_Update);
        
        [switches addTextfieldSwitch:@"SuperSpeed:"
            description:@"Here you can enter your own speed amount"
              inputBorderColor:UIColorFromHex(0xffffff)];
                
                
}

Ok there, the error occurs here.

ThirdPersonController_WalkSpeed(float value); <--- here

Posted
On 3/8/2021 at 11:41 PM, Tay-K 47 said:

#import "Macros.h"
#import <CoreFoundation/CoreFoundation.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

//public void set_WalkSpeed(float value); // RVA: 0x18A5724 Offset: 0x18A5724 VA: 1018A5724

void (* ThirdPersonController_WalkSpeed) (void *ThirdPersonController, float value) = (void (*) (void *, float))getRealOffset(0x1018A5724);

    bool shouldactivateSuperSpeed = true;
    
void (*old_ThirdPersonController_Update) (void *ThirdPersonController);

void ThirdPersonController_Update (void *Update){

int item = [[switches getValueFromSwitch:@"SuperSpeed:"]intValue];

if([switches isSwitchOn:@"SuperSpeed:"])

{

if(shouldactivateSuperSpeed)

{

ThirdPersonController_WalkSpeed(float value);

    shouldactivateSuperSpeed = false;
    
    }

}

else

{

    shouldactivateSuperSpeed = true;

    }
}

void setup() {

MSHookFunction((void *)getRealOffset(0x1018A607C), (void *)ThirdPersonController_Update, (void**)&ThirdPersonController_Update);
        
        [switches addTextfieldSwitch:@"SuperSpeed:"
            description:@"Here you can enter your own speed amount"
              inputBorderColor:UIColorFromHex(0xffffff)];
                
                
}

Ok there, the error occurs here.

ThirdPersonController_WalkSpeed(float value); <--- here

ThirdPersonWalkSpeed just gets the current speed probably. In the update function, you need to actually change the value of the speed by maybe setting the speed variable or smth else.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Mob Control v2.89.4 +7 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Jailbreak required hack(s): [Mod Menu Hack] Mob Control v2.78.0 +7 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 224 replies
    • Mob Control v2.89.4 +7 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Mob Control v2.78.0 +7 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 128 replies
    • Grimguard Tactics: Fantasy RPG v1.14.0 +3 Jailed Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Jailbreak required hack(s): [Mod Menu Hack] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Cheats [ Auto Win ] - ViP Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Like
      • 123 replies
    • Grimguard Tactics: Fantasy RPG v1.14.0 +3 Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Jailed Cheats [ Auto Win ] - ViP Non-Jailbroken Hacks & Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Thanks
        • Winner
        • Like
      • 96 replies
    • Modern Community v1.17004.194765 +1++ Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Jailbreak required hack(s): [Mod Menu Hack] Modern Community v1.1008.81088 +1++ Cheat [ Unlimited Everything ] - ViP Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 102 replies
    • Modern Community v1.17004.194765 +1++ Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Non-Jailbroken & No Jailbreak required hack(s): [No Jailbreak Required] Modern Community v1.1008.81088 +1++ Jailed Cheat [ Unlimited Everything ] - ViP Non-Jailbroken Hacks & Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 62 replies
    • MIST: Horror Idle Survival RPG v1.8.3 +4 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Jailbreak required hack(s): [Mod Menu Hack] MIST: Horror Idle Survival RPG v1.2 +4 Cheats [ Damage Multiplier ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Like
      • 19 replies
    • MIST: Horror Idle Survival RPG v1.8.3 +4 Cheats [ Damage + More ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] MIST: Horror Idle Survival RPG v1.2 +4 Jailed Cheats [ Damage Multiplier ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 47 replies
    • Nuclear Day Survival v0.139.7 +5 Jailed Cheats [ Unlimited Stats ]
      Modded/Hacked App: Nuclear Day Survival By APPWILL COMPANY LTD
      Bundle ID: com.somniumfabri.nuclearday
      iTunes Store Link: https://apps.apple.com/us/app/nuclear-day-survival/id1666266916?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Unlimited Hunger
      - Unlimited Water
      - Unlimited Health
      - Unlimited Energy
      - No Radiation
        • Informative
        • Agree
        • Haha
        • Like
      • 12 replies
    • Nuclear Day Survival v0.139.7 +5 Cheats [ Unlimited Stats ]
      Modded/Hacked App: Nuclear Day Survival By APPWILL COMPANY LTD
      Bundle ID: com.somniumfabri.nuclearday
      iTunes Store Link: https://apps.apple.com/us/app/nuclear-day-survival/id1666266916?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Unlimited Hunger
      - Unlimited Water
      - Unlimited Health
      - Unlimited Energy
      - No Radiation
        • Informative
        • Agree
        • Winner
        • Like
      • 14 replies
    • Lost Enders v1.9.6 +3 Jailed Cheats [ God / O-HK ]
      Modded/Hacked App: Lost Enders By makoto takeuchi
      Bundle ID: jp.co.kurukurugames.lostenders
      iTunes Store Link: https://apps.apple.com/us/app/lost-enders/id6502868763?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Lost Enders v1.0.4 +2 Cheats [ God / O-HK ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Thanks
        • Winner
        • Like
      • 37 replies
    • Lost Enders v1.9.6 +3 Cheats [ God / O-HK ]
      Modded/Hacked App: Lost Enders By makoto takeuchi
      Bundle ID: jp.co.kurukurugames.lostenders
      iTunes Store Link: https://apps.apple.com/us/app/lost-enders/id6502868763?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Lost Enders v1.0.4 +2 Jailed Cheats [ God / O-HK ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Thanks
        • Winner
        • Like
      • 70 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines