Jump to content

tweak help


Go to solution Solved by Amuyea,

12 posts in this topic

Recommended Posts

Posted

so i need someone to take a look at my tweak to see if everything looks good :)

the only concern i have is transactionWithEnergy and Energy at the bottom

#import <UIKit/UIKit.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

%hook Transaction
-(void)setCoins:(long long) arg1 {
arg1 = 1000;
}
%end

%PGAchievementChain
-(int)costToExtend arg1 {
arg1 = 1;
}
%end

%PGAchievementChain
-(void)SetCostToExtend:(int) arg1 {
arg1 = 1;
}
%end

%Transaction
+(id)transactionWithEnergy:(long long) arg2{
return = (null);
arg1 = 0;
}
%end

%Transaction
-(long long) energy fp8 {
fp8 = 100;
}
%orig(fp8);
%end

 

  • Solution
Posted
#import <UIKit/UIKit.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

%hook Transaction
-(void)setCoins:(long long) arg1 {
arg1 = 1000;
}
%end

%PGAchievementChain
-(int)costToExtend {
return 1;
}
%end

%PGAchievementChain
-(void)SetCostToExtend:(int) arg1 {
arg1 = 1;
}
%end

%Transaction
+(id)transactionWithEnergy:(long long) arg2{
return nil;
arg1 = 0;
}
%end

%Transaction
-(long long)energy {
return 100;
}
%end

Are you sure that you typed these (functions) right?

Posted
1 minute ago, Amuyea said:

#import <UIKit/UIKit.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

%hook Transaction
-(void)setCoins:(long long) arg1 {
arg1 = 1000;
}
%end

%PGAchievementChain
-(int)costToExtend {
return 1;
}
%end

%PGAchievementChain
-(void)SetCostToExtend:(int) arg1 {
arg1 = 1;
}
%end

%Transaction
+(id)transactionWithEnergy:(long long) arg2{
return nil;
arg1 = 0;
}
%end

%Transaction
-(long long)energy {
return 100;
}
%end

thanks & how would i do if i wanted to add them to a key? for example: key1 is for Coins, key2 is for Cost to expand and key3 is for No energy drained? 

Posted
2 minutes ago, Frank Sinatra said:

thanks & how would i do if i wanted to add them to a key? for example: key1 is for Coins, key2 is for Cost to expand and key3 is for No energy drained? 

There are examples in tutorial :)

Posted
34 minutes ago, Frank Sinatra said:

okay will look, thanks for your help! <3 

Feel free to post if unsure so that I or other can help

Posted
3 minutes ago, Amuyea said:

Feel free to post if unsure so that I or other can help

hmm, so i found this TuT and i used option 1 and now i got this error

 

G-Eazy-Jr:/var/mobile/holiday root# make package
Making all for tweak Holiday...
 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.
 Compiling Tweak.xm...
Tweak.xm:6:1: error: unknown type name 'Inline'; did
      you mean 'inline'?
Inline bool GetPrefBool(NSString *key)
^~~~~~
inline
Tweak.xm:9:1: error: use of undeclared identifier
      'Return'
