Jump to content

Mod menu compiling error


Go to solution Solved by Ted2,

7 posts in this topic

Recommended Posts

Posted (edited)

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

Updated by Taylor Meyer
  • Solution
Posted

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.

Posted (edited)
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 
                                    

Updated by Taylor Meyer
Posted

You think "?" is a valid color?

Don't think so. I think there's an actual example how to fill those things in in the template.

Posted
13 minutes ago, RudePerson said:

You think "?" is a valid color?

Don't think so. I think there's an actual example how to fill those things in in the template.

Fixed it forgot to respond 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Ant Kingdom Wild RPG v5.0.0 [ +21 Cheats ] Currency Max
      Modded/Hacked App: Ant Kingdom: Wild RPG By Supercent Inc.
      Bundle ID: com.turbofasttools.antkingdom
      App Store Link: https://apps.apple.com/us/app/ant-kingdom-wild-rpg/id6748462417?uo=4

      🤩 Hack Features

      - Skip All Ads
      - Add All Currencies
      - Free Shopping / IAP NO
      - Unlimited Meat Storage
      - Max All Swarm Upgrades
      - Move Speed
      - Game Speed
      - Unlock All Areas
      - Instant Egg Hatch
      - Free Hatchery
      - Max Idle Farm
      - Max All Artifacts
      - Max All Teammates
      - Max Game Level
      - Freeze Enemies
      - Hunt Target One Hit Kill
      - Rival Battle Auto Win
      - One Hit Kill
      - Swarm Never Die
      - Never Die
      • 0 replies
    • Ant Kingdom Wild RPG v5.0.0 [ +20 Jailed ] Currency Max
      Modded/Hacked App: Ant Kingdom: Wild RPG By Supercent Inc.
      Bundle ID: com.turbofasttools.antkingdom
      App Store Link: https://apps.apple.com/us/app/ant-kingdom-wild-rpg/id6748462417?uo=4

      🤩 Hack Features

      - Skip All Ads
      - Add All Currencies
      - Free Shopping / IAP NO
      - Unlimited Meat Storage
      - Max All Swarm Upgrades
      - Move Speed
      - Game Speed
      - Unlock All Areas
      - Instant Egg Hatch
      - Free Hatchery
      - Max Idle Farm
      - Max All Artifacts
      - Max All Teammates
      - Max Game Level
      - Freeze Enemies
      - Hunt Target One Hit Kill
      - Rival Battle Auto Win
      - One Hit Kill
      - Swarm Never Die
      - Never Die
      • 0 replies
    • Heli Monsters Giant Hunter v1.4.21 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Heli Monsters - Giant Hunter By SayGames LTD
      Bundle ID: com.heli.monsters
      App Store Link: https://apps.apple.com/us/app/heli-monsters-giant-hunter/id1636701778?uo=4

      🤩 Hack Features

      - Ads No
      - Currency Max
      - Never Die
      - Damage Max
      • 0 replies
    • Heli Monsters Giant Hunter v1.4.21 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Heli Monsters - Giant Hunter By SayGames LTD
      Bundle ID: com.heli.monsters
      App Store Link: https://apps.apple.com/us/app/heli-monsters-giant-hunter/id1636701778?uo=4

      🤩 Hack Features

      - Ads No
      - Currency Max
      - Never Die
      - Damage Max
      • 0 replies
    • Tactical Misfits v0.2.0 [ +4 Cheats ] Never Die
      Modded/Hacked App: Tactical Misfits By Pursuit Games Inc
      Bundle ID: com.pursuitgames.tacticalmisfits
      App Store Link: https://apps.apple.com/us/app/tactical-misfits/id6803212208?uo=4

      🤩 Hack Features

      - Unlimited Mana
      - Unlimited Rerolls
      - Never Die
      - Max Damage
      • 0 replies
    • Tactical Misfits v0.2.0 [ +4 Jailed ] Never Die
      Modded/Hacked App: Tactical Misfits By Pursuit Games Inc
      Bundle ID: com.pursuitgames.tacticalmisfits
      App Store Link: https://apps.apple.com/us/app/tactical-misfits/id6803212208?uo=4

      🤩 Hack Features

      - Unlimited Mana
      - Unlimited Rerolls
      - Never Die
      - Max Damage
      • 0 replies
    • The Office Match +6 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: The Office Match By East Side Games Inc
      Bundle ID: com.eastsidegames.theofficematch
      App Store Link: https://apps.apple.com/ph/app/the-office-match/id6754114961?uo=4

       

      🤩 Hack Features

      - Currency Multiplier
      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      - Freeze Lives
      - Freeze Moves
      - Auto Win
      -- No Ads
      • 0 replies
    • UnGodly [+5 Cheats]
      Modded/Hacked App: UnGodly By Azra Games Inc
      Bundle ID: com.azragames.ungodly
      App Store Link: https://apps.apple.com/us/app/ungodly/id6740617332?uo=4

       

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Godmode
      - One Hit Kill 
      - No Ability Cooldown
      - No Ability Cost
      - No Stagger
       

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue 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

      - @KyosukeNanbu

      - @Batch

      📷 Cheat Video/Screenshots

      N/A
      • 6 replies
    • Dead Meridian v1.1.0 [ +4 Cheats ] Never Die
      Modded/Hacked App: Dead Meridian By OBX Software Corporation
      Bundle ID: com.obxsoftware.deadmeridian
      App Store Link: https://apps.apple.com/us/app/dead-meridian/id6824602528?uo=4

      🤩 Hack Features

      - Never Die
      - Damage Max
      - Infinite Ammo
      - Premium Unlocked
      • 0 replies
    • Dead Meridian v1.1.0 [ +4 Jailed ] Never Die
      Modded/Hacked App: Dead Meridian By OBX Software Corporation
      Bundle ID: com.obxsoftware.deadmeridian
      App Store Link: https://apps.apple.com/us/app/dead-meridian/id6824602528?uo=4

      🤩 Hack Features

      - Never Die
      - Damage Max
      - Infinite Ammo
      - Premium Unlocked
      • 0 replies
    • Twinguard Tower Defense TD v0.0.9 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Twinguard: Tower Defense TD By Tu Do Anh
      Bundle ID: com.130game.doubletd.twinhold
      App Store Link: https://apps.apple.com/us/app/twinguard-tower-defense-td/id6747331836?uo=4

      🤩 Hack Features

      - Unlimited Currency
      - Never Die
      - Max Damage
      • 0 replies
    • Twinguard Tower Defense TD v0.0.9 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Twinguard: Tower Defense TD By Tu Do Anh
      Bundle ID: com.130game.doubletd.twinhold
      App Store Link: https://apps.apple.com/us/app/twinguard-tower-defense-td/id6747331836?uo=4

      🤩 Hack Features

      - Unlimited Currency
      - Never Die
      - Max Damage
      • 0 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