Jump to content

Errors compiling Tweak.xm


Go to solution Solved by Todeskuss,

37 posts in this topic

Recommended Posts

Posted

(y)

Yikes man we got yet another issue. Switches in Settings aren't doing anything.

 

Tweak.xm:

 

 


#define PLIST_PATH @"/var/mobile/Library/Preferences/prefbundle.plist"
 
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}



%hook PlayerData
-(void) setVetoVoteCast:(bool) veto {
if(GetPrefBool(@"kMap")) {
veto=true;
}
%orig(veto);
}

-(bool) vetoVoteCast {
if(GetPrefBool(@"kMap")) {
 return true;
}
return %orig;
}
%end

%hook MultiplayerController
-(void) setIsPregameVeto: (bool)veto {
if(GetPrefBool(@"kMap")) {
veto=false;
}
return %orig;
}

-(bool) isHost {
if(GetPrefBool(@"kMap")) {
 return true;
}
return %orig;
}
%end



%hook Hat
-(BOOL) unlocked {
if(GetPrefBool(@"kUnlock")) {
 return TRUE;
}
return %orig;
}

-(void) setUnlocked: (BOOL)hat {
if(GetPrefBool(@"kUnlock")) {
hat=TRUE;
}
%orig(hat);
}
%end

%hook Color
-(BOOL) unlocked {
if(GetPrefBool(@"kUnlock")) {
 return TRUE;
}
return %orig;
}

-(void) setUnlocked: (BOOL)color {
if(GetPrefBool(@"kUnlock")) {
color=TRUE;
}
%orig(color);
}
%end

%hook Character
-(BOOL) unlocked {
if(GetPrefBool(@"kUnlock")) {
 return TRUE;
}
return %orig;
}

-(void) setUnlocked: (BOOL)character {
if(GetPrefBool(@"kUnlock")) {
character=TRUE;
}
%orig(character);
}
%end

%hook Trail
-(BOOL) unlocked {
if(GetPrefBool(@"kUnlock")) {
 return TRUE;
}
return %orig;
}

-(void) setUnlocked: (BOOL)trail {
if(GetPrefBool(@"kUnlock")) {
trail=TRUE;
}
%orig(trail);
}
%end

%hook UserDataManager
-(BOOL) isPowerupUnlocked {
if(GetPrefBool(@"kUnlock")) {
return TRUE;
}
return %orig;
}

-(BOOL) isHatUnlocked {
if(GetPrefBool(@"kUnlock")) {
return TRUE;
}
return %orig;
}

-(BOOL) isCharacterUnlocked {
if(GetPrefBool(@"kUnlock")) {
return TRUE;
}
return %orig;
}

-(BOOL) isTrailUnlocked {
if(GetPrefBool(@"kUnlock")) {
return TRUE;
}
return %orig;
}
%end

%hook LocalUserData
-(BOOL) isPowerupUnlocked {
if(GetPrefBool(@"kUnlock")) {
return TRUE;
}
return %orig;
}

-(BOOL) isHatUnlocked {
if(GetPrefBool(@"kUnlock")) {
return TRUE;
}
return %orig;
}

-(BOOL) isCharacterUnlocked {
if(GetPrefBool(@"kUnlock")) {
return TRUE;
}
return %orig;
}

-(BOOL) isTrailUnlocked {
if(GetPrefBool(@"kUnlock")) {
return TRUE;
}
return %orig;
}
%end



%hook Player
-(bool) isOnGreen {
if(GetPrefBool(@"kGreen")) {
 return false;
}
return %orig;
}

-(bool) hasHitGreen {
if(GetPrefBool(@"kGreen")) {
 return false;
}
return %orig;
}
%end

%hook PlayerUpdateData 
-(bool) isOnGreen {
if(GetPrefBool(@"kGreen")) {
 return false;
}
return %orig;
}
%end




%hook WaterSprite
-(unsigned int) receiveContactEvent {
if(GetPrefBool(@"kWater")) {
return 0;
}
return %orig;
}
%end



