Jump to content

Shmoo Mod Menu Errors


Red16

3 posts in this topic

Recommended Posts

My Tweak.xm - don’t steel my offsets

Spoiler

#include "Macros.h"

/*****************************/
// Please see sample.xm for sample menu code.
  
// title of your menu
static NSString *const title = @"TerrariaCheats"; 

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

// 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 = true;

// 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 = UIBlurEffectStyleDark;

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

%hook AppDelegate
- (void)applicationDidBecomeActive:(id)arg0 {
    UIColor *themeColor = rgb(0xFFFFFF);
    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];
          
            addHack(@"infinity health", @"Infinity health", themeColor, {0x1002D8444}, {0xC0035FD3}, {0x682653A8});

            // add features here!

            [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];
}

 


The error I am getting:

Spoiler

U-gay:/var/mobile/terrariacheats root# make package     
> Making all for tweak TerrariaCheats…                  
==> Preprocessing Tweak.xm…                             
==> Compiling ModMenu.mm (arm64)…                       
==> Compiling Hack.mm (arm64)…                          
==> Compiling Hook.mm (arm64)…                          
==> Compiling SliderHook.mm (arm64)…                    
==> Compiling TextfieldHook.mm (arm64)…                 
==> Compiling InfoView.mm (arm64)…                      
==> Compiling Switch.mm (arm64)…                        
==> Compiling Tweak.xm (arm64)…                         
In file included from Tweak.xm:1:                       

/var/mobile/terrariacheats/Macros.h:58:95: error: no matching function for call to 'getRealOffset'               
void *(*String_CreateString)(void *_this, const char *str) = (void *(*)(void *, const char *))getRealOffset();                                                           
                                     ^~~~~~~~~~~~~      
/var/mobile/terrariacheats/Macros.h:32:10: note: candidate function not viable: requires single argument 'offset', but no arguments were provided                         
uint64_t getRealOffset(uint64_t offset){                
         ^                                              
1 error generated.                                      

make[3]: *** [/var/theos/makefiles/instance/rules.mk:269: /var/mobile/terrariacheats/.theos/obj/debug/arm64/Tweak.xm.db442f46.o] Error 1                                  
rm /var/mobile/terrariacheats/.theos/obj/debug/arm64/Tweak.xm.mm                                                 
make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/mobile/terrariacheats/.theos/obj/debug/arm64/TerrariaCheats.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: TerrariaCheats.all.tweak.variables] Error 2                 

U-gay:/var/mobile/terrariacheats root# make pckage      
make: *** No rule to make target 'pckage'.  Stop. 

 

 

Updated by Zahir
Link to comment
Share on other sites

Hey man this is basically saying that your phone does now recognize the file which tells it about 'pckage' the easiest way to fix this problem is by backing up and resesting your phone. 

I hope I helped in time

Thanks, 

Bokkie

