Jump to content

Mod menu compiling error


Taylor Meyer

7 posts in this topic

Recommended Posts

I keep getting tweak.xm at %orig error when compiling 

Making all for tweak 
 Preprocessing Tweak.xm...
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Tweak.xm:110: error: %orig found outside of hook or subclass
make[2]: *** [obj/Tweak.xm.18ae4c1a.o] Error 255
make[1]: *** [internal-library-all_] Error 2
make: *** [deadeffect2.all.tweak.variables] Error 2

I pointed the error out with <<<<<<<<<<<<<<<<

here is my 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 = @" cheats"; //title of your menu
static NSString *const credits = @"hacked by Taylor "; //who made the hack?
static NSString *const font = @""; //what font do you want the text to be? don't put anything for the default font
static UIColor *const themeColor = ?; //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 

- (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(@"Unlimited crystals", @"Sets crystals to a huge amount ", font, {0x123456789}, {0x12345678}, {0x12345678});

addHack(@"Unlimited Credits ", @"Sets credits to a huge amount", font, {0x123456789}, {0x12345678}, {0x12345678});

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

buttonAdded = true;
});
}

%orig;  <<<<<<<<<<<<<<<<<<< that's the error 
}

%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;

    http://button.center = CGPointMake(http://button.center.x + delta_x, http://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;
}

Link to comment
Share on other sites

You didn't hook anything.

 

You just have: "%hook"

It's supposed to be something like: %hook AppDelegate or %hook UnityAppController

 

& since I assume it's a unity game #il2cpp

 

you have to do: %hook UnityAppController

 

if not, search this "applicationDidBecomeActive" & take the delegate.

Link to comment
Share on other sites

10 hours ago, RudePerson said:

You didn't hook anything.

 

You just have: "%hook"

It's supposed to be something like: %hook AppDelegate or %hook UnityAppController

 

& since I assume it's a unity game #il2cpp

 

you have to do: %hook UnityAppController

 

if not, search this "applicationDidBecomeActive" & take the delegate.

Fixed it now 
                                    

Link to comment
Share on other sites

Archived

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

  • Our picks

    • METRIA the Starlight v2.8.0 +2 Cheats
      Modded/Hacked App: METRIA the Starlight By ASOBIMO,Inc.
      Bundle ID: com.asobimo.seisainometria
      iTunes Store Link: https://apps.apple.com/us/app/metria-the-starlight/id1631278972?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
        • Haha
        • Thanks
        • Winner
        • Like
      • 104 replies
    • One Punch Man: World v1.0.1 +2 Cheats
      Modded/Hacked App: One Punch Man: World By Fedeen Games Limited
      Bundle ID: com.pwrd.opmwsea
      iTunes Store Link: https://apps.apple.com/sg/app/one-punch-man-world/id1660188449?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
        • Haha
        • Thanks
        • Winner
        • Like
      • 44 replies
    • Ultimate Golf! v4.12.0 +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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 121 replies
    • Ultimate Golf! v4.12.0 +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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 220 replies
    • PAC-MAN v11.4.4 +4 Jailed Cheats [ God Mode ]
      Modded/Hacked App: PAC-MAN By BANDAI NAMCO Entertainment America Inc.
      Bundle ID: com.namconetworks.pacmanlite
      iTunes Store Link: https://apps.apple.com/us/app/pac-man/id293778748


      Hack Features:
      - Unlimited Lives -> Will not decrease. Does not work with Tournament lives.
      - Unlimited In-Game Lives -> Will not decrease.
      - No Clip Ghosts -> Will allow you to pass through ghosts without dying.
      - No Ads


      Jailbreak required hack(s): [Mod Menu Hack] PAC-MAN v11.0.1 +6 Cheats [ God Mode ] - 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
      • 41 replies
    • PAC-MAN v11.4.4 +6 Cheats [ God Mode ]
      Modded/Hacked App: PAC-MAN By BANDAI NAMCO Entertainment America Inc.
      Bundle ID: com.namconetworks.pacmanlite
      iTunes Store Link: https://apps.apple.com/us/app/pac-man/id293778748
       

      Hack Features:
      - Unlimited Lives -> Will not decrease. Does not work with Tournament lives.
      - Unlimited In-Game Lives -> Will not decrease.
      - No Clip Ghosts -> Will allow you to pass through ghosts without dying.
      - Freeze Ghosts
      - Max Score -> Earn some score and it'll go max.
      -- No Ads


      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
      • 74 replies
    • Supermarket Manager Simulator v1.0.7 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Supermarket Manager Simulator By Digital Melody S.A.
      Bundle ID: com.dmg.supermarket.simulator
      iTunes Store Link: https://apps.apple.com/us/app/supermarket-manager-simulator/id6479982512?uo=4


      Hack Features:
      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      - No Ads


      Jailbreak required hack(s): [Mod Menu Hack] Supermarket Manager Simulator v1.0.6 +3 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
      • 38 replies
    • Supermarket Manager Simulator v1.0.7 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Supermarket Manager Simulator By Digital Melody S.A.
      Bundle ID: com.dmg.supermarket.simulator
      iTunes Store Link: https://apps.apple.com/us/app/supermarket-manager-simulator/id6479982512?uo=4


      Hack Features:
      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      -- No Ads


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Supermarket Manager Simulator v1.0.6 +3 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
        • Thanks
        • Like
      • 15 replies
    • Good Pizza, Great Pizza v5.9.2 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Pizza, Great Pizza By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.pizzabusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-pizza-great-pizza/id911121200?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Diamonds


      Jailbreak required hack(s): [Mod Menu Hack] Good Pizza, Great Pizza v5.5.6 +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
        • Thanks
        • Winner
        • Like
      • 45 replies
    • Good Pizza, Great Pizza v5.9.2 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Pizza, Great Pizza By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.pizzabusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-pizza-great-pizza/id911121200?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Diamonds


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Good Pizza, Great Pizza v5.5.6 +2 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
      • 27 replies
    • Soul Light: Idle RPG War v60 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Soul Light: Idle RPG War By ACTIONFIT Ltd.
      Bundle ID: com.idle.afk.soul.light.rpg
      iTunes Store Link: https://apps.apple.com/us/app/soul-light-idle-rpg-war/id6469476819?uo=4


      Hack Features:
      - God Mode
      - Unlimited Gold -> Will increase instead of decrease.
      - Unlimited Emerald -> Will increase instead of decrease.
      - Unlimited Dungeon Keys


      Jailbreak required hack(s): [Mod Menu Hack] Soul Light: Idle RPG War v1.6.2 +4 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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 32 replies
    • Soul Light: Idle RPG War v60 +4 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Soul Light: Idle RPG War By ACTIONFIT Ltd.
      Bundle ID: com.idle.afk.soul.light.rpg
      iTunes Store Link: https://apps.apple.com/us/app/soul-light-idle-rpg-war/id6469476819?uo=4


      Hack Features:
      - God Mode
      - Unlimited Gold -> Will increase instead of decrease.
      - Unlimited Emerald -> Will increase instead of decrease.
      - Unlimited Dungeon Keys


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Soul Light: Idle RPG War v1.6.2 +4 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
        • Thanks
        • Like
      • 33 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