%hook SandTrapSprite
-(unsigned int) receiveContactEvent {
if(GetPrefBool(@"kSand")) {
return 0;
}
return %orig;
}
%end



%hook LaserSprite
-(unsigned int) receiveContactEvent {
if(GetPrefBool(@"kLaser")) {
return 0;
}
return %orig;
}
%end



%hook  DynamicBox
-(unsigned int) receiveContactEvent {
if(GetPrefBool(@"kSaws")) {
return 0;
}
return %orig;
}
%end



%hook BoundsSprite
-(unsigned int) receiveContactEvent {
if(GetPrefBool(@"kBounds")) {
return 0;
}
return %orig;
}
%end



%hook TerrainObject
-(unsigned int) receiveContactEvent {
if(GetPrefBool(@"kAcidSticky")) {
return 0;
}
return %orig;
}
%end



%hook AppDelegate

-(void)applicationDidBecomeActive:(id)arg { 

UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Flappy Golf Cheats" 
                                                  message:@"Hacked by Fumetsu for iOSGods.com" 
                                                 delegate:self 
                                        cancelButtonTitle:@"Thanks!" 
                                        otherButtonTitles:@"Visit Us", nil]; 
[credits show];
[credits release]; 
return %orig();
}
 
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
 
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
 
        if([button isEqualToString:@"Visit Us"])
        {
                [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.iOSGods.com/"]];                                                                                
        }
}
%end

 

 

 

any other files you need to see just let me know

Posted

@@fumetsu

 

Check your "prefbundle.plist". Is that how it's named?

 

do you have the correct bundle ID also?

Posted (edited)

@@fumetsu

 

Check your "prefbundle.plist". Is that how it's named?

 

do you have the correct bundle ID also?

The bundle ID under 'defaults'? It was the bundle ID of prefbundle, that didn't work; I changed it to the bundle ID of the tweak itself, that didn't work either. Then I changed it to the bundle ID of the application, and that just broke it. Updated by Fumetsu
Posted (edited)

goto /var/mobile/library/preferences

find prefbundle.plist 

toggle the switches a few time and try again

Updated by imp0ss1ble
Posted

The bundle ID under 'defaults'? It was the bundle ID of prefbundle, that didn't work; I changed it to the bundle ID of the tweak itself, that didn't work either. Then I changed it to the bundle ID of the application, and that just broke it.

Under 'defaults' needs to be the bundle ID of the tweak itself.

 

Under 'key' needs to be the same key you set in your tweak.xm which by the way is not a patcher. It' just a simple tweak.

 

If you're having issues or need a bit of guidance, I suggest you use this template: http://iosgods.com/topic/1907-update2template-custom-nic-patcherpreferencebundle-template/

Posted

Under 'defaults' needs to be the bundle ID of the tweak itself.

 

Under 'key' needs to be the same key you set in your tweak.xm which by the way is not a patcher. It' just a simple tweak.

 

If you're having issues or need a bit of guidance, I suggest you use this template: http://iosgods.com/topic/1907-update2template-custom-nic-patcherpreferencebundle-template/

I'm not dumb, I know what Key needs to be defined as, as well as under defaults. The problem was in #include, I had it listed as 'prefbundle.plist' instead of 'com.fumetsu.prefbundle.plist'. Anyway I have yet another issue. The toggles work fine, but only for some. The other ones which originally had the '(?)' that you questioned don't work. Is it supposed to stay as '(unsigned int)'? Am I missing something since it's written as 'receiveContactEvent:(?)' even though the (?) gives errors?

Posted

I'm not dumb, I know what Key needs to be defined as, as well as under defaults. The problem was in #include, I had it listed as 'prefbundle.plist' instead of 'com.fumetsu.prefbundle.plist'. Anyway I have yet another issue. The toggles work fine, but only for some. The other ones which originally had the '(?)' that you questioned don't work. Is it supposed to stay as '(unsigned int)'? Am I missing something since it's written as 'receiveContactEvent:(?)' even though the (?) gives errors?

Anyone?

Posted

Anyone?

