Jump to content

Shmoo's mod menu not working


Go to solution Solved by Taylor Meyer,

8 posts in this topic

Recommended Posts

Posted (edited)

i compile using shmoo mod menu template and install the deb and activate it (which has worked before) so now what happens is i compile and no errors appear and i install the deb package and the mod menu does not show the icon in game to where i can activate the mod menu. 

what i did try recommended to me by @Joka is reinstall template so i did that and still nothing 😡

the problem im having is the mod menu is not wanting to inject into this game  

i will post make file and tweak.xm 

#import "Macros.h"
#import "ModMenu.h"
#import "Hack.h"
#import "Hook.h"
#import "SliderHook.h"
#import "TextfieldHook.h"
#import <substrate.h>
#import <initializer_list>
#import <vector>
#import <mach-o/dyld.h>

/*****************************/
static NSString *const title = @""; //title of your menu
static NSString *const credits = @"Made by Tay"; //who made the hack?
static NSString *const font = @"Copperplate-Bold"; //what font do you want the text to be? don't put anything for the default font
static UIColor *const themeColor = rgb(0xD4A37); //the overall color for the menu and the button

//replace the ? with anything from this list:
//https://ghostbin.com/paste/mbkfb
//or you could specify a custom color with
//rgb(0xCOLORCODE) ex: rgb(0x738282)

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

//please refer to README.txt for more info.
/******************************/

uint64_t getRealOffset(uint64_t);

void addHack(NSString *, NSString *, NSString *, std::initializer_list<uint64_t>, std::initializer_list<uint64_t>, std::initializer_list<uint64_t>);
void addHook(NSString *, NSString *, NSString *, uint64_t, void *, void *);
void addSliderHook(NSString *, NSString *, NSString *, float, float, uint64_t, void *, void *);
void addTextfieldHook(NSString *, NSString *, NSString *, uint64_t, void *, void *);

static ModMenu *menu;

bool buttonAdded;

%hook UnityAppController

