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

    • Tap Giants +11 Mods [ Damage & Defence ]
      Mod APK Game Name: Tap Giants By Na Universe Soft Corp.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.nausoft.tapgiants

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Gold -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      - Unlimited Rubies -> Will increase instead of decrease.
      - Unlimited Tickets -> Will increase instead of decrease.
      - Unlimited Power Stones -> Will increase instead of decrease.
      - Unlimited Mythic Stones -> Will increase instead of decrease.
      - Unlimited Equipment Scrolls -> Will increase instead of decrease.
      - Unlimited Rebirth Stones -> Will increase instead of decrease.
      • 1 reply
    • (18+) Agent X +2 Cheats
      Modded/Hacked App: Agent X By Ero-Labs
      Bundle ID: com.armyentlim.agentx.erolabs.prod
      App Store Link: https://www.ero-labs.com/en/game/agent-x
       

      📌 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

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.

       
      • 0 replies
    • (18+) Agent X +2 Jailed Cheats
      Modded/Hacked App: Agent X By Ero-Labs
      Bundle ID: com.armyentlim.agentx.erolabs.prod
      App Store Link: https://www.ero-labs.com/en/game/agent-x

       

      📌 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
      • 3 replies
    • 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
      • 3 replies
    • 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
      • 1 reply
    • 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
×
  • 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