Jump to content

shmoo mod menu not showing


m0hammed

14 posts in this topic

Recommended Posts

Posted

i make tweak but not show in the game :gasp:

this is tweak 

Spoiler

#include "Macros.h"

/*****************************/
// Please see sample.xm for sample menu code.

// title of your menu
static NSString *const title = @"man or vampire"; 

// who made the hack?
static NSString *const credits = @"made by intell";

// what font do you want the text to be? don't put anything for the default font
static NSString *const font = @"";

// should the menu have a blurred background? true or false
// FYI: this won't always look pretty
static const bool blur = ?;

// blur style
// you MUST pick from these three: UIBlurEffectStyleExtraLight, UIBlurEffectStyleLight, or UIBlurEffectStyleDark
// *** If you opted for no blur background, this is ignored. However, you still need to fill it in. ***
static const UIBlurEffectStyle blurStyle = ?;

// A complete list of fonts can be found here: http://iosfonts.com/
/******************************/

%hook UnityAppController

- (void)applicationDidBecomeActive:(id)arg0 {
    UIColor *themeColor = rgb(arc4random_uniform(0xFFFFFF));
    static const bool blur = false;
    static const UIBlurEffectStyle blurStyle = UIBlurEffectStyleLight;
  }

    UIWindow *main = [UIApplication sharedApplication].keyWindow.rootViewController.view;

    UIButton *openButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    openButton.frame = CGRectMake((main.frame.size.width/2)-15, (main.frame.size.height/2)+75, 30, 30);
    openButton.backgroundColor = [UIColor clearColor];
    openButton.layer.cornerRadius = 16;
    openButton.layer.borderWidth = 2;
    openButton.layer.borderColor = themeColor.CGColor;
    [openButton addTarget:self action:@selector(wasDragged:withEvent:) 
    forControlEvents:UIControlEventTouchDragInside];
    [openButton addTarget:self action:@selector(showMenu) 
    forControlEvents:UIControlEventTouchDownRepeat];

    if(!buttonAdded){
        timer(5){
            UIWindow *main = [UIApplication sharedApplication].keyWindow.rootViewController.view;
            menu = [[ModMenu alloc] initWithTitle:title credits:credits fontName:font theme:themeColor blur:blur blurStyle:blurStyle];

            /*
            Add features below this comment. Feel free to delete this comment if you're comfortable with how this menu works.

            Things are added to the menu in the order you have added them.

            A Hack is a switch that contains offsets, hacked hexes, and original hexes. Straightforward.
            To create one, call addHack.
            addHack is called as follows: addHack(@"Hack Name", @"The description of your hack", themeColor, {offsets}, {hacked hexes}, {original hexes});
            For example:
            addHack(@"Infinite Ammo", @"Ammo doesn't run out.", themeColor, {0x1001B292A}, {0xC0035FD6}, {0xD213AEB5});
            You can also have multiple offsets, hacked hexes, and original hexes. There's no limit to the number of offsets you can have! For example:
            addHack(@"No Recoil", @"No recoil prevents any recoil from being applied when you shoot.", themeColor, {0x356a7c, 0x110f0a}, {0x7047, 0x7047}, {0xf0b5, 0xf0b5});
            
            A Hook is a switch that used to hook a function and apply a feature. This doesn't make much sense because you cannot "unhook" a function if
            the user wants the feature off. It currently serves no purpose except for backward compatibility. All it does is turn on or off now.

            A SliderHook is a slider that can be customized to have a minimum and maximum value.
            Good for hooking a function and returning user-specified values. To create one, call addSliderHook.
            addSliderHook is called as follows: addSliderHook(@"Hack Name", @"Description of your hack", themeColor, initial value, minimum value, maximum value);
            For example:
            addSliderHook(@"Adjust Field of View", @"Adjust your field of view.", themeColor, 0, 100, 50);
            To get the value of a SliderHook:
            float value = [SliderHook getSliderValueForHook:@"hack name here"];
            int value = (int)[SliderHook getSliderValueForHook:@"hack name here"];

            A TextfieldHook is a textfield. Again, good for hooking a function and returning user-specified values.
            To create one, call addTextfieldHook.
            addTextfieldHook is called as follows: addTextfieldHook(@"Hack name", @"Description of your hack", themeColor);
            For example:
            addTextfieldHook(@"Set Gems", @"Set your gem amount.", themeColor);
            To get the value of a TextfieldHook:
            NSString *value = [TextfieldHook getTextfieldValueForHook:@"hack name here"];
            float value = [[TextfieldHook getTextfieldValueForHook:@"hack name here"] floatValue];
            int value = [[TextfieldHook getTextfieldValueForHook:@"hack name here"] intValue];

            A Switch does nothing but turn on or off. Useful when you are in a hooked function and need to know when to call a function or mod an instance variable.
            Since it doesn't do anything but turn on or off, it is essentially the same thing as a Hook.
            To create one, call addSwitch.
            addSwitch is called as follows:
            addSwitch(@"Hack name", @"Description of your hack", themeColor);
            For example:
            addSwitch(@"Kill Everyone", @"Kill everyone in the lobby", themeColor);
            To test whether or not a Switch is on:
            bool on = [Switch getSwitchOnForSwitch:@"hack name here"];

            If you want to use writeData in your Tweak.xm, now you can! Call writeData like you normally would.
            Call writeData after the menu has been created. If you use it where you add features, you'll be fine.

            Handle hooking with the HOOK and HOOK_NO_ORIG macros. I decided to let you guys handle hooking because
            it is too troublesome to make sure I handle cases where you guys pass parameters incorrectly.

            If I wanted to hook a function called LocalPlayer::Update at 0x1001B762A with a pointer to the original function, I would do this:
            HOOK(0x1001B762A, _LocalPlayer_Update, LocalPlayer_Update);

            Where _LocalPlayer_Update is the function you write, and LocalPlayer_Update is the pointer to the original function.

            You can use HOOK_NO_ORIG if you don't need the pointer to the original function:
            HOOK_NO_ORIG(0x1001B762A, _LocalPlayer_Update);

            If that is too confusing, you can always just use MSHookFunction. HOOK and HOOK_NO_ORIG just wrap MSHookFunction in a cleaner call.
            */

            // add features here!

addHack(@"Infinite Ammo", @"Ammo doesn't run out.", themeColor, {0x1001B292A}, {0xC0035FD6}, {0xD213AEB5});
addHack(@"Infinite Ammo", @"Ammo doesn't run out.", themeColor, {0x1001B292A}, {0xC0035FD6}, {0xD213AEB5});

            [main addSubview:openButton];
            [main addSubview:menu];

            buttonAdded = true;
        });
    }

    %orig;
}