- (void)applicationDidBecomeActive:(id)arg0 {
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((int64_t)1){
UIWindow *main = [UIApplication sharedApplication].keyWindow.rootViewController.view;

menu = [[ModMenu alloc] initWithTitle:title credits:credits fontName:font theme:themeColor];

/***********************
add your features below this multi line comment. they show in the order you have added them.
for example:
addHack(@"God Mode", @"Description of the hack", font, {0x252e1a}, {0x7047}, {0xf0b5});
multi offset hacks can be added like this (there is no limit to the number of offsets you can have!):
addHack(@"No Recoil", @"No recoil prevents any recoil from being applied when you shoot.", font, {0x356a7c, 0x110f0a}, {0x7047, 0x7047}, {0xf0b5, 0xf0b5});
parameters: addHack(hack name, description, font, offset(s), hacked hex(es), original hex(es));

to add a slider hook:
for example:
addSliderHook(@"Field of View Slider", @"Adjust the game's field of view with this slider.", font, 40, 120, 0xc48ea6, (void *)_getFov, (void *)getFov);
parameters:
addSliderHook(hack name, description, font, minimum slider value, maximum slider value, function to hook, hooked function name, original function name);

to retrieve the value of the slider, use:
float val = [SliderHook getSliderValueForHook:@"hack name here"];

to add a textfield hook:
for example:
addTextfieldHook(@"Field of View Textfield", @"Adjust the game's field of view with this textfield.", font, 0xc48ea6, (void *)_getFov, (void *)getFov);
parameters:
addSliderHook(hack name, description, font, function to hook, hooked function name, original function name);

to retrieve the value of the textfield:
int val = [[TextfieldHook getTextfieldValueForHook:@"hack name here"] intValue];
float val = [[TextfieldHook getTextfieldValueForHook:@"hack name here"] floatValue];

to add a normal hook:
for example:
addHook(@"80 FOV", @"When on, your FOV will be changed to 80.", font, 0xc48ea6, (void *)_getFov, (void *)getFov);
parameters:
addHook(hack name, description, font, function to hook, hooked function name, original function name);
to see if the the user turned on the hook or not:
bool isOn = [Hook getHookOnForHook:@"hack name here"]
************************/
//add features here!

addHack(@"Test1", @"Sets", font, {0x100123456, 0x100123456}, {0xE0031D2A, 0xC0035FD6}, {0xF44FBEA9, 0xFD7B01A9});

[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, NSString *fontName, std::initializer_list<uint64_t> offsets, std::initializer_list<uint64_t> hackedHexes, std::initializer_list<uint64_t> originalHexes){
    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:fontName theme:themeColor offset:offsetVector hackedHex:hackedHexVector originalHex:originalHexVector];
    [menu addHack:h];
}

void addHook(NSString *name, NSString *description, NSString *fontName, uint64_t offset, void *hooked, void *orig){
    MSHookFunction(((void*)getRealOffset(offset + 1)), hooked, &orig);

    Hook *h = [[Hook alloc] initWithHookName:name info:description fontName:fontName theme:themeColor offset:0x251832];
    [menu addHook:h];
}

void addSliderHook(NSString *name, NSString *description, NSString *fontName, float minValue, float maxValue, uint64_t offset, void *hooked, void *orig){
    MSHookFunction(((void*)getRealOffset(offset + 1)), hooked, &orig);

    SliderHook *sh = [[SliderHook alloc] initWithSliderHookName:name info:description fontName:fontName theme:themeColor offset:offset minValue:minValue maxValue:maxValue];
    [menu addHook:sh];
}

void addTextfieldHook(NSString *name, NSString *description, NSString *fontName, uint64_t offset, void *hooked, void *orig){
    MSHookFunction(((void*)getRealOffset(offset + 1)), hooked, &orig);

    TextfieldHook *th = [[TextfieldHook alloc] initWithTextfieldHookName:name info:description fontName:fontName theme:themeColor offset:offset];
    [menu addHook:th];
}

uint64_t getRealOffset(uint64_t offset){
    return _dyld_get_image_vmaddr_slide(0)+offset;
}



make file 

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
THEOS_PACKAGE_DIR_NAME = debs

include /var/theos/makefiles/common.mk

TWEAK_NAME = removed
removed_FILES = Tweak.xm ModMenu.mm Hack.mm Hook.mm SliderHook.mm TextfieldHook.mm InfoView.mm
removed_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit SystemConfiguration
removed_LDFLAGS += -Wl,-segalign,4000,-lstdc++
removed_CFLAGS ?= -DALWAYS_INLINE=1 -Os -std=c++11 -w -s

include /var/theos/makefiles/tweak.mk

include /var/theos/makefiles/aggregate.mk

 

Updated by Taylor Meyer
  • Solution
Posted

i fixed it by removing the space in String>com.example.test<String 

the space which was String>com.example.test

<String

like that ^^^^^^^^^^^^ it has to be like String>com.example.test<String 

NO SPACES 

credits to @Joka and @Battousai 

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

    • Disney Speedstorm v1.11.2 +2 Jailed Cheats [ Unlimited Nitro ]
      Modded/Hacked App: Disney Speedstorm By Gameloft
      Bundle ID: com.gameloft.disneyspeedstorm
      iTunes Store Link: https://apps.apple.com/us/app/disney-speedstorm/id6449708682?uo=4


      Hack Features:
      - Unlimited Nitro -> Will not decrease.
      - Instant Nitro Max


      Jailbreak required hack(s): [Mod Menu Hack] Disney Speedstorm v1.5.0 +2 Cheats [ Unlimited Nitro ] - 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
      • 77 replies
    • Disney Speedstorm v1.11.2 +2 Cheats [ Unlimited Nitro ]
      Modded/Hacked App: Disney Speedstorm By Gameloft
      Bundle ID: com.gameloft.disneyspeedstorm
      iTunes Store Link: https://apps.apple.com/us/app/disney-speedstorm/id6449708682?uo=4


      Hack Features:
      - Unlimited Nitro -> Will not decrease.
      - Instant Nitro Max


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Disney Speedstorm v1.5.0 +2 Jailed Cheats [ Unlimited Nitro ] - 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
        • Thanks
        • Winner
        • Like
      • 69 replies
    • EGGCRYPTO ( エグリプト 世界に一体だけのモンスターを育成して戦うRPG ) v1.97.2 +1 Jailed Cheat [ Auto Win ]
      Modded/Hacked App: エグリプト 世界に一体だけのモンスターを育成して戦うRPG By Kyuzan Inc.
      Bundle ID: com.kyuzan.eggrypto
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%82%A8%E3%82%B0%E3%83%AA%E3%83%97%E3%83%88-%E4%B8%96%E7%95%8C%E3%81%AB%E4%B8%80%E4%BD%93%E3%81%A0%E3%81%91%E3%81%AE%E3%83%A2%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%BC%E3%82%92%E8%82%B2%E6%88%90%E3%81%97%E3%81%A6%E6%88%A6%E3%81%86rpg/id1450911855?uo=4

       


      🤩 Hack Features

      - Auto Win
        • Like
      • 9 replies
    • Lamar - Idle Vlogger v226.0.1 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Lamar - Idle Vlogger By Advant Limited
      Bundle ID: com.advant.lamar
      iTunes Store Link: https://apps.apple.com/us/app/lamar-idle-vlogger/id1595314851
       

      Hack Features:
      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Gold -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Lamar - Idle Vlogger v151.07.05 +2 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
      • 86 replies
    • Lamar - Idle Vlogger v226.0.1 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Lamar - Idle Vlogger By Advant Limited
      Bundle ID: com.advant.lamar
      iTunes Store Link: https://apps.apple.com/us/app/lamar-idle-vlogger/id1595314851
       

      Hack Features:
      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Gold -> Spend some.


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 41 replies
    • Combat Master Mobile v0.24.71 +2 Jailed Cheats [ No Recoil ]
      Modded/Hacked App: Combat Master Mobile By Alfa Bravo Inc.
      Bundle ID: com.AlfaBravo.CombatMaster
      iTunes Store Link: https://apps.apple.com/us/app/combat-master-mobile/id1598639131
       

      Hack Features:
      - No Recoil
      - Instant Reload


      Jailbreak required hack(s): https://iosgods.com/topic/171228-combat-master-mobile-v08381-2-cheats-no-recoil/
      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
      • 99 replies
    • Combat Master Mobile v0.24.71 +2 Cheats [ No Recoil ]
      Modded/Hacked App: Combat Master Mobile By Alfa Bravo Inc.
      Bundle ID: com.AlfaBravo.CombatMaster
      iTunes Store Link: https://apps.apple.com/us/app/combat-master-mobile/id1598639131
       

      Hack Features:
      - No Recoil
      - Instant Reload


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 113 replies
    • EGGCRYPTO ( エグリプト 世界に一体だけのモンスターを育成して戦うRPG ) v1.97.2 +1 Cheat [ Auto Win ]
      Modded/Hacked App: エグリプト 世界に一体だけのモンスターを育成して戦うRPG By Kyuzan Inc.
      Bundle ID: com.kyuzan.eggrypto
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%82%A8%E3%82%B0%E3%83%AA%E3%83%97%E3%83%88-%E4%B8%96%E7%95%8C%E3%81%AB%E4%B8%80%E4%BD%93%E3%81%A0%E3%81%91%E3%81%AE%E3%83%A2%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%BC%E3%82%92%E8%82%B2%E6%88%90%E3%81%97%E3%81%A6%E6%88%A6%E3%81%86rpg/id1450911855?uo=4

       
       

      🤩 Hack Features

      - Auto WIn
        • Thanks
        • Like
      • 8 replies
    • AFK Magic TD v0.25.0 +3 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: AFK Magic TD By ARIZONA, INC.
      Bundle ID: com.arizonags.afktd
      iTunes Store Link: https://apps.apple.com/gb/app/afk-magic-td/id6479079201?uo=4


      Hack Features:
      - God Mode
      - Damage Mulitplier
      - No Skill Consumption -> Charge skill first.


      Jailbreak required hack(s): [Mod Menu Hack] AFK Magic TD v0.16.1 +3 Cheats [ Damage + More ] - 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/
        • Agree
        • Like
      • 13 replies
    • AFK Magic TD v0.25.0 +3 Cheats [ Damage + More ]
      Modded/Hacked App: AFK Magic TD By ARIZONA, INC.
      Bundle ID: com.arizonags.afktd
      iTunes Store Link: https://apps.apple.com/gb/app/afk-magic-td/id6479079201?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - No Skill Consumption -> Charge skill first.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] AFK Magic TD v0.16.1 +3 Jailed Cheats [ Damage + More ] - 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
      • 17 replies
    • Backpack Brawl v0.33.2 +1++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Backpack Brawl By 1986 GAMES SIA
      Bundle ID: com.rapidfiregames.backpackbrawl
      iTunes Store Link: https://apps.apple.com/us/app/backpack-brawl/id6479175676?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.


      Jailbreak required hack(s): [Mod Menu Hack] Backpack Brawl v0.14.0 +1++ 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
      • 57 replies
    • Backpack Brawl v0.33.2 +1++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Backpack Brawl By 1986 GAMES SIA
      Bundle ID: com.rapidfiregames.backpackbrawl
      iTunes Store Link: https://apps.apple.com/us/app/backpack-brawl/id6479175676?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Backpack Brawl v0.14.0 +1++ 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
      • 47 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