Link to comment
Share on other sites

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

    • Raising Sword Shield Girl - 검방녀 키우기 v1.0.40 +3 Cheats
      Modded/Hacked App: 검방녀 키우기 By CodeDragon Co., LTD.
      Bundle ID: com.studiocodedragon.projectss
      iTunes Store Link: https://apps.apple.com/kr/app/%EA%B2%80%EB%B0%A9%EB%85%80-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6473782850?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:
      - Freeze Currencies
      - EXP Multiplier


      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/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Agree
        • Haha
        • Winner
        • Like
      • 31 replies
    • キノコ伝説:勇者と魔法のランプ v2.0.14 Cheats +2
      Modded/Hacked App: キノコ伝説:勇者と魔法のランプ By JOY MOBILE NETWORK PTE. LTD.
      Bundle ID: com.mxdzz.jp.ios
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%82%AD%E3%83%8E%E3%82%B3%E4%BC%9D%E8%AA%AC-%E5%8B%87%E8%80%85%E3%81%A8%E9%AD%94%E6%B3%95%E3%81%AE%E3%83%A9%E3%83%B3%E3%83%97/id6473767344?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:
      - God mode
      - OHK
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 111 replies
    • Boomerang RPG v1.0.49 Cheats +3
      Modded/Hacked App: Boomerang RPG By SuperPlanet corp.
      Bundle ID: com.superplanet.boomerang
      iTunes Store Link: https://apps.apple.com/us/app/boomerang-rpg/id6472151756?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:
      - God mode
      - High damage
      - Fast attack
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 47 replies
    • The Eminence in Shadow RPG TW - 我想成為影之強者!Master of Garden v2.7.0 +2 Cheats
      Modded/Hacked App: 我想成為影之強者!Master of Garden By SOFTSTAR Games INC.
      Bundle ID: com.softstargames.shadow
      iTunes Store Link: https://apps.apple.com/tw/app/%E6%88%91%E6%83%B3%E6%88%90%E7%82%BA%E5%BD%B1%E4%B9%8B%E5%BC%B7%E8%80%85-master-of-garden/id6449175329?uo=4


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


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier


      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/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Winner
        • Like
      • 65 replies
    • TALION By GAMEVIL Inc. v5.7.70 +1 [Speed multiplier]
      Modded/Hacked App: TALION By GAMEVIL Inc.
      Bundle ID: com.gamevil.talion.ios.apple.global.normal
      iTunes Store Link: https://apps.apple.com/us/app/talion/id1258046552?uo=4



      Hack Features:
      - Attack Speed Multiplier Unlinked
      - More coming later


      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
      • 293 replies
    • [ SLIME - ISEKAI Memories ] 転生したらスライムだった件 魔王と竜の建国譚 v2.0.21 +2 Cheats
      Modded/Hacked App: 転生したらスライムだった件 魔王と竜の建国譚【まおりゅう】 By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcoent.BNEI0400
      iTunes Store Link: https://apps.apple.com/jp/app/%E8%BB%A2%E7%94%9F%E3%81%97%E3%81%9F%E3%82%89%E3%82%B9%E3%83%A9%E3%82%A4%E3%83%A0%E3%81%A0%E3%81%A3%E3%81%9F%E4%BB%B6-%E9%AD%94%E7%8E%8B%E3%81%A8%E7%AB%9C%E3%81%AE%E5%BB%BA%E5%9B%BD%E8%AD%9A-%E3%81%BE%E3%81%8A%E3%82%8A%E3%82%85%E3%81%86/id1565488936?uo=4


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


      Hack Features:
      - 1 Hit Kill
      - Never Die
      - Damage Multiplier
      - Defense Multiplier


      English Version


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above.
      STEP 2: Copy the file over to your iDevice using any of the file managers mentioned above or skip this step if you're downloading from your iDevice.
      STEP 3: Using Filza or iFile, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will need to press on 'Install' or 'Installer' from the options on your screen.
      STEP 5: Let Filza / iFile finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: If the hack is a Mod Menu, which is usually the case nowadays, the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 7: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - Zahir


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 148 replies
    • Fresh RPG: Raising Gangnam Shark - 싱싱한 RPG : 강남상어 키우기 v2.5.0.1 +2 Cheats
      Modded/Hacked App: 싱싱한 RPG : 강남상어 키우기 By Bluesom
      Bundle ID: com.bluesom.FreshRpgApp
      iTunes Store Link: https://apps.apple.com/kr/app/%EC%8B%B1%EC%8B%B1%ED%95%9C-rpg-%EA%B0%95%EB%82%A8%EC%83%81%EC%96%B4-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6445809312?uo=4


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


      Hack Features:
      - Damage Multiplier
      - Never Die


      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/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 53 replies
    • APEX Racer v0.8.60 Cheats +5
      Modded/Hacked App: APEX Racer By G63 Holdings LTD
      Bundle ID: com.pixeldev.APEXRacers
      iTunes Store Link: https://apps.apple.com/us/app/apex-racer/id1668705222?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 currency
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 216 replies
    • APEX Racer v0.8.60 Cheats +9
      Modded/Hacked App: APEX Racer By G63 Holdings LTD
      Bundle ID: com.pixeldev.APEXRacers
      iTunes Store Link: https://apps.apple.com/vn/app/apex-racer/id1668705222?uo=4


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


      Hack Features:
      - Custom power
      - Custom grip
      - Custom shift speed
      - Custom weight
      - Unlimited currency

        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 97 replies
    • Hunting Sniper: Showdown v2.01.0201 Cheats +1
      Modded/Hacked App: Hunting Sniper: Showdown By SPARKS INFORMATION PTE. LTD.
      Bundle ID: com.europe.huntingsniper
      iTunes Store Link: https://apps.apple.com/fr/app/hunting-sniper-showdown/id6472705058?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:
      - Stupid opponent
      - Auto win
        • Agree
        • Thanks
        • Winner
        • Like
      • 24 replies
    • Hunting Sniper: Showdown v2.01.0201 Cheats +1
      Modded/Hacked App: Hunting Sniper: Showdown By SPARKS INFORMATION PTE. LTD.
      Bundle ID: com.europe.huntingsniper
      iTunes Store Link: https://apps.apple.com/fr/app/hunting-sniper-showdown/id6472705058?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:
      - Stupid opponent
      - Auto win
        • Informative
        • Agree
        • Like
      • 14 replies
    • Bike Unchained 3 v1.0.9 Cheats +1
      Modded/Hacked App: Bike Unchained 3 By Red Bull Media House GmbH
      Bundle ID: com.redbull.bike.downhill.racing
      iTunes Store Link: https://apps.apple.com/us/app/bike-unchained-3/id6444827073?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:
      - Autowin
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 16 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