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

    • Jelly Clicker: Idle Game v1.0.1 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Jelly Clicker: Idle Game By Diggiverse ab
      Bundle ID: com.diggiverse.jellyclicker
      App Store Link: https://apps.apple.com/us/app/jelly-clicker-idle-game/id6785479127?uo=4

      🤩 Hack Features

      - Unlimited Currency
      - Unlimited Resources
      • 1 reply
    • Jelly Clicker: Idle Game v1.0.1 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Jelly Clicker: Idle Game By Diggiverse ab
      Bundle ID: com.diggiverse.jellyclicker
      App Store Link: https://apps.apple.com/us/app/jelly-clicker-idle-game/id6785479127?uo=4

      🤩 Hack Features

      - Unlimited Currency
      - Unlimited Resources
      • 0 replies
    • Gym Mania Time Management Game v1.5.2 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Gym Mania Time Management Game By Flowmotion Entertainment: Top Free Fun Addictive Cool Games Inc.
      Bundle ID: com.fme.gym.mania.simulator.games
      App Store Link: https://apps.apple.com/us/app/gym-mania-time-management-game/id6762738738?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Booster
      • 0 replies
    • Gym Mania Time Management Game v1.5.2 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Gym Mania Time Management Game By Flowmotion Entertainment: Top Free Fun Addictive Cool Games Inc.
      Bundle ID: com.fme.gym.mania.simulator.games
      App Store Link: https://apps.apple.com/us/app/gym-mania-time-management-game/id6762738738?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Booster
      • 1 reply
    • ZED - Zombie Enemy Destruction v1.1.48 [ +9 Cheats  ] Currency Max
      Modded/Hacked App: ZED - Zombie Enemy Destruction By APPIDEA CAPITAL LTD
      Bundle ID: com.appidea.monster.shooting.drive.game
      App Store Link: https://apps.apple.com/us/app/zed-zombie-enemy-destruction/id6740913414?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Gold
      - Unlimited Silver Coin
      - Energy Max
      - ATK MAX
      - HP MAX
      - Durability
      - Fire Rate
      - Wave Skip / iGG Speed Use
      • 0 replies
    • ZED - Zombie Enemy Destruction v1.1.48 [ +9 Jailed ] Currency Max
      Modded/Hacked App: ZED - Zombie Enemy Destruction By APPIDEA CAPITAL LTD
      Bundle ID: com.appidea.monster.shooting.drive.game
      App Store Link: https://apps.apple.com/us/app/zed-zombie-enemy-destruction/id6740913414?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Gold
      - Unlimited Silver Coin
      - Energy Max
      - ATK MAX
      - HP MAX
      - Durability
      - Fire Rate
      - Wave Skip / iGG Speed Use
      • 0 replies
    • Monthly Idol (Auto Update) Jailed Cheats +1
      Modded/Hacked App: Monthly Idol By Sora Ryoo
      Bundle ID: com.factory608.MI
      iTunes Store Link: https://apps.apple.com/us/app/monthly-idol/id1407604160?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

      - Free iAP ( Press cancel when buy. Remember to turn the option on inside mod menu first )

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/98499-monthly-idol-v190-jailed-cheats-1/
      • 174 replies
    • [ Monthly Entertainment ] 월간엔터테인먼트 (Auto Update) Jailed Cheats +1
      Modded/Hacked App: 월간엔터테인먼트 By Sora Ryoo
      Bundle ID: com.factory608.ME
      iTunes Store Link: https://apps.apple.com/us/app/%EC%9B%94%EA%B0%84%EC%97%94%ED%84%B0%ED%85%8C%EC%9D%B8%EB%A8%BC%ED%8A%B8/id1601164404?uo=4


      Hack Features:
      - Free iAP (Turn on inside iOSGods Mod Menu first)
      - iGameGod


      iOS Hack Download IPA Link: https://iosgods.com/topic/171702-monthly-entertainment-%EC%9B%94%EA%B0%84%EC%97%94%ED%84%B0%ED%85%8C%EC%9D%B8%EB%A8%BC%ED%8A%B8-v10158-jailed-cheats-1/
      • 151 replies
    • Dig Duels +4++ Mods [ Damage & Defence ]
      Mod APK Game Name: Dig Duels By Tornado Bear
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.TornadoBear.DigDuels

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Everything -> Will increase instead of decrease.
      • 0 replies
    • Dig Duels PvP +4++ Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dig Duels PvP By Tornado Bear Limited
      Bundle ID: com.TornadoBear.DigDuels
      App Store Link: https://apps.apple.com/us/app/dig-duels-pvp/id6797490071?uo=4

       


      🤩 Hack Features

      - Damage Multiplier 
      - Defence Multiplier
      - God Mode
      - Unlimited Everything -> Will increase instead of decrease.
      • 0 replies
    • Archer Castle: Idle RPG ( 아처캐슬 키우기 : 방치형 RPG ) +6 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: 아처캐슬 키우기 : 방치형 RPG By Toast.Co.,Ltd
      Bundle ID: com.springgames.archercastle
      App Store Link: https://apps.apple.com/kr/app/%EC%95%84%EC%B2%98%EC%BA%90%EC%8A%AC-%ED%82%A4%EC%9A%B0%EA%B8%B0-%EB%B0%A9%EC%B9%98%ED%98%95-rpg/id6788215554?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - XP Drop Multiplier
      - Fever Drop Multiplier
      - Gold Drop Multiplier
      • 4 replies
    • 바르디안: Vardian +5 Jailed Cheats
      Modded/Hacked App: 바르디안: Vardian By REDVEILONE Inc.
      Bundle ID: com.redveilone.vardian
      App Store Link: https://apps.apple.com/kr/app/%EB%B0%94%EB%A5%B4%EB%94%94%EC%95%88-vardian/id6762203850?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

      - Damage Multiplier
      - Defense Multiplier
      - Attack Speed Multiplier
      - Move Speed Multiplier
      - No ADS

       

      ⬇️ 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

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
      • 29 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