Show a picture on a method like that on flex.

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

    • [ FFBE WoTV Japan ] FFBE幻影戦争 WAR OF THE VISIONS Cheats v12.3.2 +3
      Modded/Hacked App: FFBE幻影戦争 戦略RPG/シミュレーションゲーム By SQUARE ENIX Co., Ltd.
      Bundle ID: com.square-enix.WOTVffbejp
      iTunes Store Link: https://apps.apple.com/jp/app/ffbe%E5%B9%BB%E5%BD%B1%E6%88%A6%E4%BA%89-%E6%88%A6%E7%95%A5rpg-%E3%82%B7%E3%83%9F%E3%83%A5%E3%83%AC%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%B2%E3%83%BC%E3%83%A0/id1443703517?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Full Map Movement


      iOS Hack Download Link: https://iosgods.com/topic/173484-ffbe-wotv-japan-ffbe%E5%B9%BB%E5%BD%B1%E6%88%A6%E4%BA%89-war-of-the-visions-cheats-v916-3/
      • 103 replies
    • Fortress Saga: AFK RPG Cheats v1.8.10 +5
      Modded/Hacked App: Fortress Saga: AFK RPG By cookapps
      Bundle ID: com.cookapps.bm.fortresssaga
      iTunes Store Link: https://apps.apple.com/us/app/fortress-saga-afk-rpg/id6446308106?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Freeze Currencies
      - PREMIUM
      - No Ads

       

      Non-Jailbroken Hack: https://iosgods.com/topic/184193-fortress-saga-afk-rpg-v1800-jailed-cheats-3/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/178933-fortress-saga-afk-rpg-cheats-v1801-5/
      • 372 replies
    • Left to Survive: Zombie Games Cheats v7.6.1 +10 Hacks
      Modded/Hacked App: Left to Survive: Zombie TPS By MY COM
      Bundle ID: com.glu.zbs
      iTunes Store Link: https://apps.apple.com/us/app/left-to-survive-zombie-tps/id1090501422

      Hack Features:
      - No Bullet Disperse 
      - Unlimited Ammo
      - No Recoil
      - Increased Fire-rate 

      - One Hit Campaign 
      - Grenades and Med-kits Dont Subtract
      - God Mode
      - God Mode PVP

      - Unlock Chapters early 
      - Weapons Unlocked Ready to buy 


      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/

      • 1,596 replies
    • Chef & Friends: Cooking Game Cheats v1.33.5 +1
      Modded/Hacked App: Chef & Friends: Cooking Game By MYTONA Ltd.
      Bundle ID: com.mytona.cheftales
      iTunes Store Link: https://apps.apple.com/us/app/chef-friends-cooking-game/id1586951898?uo=4


      Hack Features:
      - Infinite Currencies (Hats, Coins, Gems)

      NOTE: May bug out the game so better try on your throw away account first 


      iOS Hack Download Link: https://iosgods.com/topic/178904-chef-friends-cooking-game-cheats-v141-1/
      • 30 replies
    • June’s Journey: Hidden Objects v3.40.9 Jailed Cheats +2
      Modded/Hacked App: June’s Journey: Hidden Objects By wooga gmbh
      Bundle ID: net.wooga.junes-journey-hidden-object-mystery-game
      iTunes Store Link: https://apps.apple.com/us/app/junes-journey-hidden-objects/id1200391796?uo=4


      Hack Features:
      - Infinite Currencies
      - Instant Hint


      iOS Hack Download IPA Link: https://iosgods.com/topic/176104-june%E2%80%99s-journey-hidden-objects-v2946-jailed-cheats-2/
      • 56 replies
    • [Puzzles & Dragons JP] パズル&ドラゴンズ v22.5.0 Jailed Cheats +2
      Modded/Hacked App: パズル&ドラゴンズ By GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.pad
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%83%91%E3%82%BA%E3%83%AB-%E3%83%89%E3%83%A9%E3%82%B4%E3%83%B3%E3%82%BA/id493470467?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill


      Jailbreak required hack(s): https://iosgods.com/topic/133984-puzzle-dragons-japan-english-cheats-all-versions-3/


      iOS Hack Download Link: https://iosgods.com/topic/135539-puzzles-dragons-jp-%E3%83%91%E3%82%BA%E3%83%AB%EF%BC%86%E3%83%89%E3%83%A9%E3%82%B4%E3%83%B3%E3%82%BA-v1852-jailed-cheats-2/
        • Haha
      • 405 replies
    • Angry Birds Bounce Cheats v1.0.5 +4
      Modded/Hacked App: Angry Birds Bounce By Rovio Entertainment Oyj
      Bundle ID: com.rovio.ab-bounce
      App Store Link: https://apps.apple.com/us/app/angry-birds-bounce/id6462195757?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - God Mode
      - Multiply Attack
      - Instant Win 
      - Infinite Currencies (Get some)

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/197817-angry-birds-bounce-cheats-v105-4/
      • 1 reply
    • Zombie Bag: Backpack Survivor v1.0.1 [ +8 Cheats ] Currency Max
      Modded/Hacked App: Zombie Bag: Backpack Survivor By VGAME INTERACTIVE TECHNOLOGY LIMITED
      Bundle ID: com.dxgame.zombieWar.ios
      App Store Link: https://apps.apple.com/us/app/zombie-bag-backpack-survivor/id6744133644?uo=4
       

      🤩 Hack Features

      - Gems

      - Cash

      - AD Ticket

      - Energy [ 0 When Play Unlimited ]

      - Battle Gold [ Double Refresh Then Get ]

      - HP [ Just Place Weapon ]

      - ATK [ Just Place Weapon ]

      - DEF [ Just Place Weapon ]
      • 1 reply
    • Zombie Bag: Backpack Survivor v1.0.1 [ +8 Jailed ] Currency Max
      Modded/Hacked App: Zombie Bag: Backpack Survivor By VGAME INTERACTIVE TECHNOLOGY LIMITED
      Bundle ID: com.dxgame.zombieWar.ios
      App Store Link: https://apps.apple.com/us/app/zombie-bag-backpack-survivor/id6744133644?uo=4
       

      🤩 Hack Features

      - Gems

      - Cash

      - AD Ticket

      - Energy [ 0 When Play Unlimited ]

      - Battle Gold [ Double Refresh Then Get ]

      - HP [ Just Place Weapon ]

      - ATK [ Just Place Weapon ]

      - DEF [ Just Place Weapon ]
      • 1 reply
    • Cooking Diary Restaurant Game v2.42.1 Jailed Cheats +3
      Modded/Hacked App: Cooking Diary® Restaurant Game by MyTona Pte Ltd
      Bundle ID: com.mytonallc.cookingdiary
      iTunes Store Link: https://apps.apple.com/us/app/cooking-diary-restaurant-game/id1214763610?uo=4&at=1010lce4


      Hack Features:
      - Infinite Currencies (Get some)
      - Freeze Boosters


      iOS Hack Download Link: https://iosgods.com/topic/110310-arm64-cooking-diary-restaurant-game-v1160-3/
      • 689 replies
    • The Seven Deadly Sins Cheats v2.83.0 +5
      Modded/Hacked App: The Seven Deadly Sins by Netmarble Corporation
      Bundle ID: com.netmarble.nanagb
      iTunes Store Link: https://apps.apple.com/us/app/the-seven-deadly-sins/id1475440231?uo=4&at=1010lce4


      Hack Features:
      - God Mode
      - OHK
      - Infinite MP


      iOS Hack Download Link: https://iosgods.com/topic/131686-arm64-the-seven-deadly-sins-cheats-v117-3/
        • Winner
      • 2,055 replies
    • WIND BREAKER 不良たちの英雄譚 v1.6.0 +2 Jailed Cheats
      Modded/Hacked App: WIND BREAKER 不良たちの英雄譚 By Kodansha Ltd.
      Bundle ID: jp.co.kodansha.wb.rebelheroes
      iTunes Store Link: https://apps.apple.com/jp/app/wind-breaker-%E4%B8%8D%E8%89%AF%E3%81%9F%E3%81%A1%E3%81%AE%E8%8B%B1%E9%9B%84%E8%AD%9A/id6670387532?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

       

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