%new
- (void)showMenu {
    [menu show];
}

%new
- (void)wasDragged:(UIButton *)button withEvent:(UIEvent *)event
{
    UITouch *touch = [[event touchesForView:button] anyObject];

    CGPoint previousLocation = [touch previousLocationInView:button];
    CGPoint location = [touch locationInView:button];
    CGFloat delta_x = location.x - previousLocation.x;
    CGFloat delta_y = location.y - previousLocation.y;

    button.center = CGPointMake(button.center.x + delta_x, button.center.y + delta_y);
}
%end

void addHack(NSString *name, NSString *description, UIColor *theme, std::initializer_list<uint64_t> offsets, std::initializer_list<uint64_t> hackedHexes, std::initializer_list<uint64_t> originalHexes){
    if(menu == nil)
        return;
    
    std::vector<uint64_t> offsetVector;
    std::vector<uint64_t> hackedHexVector;
    std::vector<uint64_t> originalHexVector;
    
    offsetVector.insert(offsetVector.begin(), offsets.begin(), offsets.end());
    hackedHexVector.insert(hackedHexVector.begin(), hackedHexes.begin(), hackedHexes.end());
    originalHexVector.insert(originalHexVector.begin(), originalHexes.begin(), originalHexes.end());
    
    Hack *h = [[Hack alloc] initWithHackName:name info:description fontName:font theme:theme offset:offsetVector hackedHex:hackedHexVector originalHex:originalHexVector];
    [menu addHack:h];
}

void addHook(NSString *name, NSString *description, UIColor *theme){
    if(menu == nil)
        return;
    
    Hook *h = [[Hook alloc] initWithHookName:name info:description fontName:font theme:theme];
    [menu addHook:h];
}

void addSliderHook(NSString *name, NSString *description, UIColor *theme, float initialValue, float minValue, float maxValue){
    if(menu == nil)
        return;

    if(minValue > maxValue)
        return;
    
    SliderHook *sh = [[SliderHook alloc] initWithSliderHookName:name info:description fontName:font theme:theme initialValue:initialValue minValue:minValue maxValue:maxValue];
    [menu addHook:sh];
}

void addTextfieldHook(NSString *name, NSString *description, UIColor *theme){
    if(menu == nil)
        return;
    
    TextfieldHook *th = [[TextfieldHook alloc] initWithTextfieldHookName:name info:description fontName:font theme:theme];
    [menu addHook:th];
}

void addSwitch(NSString *name, NSString *description, UIColor *theme){
    if(menu == nil)
        return;
    
    Switch *s = [[Switch alloc] initWithSwitchName:name info:description fontName:font theme:theme];
    [menu addHook:s];
}

void writeData(uint64_t offset, uint64_t hex){
    if(menu == nil)
        return;
    
    [menu writeTo:offset withHex:hex];
}

 

Posted
39 minutes ago, DiDA said:

Is your bundle ID correct?

Is the 

 

