Jump to content

tweak help


Profq

12 posts in this topic

Recommended Posts

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

 

Link to comment
Share on other sites

#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?

Link to comment
Share on other sites

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? 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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

  • Our picks

    • Hoosegow: Prison Survival v2.5.7 +40++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Hoosegow: Prison Survival By D.DREAM GAMES LLC
      Bundle ID: com.ddreamgames.hoosegow
      iTunes Store Link: https://apps.apple.com/us/app/hoosegow-prison-survival/id1587312327?uo=4


      Hack Features:
      - Debug Menu -> Head into Settings and toggle the Report a problem button.


      Jailbreak required hack(s): [Mod Menu Hack] Hoosegow: Prison Survival v2.2.4 +40++ Cheats [ Debug Menu ] - 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
      • 45 replies
    • Hoosegow: Prison Survival v2.5.7 +40++ Cheats [ Debug Menu ]
      Modded/Hacked App: Hoosegow: Prison Survival By D.DREAM GAMES LLC
      Bundle ID: com.ddreamgames.hoosegow
      iTunes Store Link: https://apps.apple.com/us/app/hoosegow-prison-survival/id1587312327?uo=4


      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Report a problem button.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Hoosegow: Prison Survival v2.2.4 +40++ Jailed Cheats [ Debug Menu ] - 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
      • 23 replies
    • NERF: Superblast Online FPS v1.12.0 +2 Jailed Cheats [ Unlimited Ammo ]
      Modded/Hacked App: NERF: Superblast Online FPS By Nitro Games Oyj
      Bundle ID: com.nitrogames.newdawn
      iTunes Store Link: https://apps.apple.com/us/app/nerf-superblast-online-fps/id1557212962
       

      Hack Features:
      - Unlimited Ammo -> Will not decrease.
      - No Weapon Spread


      Jailbreak required hack(s): [Mod Menu Hack] NERF: Superblast v1.0.5 +4 Cheats [ Unlimited Ammo ] - 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
      • 60 replies
    • Idle Miner Tycoon: Money Games v4.55.0 +100++ Jailed Cheats [ Game Breaking ]
      Modded/Hacked App: Idle Miner Tycoon: Money Games By Kolibri Games GmbH
      Bundle ID: com.fluffyfairygames.idleminertycoon
      iTunes Store Link: https://apps.apple.com/us/app/idle-miner-tycoon-money-games/id1116645064
       

      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Sound button.


      Jailbreak required hack(s): [Mod Menu Hack] Idle Miner Tycoon: Money Games v4.4.0 +1++ Cheats [ Game Breaking ] - 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
      • 298 replies
    • Idle Miner Tycoon: Money Games v4.55.0 +100++ Cheats [ Game Breaking ]
      Modded/Hacked App: Idle Miner Tycoon: Money Games By Kolibri Games GmbH
      Bundle ID: com.fluffyfairygames.idleminertycoon
      iTunes Store Link: https://apps.apple.com/us/app/idle-miner-tycoon-money-games/id1116645064
       

      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Sound button.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Idle Miner Tycoon: Money Games v4.4.0 +1++ Cheats [ Game Breaking ] - 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
      • 165 replies
    • Whispers - Interactive Stories v1.8.8 +2 Jailed Cheats [ Free Choices ]
      Modded/Hacked App: Whispers: Interactive Stories By GAMEHAUS LIMITED
      Bundle ID: com.twincat.stories
      iTunes Store Link: https://apps.apple.com/us/app/whispers-interactive-stories/id1546336250
       

      Hack Features:
      - All Chapters Unlocked
      - Free Premium Choices


      Jailbreak required hack(s): [Mod Menu Hack] Whispers: Interactive Stories v1.4.9 +2 Cheats [ Free Choices ] - 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
      • 161 replies
    • Whispers - Interactive Stories v1.8.8 +2 Cheats [ Free Choices ]
      Modded/Hacked App: Whispers: Interactive Stories By GAMEHAUS LIMITED
      Bundle ID: com.twincat.stories
      iTunes Store Link: https://apps.apple.com/us/app/whispers-interactive-stories/id1546336250
       

      Hack Features:
      - All Chapters Unlocked
      - Free Premium Choices


      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
      • 117 replies
    • NERF: Superblast Online FPS v1.12.0 +4 Cheats [ Unlimited Ammo ]
      Modded/Hacked App: NERF: Superblast Online FPS By Nitro Games Oyj
      Bundle ID: com.nitrogames.newdawn
      iTunes Store Link: https://apps.apple.com/us/app/nerf-superblast-online-fps/id1557212962
       

      Hack Features:
      - Unlimited Ammo -> Will not decrease.
      - High Damage -> Shoots out a lot of bullets per bullet. Best to use with Unlimited Ammo.
      - No Weapon Spread
      - High Fire Rate


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] NERF: Superblast v1.0.5 +3 Cheats [ Unlimited Ammo ] - 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
      • 133 replies
    • Love Sparks: My Secret Fantasy v2.30.0 +2 Jailed Cheats [ Unlimited Gems ]
      Modded/Hacked App: Love Sparks: My Secret Fantasy By SWAG MASHA
      Bundle ID: com.swagmasha.lovespark
      iTunes Store Link: https://apps.apple.com/us/app/love-sparks-my-secret-fantasy/id1580105392
       

      Hack Features:
      - Unlimited Gems -> Spend some.
      - VIP Enabled


      Jailbreak required hack(s): [Mod Menu Hack] Love Sparks: My Secret Fantasy v2.17.0 +2 Cheats [ Unlimited Gems ] - 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
      • 327 replies
    • Mighty DOOM v1.11.0 +2 Jailed Cheats [ God & OHK ]
      Modded/Hacked App: Mighty DOOM By Bethesda
      Bundle ID: com.bethsoft.ubu
      iTunes Store Link: https://apps.apple.com/us/app/mighty-doom/id1535673981
       

      Hack Features:
      - God Mode -> You will take damage but you won't die.
      - One-Hit Kill


      Jailbreak required hack(s): https://iosgods.com/topic/170017-mighty-doom-v100-2-cheats-damage-multiplier/
      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
      • 116 replies
    • Mighty DOOM v1.11.0 +2 Cheats [ Damage Multiplier ]
      Modded/Hacked App: Mighty DOOM By Bethesda
      Bundle ID: com.bethsoft.ubu
      iTunes Store Link: https://apps.apple.com/us/app/mighty-doom/id1535673981
       

      Hack Features:
      - God Mode -> You will take damage but you won't die.
      - Damage Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/170103-mighty-doom-v100-2-jailed-cheats-one-hit-kill/
      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
      • 148 replies
    • Idle Guy: Life Simulator v1.9.340 +2 Jailed Cheats [ Unlimited Cash ]
      Modded/Hacked App: Idle Guy: Life Simulator By Heatherglade Publishing Kft
      Bundle ID: com.heatherglade.idleguy
      iTunes Store Link: https://apps.apple.com/us/app/idle-guy-life-simulator/id1612163874
       

      Hack Features:
      - Unlimited Cash -> Will increase instead of decrease.
      - Free In-App Purchases -> Toggle on via iGMenu.


      Jailbreak required hack(s): [Mod Menu Hack] Idle Guy: Life Simulator v1.9.302 +2 Cheats [ Unlimited Cash ] - 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
      • 25 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