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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Nimble Quest Halfbrick+ v1.1.2 +6 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Nimble Quest Halfbrick+ By Halfbrick
      Bundle ID: com.halfbrick.nimblequest
      iTunes Store Link: https://apps.apple.com/us/app/nimble-quest-halfbrick/id6667096113?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Unlimited Coins -> Tap on Options.*
      - Unlimited Gems -> Tap on Options.*
      - Unlock All Heroes -> Tap on Options.*
      -- Subscription Enabled

      * - Only enable 1 feature at a time.
      • 1 reply
    • Nimble Quest Halfbrick+ v1.1.2 +6 Cheats [ Damage + More ]
      Modded/Hacked App: Nimble Quest Halfbrick+ By Halfbrick
      Bundle ID: com.halfbrick.nimblequest
      iTunes Store Link: https://apps.apple.com/us/app/nimble-quest-halfbrick/id6667096113?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Unlimited Coins -> Tap on Options.*
      - Unlimited Gems -> Tap on Options.*
      - Unlock All Heroes -> Tap on Options.*
      -- Subscription Enabled

      * - Only enable 1 feature at a time.
      • 1 reply
    • [ FFBE WoTV Japan ] FFBE幻影戦争 WAR OF THE VISIONS Cheats v11.4.5 +3
      Modded/Hacked App: FFBE幻影戦争 戦略RPG/シミュレーションゲーム By SQUARE ENIX Co., Ltd.
      Bundle ID: com.square-enix.WOTVffbejp
      iTunes Store Link: https://apps.apple.com/jp/app/ffbe%E5%B9%BB%E5%BD%B1%E6%88%A6%E4%BA%89-%E6%88%A6%E7%95%A5rpg-%E3%82%B7%E3%83%9F%E3%83%A5%E3%83%AC%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%B2%E3%83%BC%E3%83%A0/id1443703517?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Full Map Movement


      iOS Hack Download Link: https://iosgods.com/topic/173484-ffbe-wotv-japan-ffbe%E5%B9%BB%E5%BD%B1%E6%88%A6%E4%BA%89-war-of-the-visions-cheats-v916-3/
      • 80 replies
    • Zombastic: Time to Survive v1.3.1 [ +1+++ Jailed ] Currency Max
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 20 replies
    • Zombastic: Time to Survive v1.3.1 [ +1+++ Cheats ] Currency Max
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 24 replies
    • Cookingdom v1.3 +2 Jailed Cheats [ Cheat Menu ]
      Modded/Hacked App: Cookingdom By ABI GLOBAL LTD.
      Bundle ID: com.abi.cook.chill
      iTunes Store Link: https://apps.apple.com/us/app/cookingdom/id6742222069?uo=4

       


      🤩 Hack Features

      - Cheat Menu -> Head into Settings for the cheat menu to show.
      -- No Ads
      • 0 replies
    • Cookingdom v1.3 +2 Cheats [ Cheat Menu ]
      Modded/Hacked App: Cookingdom By ABI GLOBAL LTD.
      Bundle ID: com.abi.cook.chill
      iTunes Store Link: https://apps.apple.com/us/app/cookingdom/id6742222069?uo=4

       
       

      🤩 Hack Features

      - Cheat Menu -> Head into Settings for the cheat menu to show.
      -- No Ads
      • 0 replies
    • Tower And Swords v2.232 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Tower And Swords By Jisu Im
      Bundle ID: com.Jaems.ProjectCreationRPG
      iTunes Store Link: https://apps.apple.com/us/app/tower-and-swords/id1660251779?uo=4


      🤩 Hack Features

      - IAP Free

      - Gems

      - Coins

      - Never Die

      - DMG

      - Crit Hit
      • 9 replies
    • Tower And Swords v2.232 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Tower And Swords By Jisu Im
      Bundle ID: com.Jaems.ProjectCreationRPG
      iTunes Store Link: https://apps.apple.com/us/app/tower-and-swords/id1660251779?uo=4
       

      🤩 Hack Features

      - IAP Free

      - Gems

      - Coins

      - Never Die

      - DMG

      - Crit Hit
      • 7 replies
    • Hello Kitty My Dream Store v1.0.5 +5 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hello Kitty My Dream Store By ACTGames Co., Ltd.
      Bundle ID: com.actgames.HelloKittyMDS
      iTunes Store Link: https://apps.apple.com/us/app/hello-kitty-my-dream-store/id6736896540?uo=4

       

       
       

      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Energy
      - Unlimited Diamonds
      - Unlimited Gacha Coins
      - Unlimited Stars
      • 9 replies
    • Hello Kitty My Dream Store v1.0.5 +5 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hello Kitty My Dream Store By ACTGames Co., Ltd.
      Bundle ID: com.actgames.HelloKittyMDS
      iTunes Store Link: https://apps.apple.com/us/app/hello-kitty-my-dream-store/id6736896540?uo=4

       


      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Energy
      - Unlimited Diamonds
      - Unlimited Gacha Coins
      - Unlimited Stars
      • 13 replies
    • Kitty’s Kitchen Diary v1.0.9 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Kitty’s Kitchen Diary By SuperPlanet corp.
      Bundle ID: com.superplanet.catrecipe
      iTunes Store Link: https://apps.apple.com/us/app/kittys-kitchen-diary/id6496345774?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Head into Settings and toggle the Notifications button.
      - Unlock All -> Head into Settings and toggle the Nightly Notifications button.
      - Freeze Diamonds
      • 6 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