44 minutes ago, intell said:

- (void)applicationDidBecomeActive:(id)arg0 {
    UIColor *themeColor = rgb(arc4random_uniform(0xFFFFFF));
    static const bool blur = false;
    static const UIBlurEffectStyle blurStyle = UIBlurEffectStyleLight;
  }

Part correct though? Cuz i helped him with that, i am not sure myself i just read the instructions for menu theme and thought this is correct

Posted
1 hour ago, TheArmKing said:

Is the 

 

Part correct though? Cuz i helped him with that, i am not sure myself i just read the instructions for menu theme and thought this is correct

 

first time i got this 

Spoiler

iPhone:/var/vampier root# make package
> Making all for tweak vampier…
==> Preprocessing Tweak.xm…
Tweak.xm:130: error: %orig does not make sense outside a block
make[3]: *** [/var/theos/makefiles/instance/rules.mk:242: /var/vampier/.theos/obj/debug/arm64/Tweak.xm.mm] Error 255
make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/vampier/.theos/obj/debug/arm64/vampier.dylib] Error 2
make[1]: *** [/var/theos/makefiles/instance/library.mk:24: internal-library-all_] Error 2
make: *** [/var/theos/makefiles/master/rules.mk:123: vampier.all.tweak.variables] Error 2
iPhone:/var/vampier root# make package

second time this but same not show 

Spoiler

iPhone:/var/vampier root# make package
> Making all for tweak vampier…
==> Compiling Tweak.xm (arm64)…
==> Linking tweak vampier (arm64)…
==> Generating debug symbols for vampier…
==> Merging tweak vampier…
==> Signing vampier…
> Making stage for tweak vampier…
dm.pl: building package `iosgods.com.manorvampier:iphoneos-arm' in `./debs/iosgods.com.manorvampier_1.2.7-2+debug_iphoneos-arm.deb'

 

1 hour ago, DiDA said:

Is your bundle ID correct?

yep

Posted

Weird question, but did you install it?

Since you just ran 'make package' instead of 'make package install'.

Posted
5 minutes ago, DiDA said:

Weird question, but did you install it?

 Since you just ran 'make package' instead of 'make package install'.

 

Spoiler

iPhone:/var/vampier root# make package install
> Making all for tweak vampier…
make[2]: Nothing to be done for 'internal-library-compile'.
> Making stage for tweak vampier…
dm.pl: building package `iosgods.com.manorvampier:iphoneos-arm' in `./debs/iosgods.com.manorvampier_1.2.7-4+debug_iphoneos-arm.deb'
make: *** No rule to make target 'install'.  Stop.

 

Posted
27 minutes ago, intell said:

 

  Hide contents

iPhone:/var/vampier root# make package install
> Making all for tweak vampier…
make[2]: Nothing to be done for 'internal-library-compile'.
> Making stage for tweak vampier…
dm.pl: building package `iosgods.com.manorvampier:iphoneos-arm' in `./debs/iosgods.com.manorvampier_1.2.7-4+debug_iphoneos-arm.deb'
make: *** No rule to make target 'install'.  Stop.

 

You need to set the permissions for the Theo’s folder. I made the whole Theo’s folder 0777, and it fixed it.

Posted
42 minutes ago, Joka said:

You need to set the permissions for the Theo’s folder. I made the whole Theo’s folder 0777, and it fixed it.

 

41 minutes ago, Amuyea said:

I would say to create new one and don’t modify anything repeated to theme. Then test

 