Return [[[NSDictionary dictionaryWithContents...
^
Tweak.xm:9:65: error: instance method '-ValueForKey:'
      not found (return type defaults to 'id'); did
      you mean '-valueForKey:'?
      [-Werror,-Wobjc-method-access]
  ...dictionaryWithContentsOfFile:PLIST_PATH] Valu...
                                              ^
/var/mobile/holiday/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h:12:12: note: 
      receiver is instance of class declared here
@interface NSDictionary : NSObject <NSCopying...
           ^
Tweak.xm:9:9: error: missing '[' at start of message
      send expression
Return [[[NSDictionary dictionaryWithContents...
        ^
        [
Tweak.xm:9:92: error: expected ']'
  ...ValueForKey:key] boolValue];
                                ^
Tweak.xm:9:8: note: to match this '['
Return [[[NSDictionary dictionaryWithContents...
       ^
Tweak.xm:17:56: error: redefinition of 'Transaction'
      as different kind of symbol
  ...@class SurvivorAppDelegate; @class Transaction; 
                                 ^
/var/mobile/holiday/theos/include/QuartzCore/QuartzCore-Structs.h:138:3: note: 
      previous definition is here
} Transaction;
  ^
Tweak.xm:29:1: error: use of undeclared identifier
      'arg1'; did you mean 'arg2'?
arg1 = 0;
^~~~
arg2
Tweak.xm:25:108: note: 'arg2' declared here
  ...self, SEL _cmd, long long arg2) {
                               ^
7 errors generated.
make[2]: *** [obj/Tweak.xm.5a107aa2.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Holiday.all.tweak.variables] Error 2
G-Eazy-Jr:/var/mobile/holiday root# 

this is my tweak:

#import <UIKit/UIKit.h>
#import <substrate.h>
#import <Foundation/Foundation.h>
#define PLIST_PATH @"/var/mobile/holiday/Holiday/Resources/Holiday.plist"

Inline bool GetPrefBool(NSString *key)

{
Return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] ValueForKey:key] boolValue];

}



%hook Transaction


-(void)setCoins:(long long) arg1 {
if(GetPrefBool(@"key1")) {
arg1 = 1000;
}
return %orig;
}

+(id)transactionWithEnergy:(long long) arg2 {
if(GetPrefBool(@"key2")) {

return nil;
arg1 = 0;
}
return %orig;
}


-(long long)energy {
if(GetPrefBool(@"key2")) {
return 100;
}
return %orig;
}
%end

%hook PGAchievementChain
-(int)costToExtend {
if(GetPrefBool(@"key3")) {
return 1;
}
return %orig;
}


-(void)SetCostToExtend:(int) arg1 {
if(GetPrefBool(@"key3")) {
arg1 = 1;
}
return %orig;
}
%end


%hook SurvivorAppDelegate

-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hacked By Frank Sinatra"
message:@"Visit iOSGods for more cheats & hacks" delegate:nil cancelButtonTitle:@"Thanks "
otherButtonTitles:nil];
[alert show];
[alert release];
return %orig;
}

%end

 

Posted

i've fixed those where i needed lowercase letters but the other problems i dont understand how i should fix them :(

Posted
+(id)transactionWithEnergy:(long long) arg1 {
if(GetPrefBool(@"key2")) {

return nil;
arg1 = 0;
}
return %orig;
}
Posted (edited)
18 minutes ago, Frank Sinatra said:

i've fixed those where i needed lowercase letters but the other problems i dont understand how i should fix them :(

your +(id)transactionWithEnergy:(long long) declares an arg2 yet you return an arg1 value.. change the arg2 to arg1 that'll fix one error.

Edit: @Amuyea lol i typed too slow u beat me by less then a minute lol.

Updated by i0s_tweak3r

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

    • MIST: Horror Idle Survival RPG v1.8.3 +4 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Jailbreak required hack(s): [Mod Menu Hack] MIST: Horror Idle Survival RPG v1.2 +4 Cheats [ Damage Multiplier ] - 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
        • Like
      • 19 replies
    • MIST: Horror Idle Survival RPG v1.8.3 +4 Cheats [ Damage + More ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] MIST: Horror Idle Survival RPG v1.2 +4 Jailed Cheats [ Damage Multiplier ] - 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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 47 replies
    • Nuclear Day Survival v0.139.7 +5 Jailed Cheats [ Unlimited Stats ]
      Modded/Hacked App: Nuclear Day Survival By APPWILL COMPANY LTD
      Bundle ID: com.somniumfabri.nuclearday
      iTunes Store Link: https://apps.apple.com/us/app/nuclear-day-survival/id1666266916?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 Hunger
      - Unlimited Water
      - Unlimited Health
      - Unlimited Energy
      - No Radiation
        • Informative
        • Agree
        • Haha
        • Like
      • 12 replies
    • Nuclear Day Survival v0.139.7 +5 Cheats [ Unlimited Stats ]
      Modded/Hacked App: Nuclear Day Survival By APPWILL COMPANY LTD
      Bundle ID: com.somniumfabri.nuclearday
      iTunes Store Link: https://apps.apple.com/us/app/nuclear-day-survival/id1666266916?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:
      - Unlimited Hunger
      - Unlimited Water
      - Unlimited Health
      - Unlimited Energy
      - No Radiation
        • Informative
        • Agree
        • Winner
        • Like
      • 14 replies
    • Lost Enders v1.9.6 +3 Jailed Cheats [ God / O-HK ]
      Modded/Hacked App: Lost Enders By makoto takeuchi
      Bundle ID: jp.co.kurukurugames.lostenders
      iTunes Store Link: https://apps.apple.com/us/app/lost-enders/id6502868763?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Lost Enders v1.0.4 +2 Cheats [ God / O-HK ] - 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/
        • Winner
        • Like
      • 37 replies
    • Lost Enders v1.9.6 +3 Cheats [ God / O-HK ]
      Modded/Hacked App: Lost Enders By makoto takeuchi
      Bundle ID: jp.co.kurukurugames.lostenders
      iTunes Store Link: https://apps.apple.com/us/app/lost-enders/id6502868763?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Lost Enders v1.0.4 +2 Jailed Cheats [ God / O-HK ] - 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/
        • Agree
        • Thanks
        • Winner
        • Like
      • 70 replies
    • Octopus Feast v2.5.4 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Octopus Feast By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.twodestudios.octopusfeast
      iTunes Store Link: https://apps.apple.com/us/app/octopus-feast/id6499421924?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Octopus Feast v1.2.4 +1++ Cheat [ 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
      • 50 replies
    • Octopus Feast v2.5.4 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Octopus Feast By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.twodestudios.octopusfeast
      iTunes Store Link: https://apps.apple.com/us/app/octopus-feast/id6499421924?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Octopus Feast v1.2.4 +1++ Jailed Cheat [ 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
      • 51 replies
    • Cash King: Tycoon Earn Money v1.12.0 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Cash King: Tycoon Earn Money By BFK ARASTIRMA GELISTIRME YAZILIM BILGISAYAR SANAYI VE TICARET ANONIM SIRKETI
      Bundle ID: com.tcn.cking
      iTunes Store Link: https://apps.apple.com/us/app/cash-king-tycoon-earn-money/id6479973614?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 Cash -> Will increase instead of decrease.
      - Unlimited Tickets -> Will increase instead of decrease.
      - Unlimited Health & Happiness -> Will not decrease.
      -- No Ads


      Jailbreak required hack(s): [Mod Menu Hack] Cash King: Tycoon Earn Money v0.7.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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 39 replies
    • Cash King: Tycoon Earn Money v1.12.0 +4 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Cash King: Tycoon Earn Money By BFK ARASTIRMA GELISTIRME YAZILIM BILGISAYAR SANAYI VE TICARET ANONIM SIRKETI
      Bundle ID: com.tcn.cking
      iTunes Store Link: https://apps.apple.com/us/app/cash-king-tycoon-earn-money/id6479973614?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:
      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Tickets -> Will increase instead of decrease.
      - Unlimited Health & Happiness -> Will not decrease.
      -- No Ads


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Cash King: Tycoon Earn Money v0.7.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
        • Winner
        • Like
      • 24 replies
    • Soccer Manager 2025 - Football v2.2.10 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Soccer Manager 2025 - Football By INVINCIBLES STUDIO LTD
      Bundle ID: com.invinciblesstudioltd.soccermanager2025
      iTunes Store Link: https://apps.apple.com/us/app/soccer-manager-2025-football/id6449935779?uo=4


      Hack Features:
      - Unlimited Cash -> Accept a Sponsorship.
      - Unlimited Cash v2 -> Create a Club.
      - 1 Gold Cost -> Making purchases with gold will only use 1 gold. Make sure you have enough gold first! DO NOT USE IN THE SHOP!


      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
      • 141 replies
    • Smashero.io - Hack N Slash RPG v1.18.1 +2 Jailed Cheats [ God / O-HK ]
      Modded/Hacked App: Smashero.io - Hack N Slash RPG By CANNON CRACKER, Inc.
      Bundle ID: com.cc.Smashero
      iTunes Store Link: https://apps.apple.com/us/app/smashero-io-hack-n-slash-rpg/id6505129091?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Smashero.io - Hack N Slash RPG v3.3 +2 Cheats [ God / O-HK ] - 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
        • Thanks
        • Winner
        • Like
      • 32 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