i try but the menu same not show in the game

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Airport City Cheats v8.43.01 +1
      Modded/Hacked App: Airport City by Game Insight UAB
      Bundle ID: com.gameinsight.airportcity
      iTunes Store Link: https://apps.apple.com/us/app/airport-city/id495637457?uo=4&at=1010lce4


      Hack Features:
      - Free Store


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/126716-arm64-airport-city-v717-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/126714-arm64-airport-city-cheats-v717-1/
      • 772 replies
    • Westland Survival - Cowboy RPG v10.7.0 +7 [ Items Cheat ]
      Modded/Hacked App: Westland Survival - Cowboy RPG By HELIO LTD
      Bundle ID: com.heliogames.a1
      iTunes Store Link: https://apps.apple.com/us/app/westland-survival-cowboy-rpg/id1339238576?uo=4


      Hack Features:
      - Unlimited Energy / Instant Energy Refills
      - Unlock All Blueprints
      - Items Duplicate When Split / Items Hack
      - Unlimited Consumable Items
      - Unlimited Item Durability
      - God Mode / Never Die -> Linked with enemies. Useful for looting.
      - One Hit Kill / High Damage -> Linked with enemies. Use with caution.


      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/
      • 475 replies
    • Resident Evil Survival Unit v1.2.1 +6 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Resident Evil Survival Unit By Aniplex Inc.
      Bundle ID: com.aniplex.resu
      App Store Link: https://apps.apple.com/us/app/resident-evil-survival-unit/id6744668327?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier [ Battle ]
      - Defence Multiplier [ Battle ]
      - God Mode [ Battle ]
      - God Mode [ Explore ]
      - One-Hit Kill [ Explore ]
      - Freeze Items & Ammo
      • 56 replies
    • Resident Evil Survival Unit v1.2.1 +6 Cheats [ Damage & Defence ]
      Modded/Hacked App: Resident Evil Survival Unit By Aniplex Inc.
      Bundle ID: com.aniplex.resu
      App Store Link: https://apps.apple.com/us/app/resident-evil-survival-unit/id6744668327?uo=4

       


      🤩 Hack Features

      - Damage Multiplier [ Battle ]
      - Defence Multiplier [ Battle ]
      - God Mode [ Battle ]
      - God Mode [ Explore ]
      - One-Hit Kill [ Explore ]
      - Freeze Items & Ammo
      • 61 replies
    • MA 2 – President Simulator v1.0.37 +4++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: MA 2 – President Simulator By OXIWYLE TOV
      Bundle ID: com.oxiwyle.modernage2
      iTunes Store Link: https://apps.apple.com/us/app/ma-2-president-simulator/id6503986463?uo=4

       


      🚀 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      -- Premium Enabled
      -- Acceleration Enabled
      -- No Ads Enabled


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] MA 2 – President Simulator v1.0.24 +4++ Cheats [ Unlimited Everything ] - Free Jailbroken Cydia Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 39 replies
    • MA 2 – President Simulator v1.0.37 +4++ Cheats [ Unlimited Everything ]
      Modded/Hacked App: MA 2 – President Simulator By OXIWYLE TOV
      Bundle ID: com.oxiwyle.modernage2
      iTunes Store Link: https://apps.apple.com/us/app/ma-2-president-simulator/id6503986463?uo=4

       


      🚀 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      -- Premium Enabled
      -- Acceleration Enabled
      -- No Ads Enabled


      🍏 For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] MA 2 – President Simulator v1.0.24 +4++ Jailed Cheats [ Unlimited Everything ] - Free Non-Jailbroken IPA Cheats - iOSGods
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 22 replies
    • All in Hole: Black Hole Games v6.0.2 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: All in Hole: Black Hole Games By HOMA GAMES
      Bundle ID: com.homagames.studio.allinhole
      App Store Link: https://apps.apple.com/us/app/all-in-hole-black-hole-games/id6503284107?uo=4

       
       

      🤩 Hack Features

      - Unlimited Coins -> Earn some.
      - Unlimited Lives
      • 17 replies
    • Fable Town: Merge Games v1.26.2 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Fable Town: Merge Games By REEF GAMES LTD
      Bundle ID: com.reefgames.fabletown
      iTunes Store Link: https://apps.apple.com/us/app/fable-town-merge-games/id6478150057?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Fable Town: Merge Games v1.6.4 +1++ Cheat [ 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/
      • 26 replies
    • Fable Town: Merge Games v1.26.2 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Fable Town: Merge Games By REEF GAMES LTD
      Bundle ID: com.reefgames.fabletown
      iTunes Store Link: https://apps.apple.com/us/app/fable-town-merge-games/id6478150057?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Fable Town: Merge Games v1.6.4 +1++ Jailed Cheat [ 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/
      • 16 replies
    • Ultimate Golf! v5.00.00 +1 Jailed Cheat [ Perfect Shot ]
      Modded/Hacked App: Ultimate Golf! By Miniclip.com
      Bundle ID: com.hypgames.ultimategolf
      iTunes Store Link: https://apps.apple.com/us/app/ultimate-golf/id1475163222
       

      Hack Features:
      - Perfect Shot -> Every ball hit will go straight.


      Jailbreak required hack(s): [Mod Menu Hack] Ultimate Golf! v4.4.3 +1 Cheat [ Perfect Shot ] - 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/
      • 189 replies
    • Ultimate Golf! v5.00.00 +1 Cheat [ Perfect Shot ]
      Modded/Hacked App: Ultimate Golf! By Miniclip.com
      Bundle ID: com.hypgames.ultimategolf
      iTunes Store Link: https://apps.apple.com/us/app/ultimate-golf/id1475163222


      Hack Features:
      - Perfect Shot -> Every ball hit will go straight.


      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/
      • 307 replies
    • All in Hole: Black Hole Games v6.0.2 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: All in Hole: Black Hole Games By HOMA GAMES
      Bundle ID: com.homagames.studio.allinhole
      App Store Link: https://apps.apple.com/us/app/all-in-hole-black-hole-games/id6503284107?uo=4

       


      🤩 Hack Features

      - Unlimited Coins -> Earn some.
      - Unlimited Lives
      • 8 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