Jump to content

Help (Tweaks)


Go to solution Solved by FuroowHD,

35 posts in this topic

Recommended Posts

Posted

Hello im newbie at programming and don't know something about xcode .........

i want to make tweak but i get error when making package and i dont know what is wrong ?!??!

 

 

ERROR :

 

Preprocessing Tweak.xm...
Compiling Tweak.xm...
Tweak.xm:4:768: error: redefinition of
'_logos_orig$_ungrouped$PBGlobalStatistic$money'
...SEL, int); static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(...
^
Tweak.xm:4:14: note: previous definition is here
static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlobalSta...
^
Tweak.xm:17:104: error: expected class member or base class name
...self, SEL _cmd):(id) {
^
Tweak.xm:17:104: error: expected '{' or ','
Tweak.xm:17:103: error: only constructors take base initializers
...self, SEL _cmd):(id) {
^
Tweak.xm:24:122: error: expected class member or base class name
...self, SEL _cmd, int inCoins):(BOOL) {
^
Tweak.xm:24:122: error: expected '{' or ','
Tweak.xm:24:121: error: only constructors take base initializers
...self, SEL _cmd, int inCoins):(BOOL) {
^
Tweak.xm:25:78: error: too many arguments to function call, expected 3, have 5
_logos_orig$_ungrouped$PBGlobalStatistic$buyItemWithPrice$(self, _cmd, TRUE, 1, TRUE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
Tweak.xm:31:12: error: redefinition of
'_logos_method$_ungrouped$PBGlobalStatistic$money'
static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...
^
Tweak.xm:3:12: note: previous definition is here
static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...
^
Tweak.xm:45:115: error: expected class member or base class name
...self, SEL _cmd):(unsigned int) {
^
Tweak.xm:45:115: error: expected '{' or ','
Tweak.xm:45:114: error: only constructors take base initializers
...self, SEL _cmd):(unsigned int) {
^
Tweak.xm:46:75: error: too many arguments to function call, expected 2, have 4
_logos_orig$_ungrouped$PBExperienceManager$experienceForLevel(self, _cmd, 1, 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
13 errors generated.

 

And My 

CODES :

 

%hook PBGlobalStatistic

-(int)money {
return 99999;
}
%end

%hook PBGlobalStatistic

-(int)coinsCount {
return 99999;
}
%end

%hook PBGlobalStatistic

-(BOOL)itemIsBought:(id) {
return TRUE;
}
%end

%hook PBGlobalStatistic

-(BOOL)buyItemWithPrice:(int)inCoins:(BOOL) {
%orig(TRUE, 1, TRUE);
}
%end

%hook PBGlobalStatistic

-(int)money {
return 99999;
}
%end

%hook PBExperienceManager

-(float)experienceForNextLevel {
return 1;
}
%end

%hook PBExperienceManager

-(float)experienceForLevel:(unsigned int) {
%orig(1, 1);
}
%end

%hook BMNotepadBaseItemCell

-(BOOL)itemBought {
return TRUE;
}
%end

 

 

Please HElp I really Need to Know What is My Wrong And I W ant To Create Tweaks

  • Replies 34
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

U can't make same headers multiple times,.

Posted

Have u checked some tutorials? Because u got some serious mistakes.. 

Posted

Look try this and look at the differences:

 

%hook PBGlobalStatistic

-(int)money {
return 99999;
}

-(int)coinsCount {
return 99999;
}

-(BOOL)itemIsBought:(id) {
return TRUE;
}

-(BOOL)buyItemWithPrice:(int)inCoins:(BOOL) {
%orig(TRUE, 1, TRUE);
}

-(int)money {
return 99999;
}
%end

%hook PBExperienceManager

-(float)experienceForNextLevel {
return 1;
}

-(float)experienceForLevel:(unsigned int) {
%orig(1, 1);
}
%end

%hook BMNotepadBaseItemCell

-(BOOL)itemBought {
return TRUE;
}
%end

Posted

Look try this and look at the differences:

 

%hook PBGlobalStatistic

 

-(int)money {

return 99999;

}

 

-(int)coinsCount {

return 99999;

}

 

-(BOOL)itemIsBought:(id) {

return TRUE;

}

 

-(BOOL)buyItemWithPrice:(int)inCoins:(BOOL) {

%orig(TRUE, 1, TRUE);

}

 

-(int)money {

return 99999;

}

%end

 

%hook PBExperienceManager

 

-(float)experienceForNextLevel {

return 1;

}

-(float)experienceForLevel:(unsigned int) {

%orig(1, 1);

}

%end

 

%hook BMNotepadBaseItemCell

 

-(BOOL)itemBought {

return TRUE;

}

%end

oops , ;( not worked

Preprocessing Tweak.xm...

Compiling Tweak.xm...

Tweak.xm:4:768: error: redefinition of

'_logos_orig$_ungrouped$PBGlobalStatistic$money'

...SEL, int); static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(...

^

Tweak.xm:4:14: note: previous definition is here

static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlobalSta...

^

Tweak.xm:11:104: error: expected class member or base class name

...self, SEL _cmd):(id) {

^

Tweak.xm:11:104: error: expected '{' or ','

Tweak.xm:11:103: error: only constructors take base initializers

...self, SEL _cmd):(id) {

^

Tweak.xm:15:122: error: expected class member or base class name

...self, SEL _cmd, int inCoins):(BOOL) {

^

Tweak.xm:15:122: error: expected '{' or ','

Tweak.xm:15:121: error: only constructors take base initializers

...self, SEL _cmd, int inCoins):(BOOL) {

^

Tweak.xm:16:78: error: too many arguments to function call, expected 3, have 5

_logos_orig$_ungrouped$PBGlobalStatistic$buyItemWithPrice$(self, _cmd, TRUE, 1, TRUE);

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~

Tweak.xm:19:12: error: redefinition of

'_logos_method$_ungrouped$PBGlobalStatistic$money'

static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...

^

Tweak.xm:3:12: note: previous definition is here

static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...

^

Tweak.xm:29:115: error: expected class member or base class name

...self, SEL _cmd):(unsigned int) {

^

Tweak.xm:29:115: error: expected '{' or ','

Tweak.xm:29:114: error: only constructors take base initializers

...self, SEL _cmd):(unsigned int) {

^

Tweak.xm:30:75: error: too many arguments to function call, expected 2, have 4

_logos_orig$_ungrouped$PBExperienceManager$experienceForLevel(self, _cmd, 1, 1);

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~

13 errors generated.

 

Posted

@@Al00X Try this:

 

%hook PBGlobalStatistic

-(int)money {
return 99999;
}

-(int)coinsCount {
return 99999;
}

-(BOOL)itemIsBought:(id) {
return TRUE;
}

-(BOOL)buyItemWithPrice:(int)inCoins:(BOOL) {
return TRUE;
argument 1;
}

-(int)money {
return 99999;
}
%end

%hook PBExperienceManager

-(float)experienceForNextLevel {
return 0.1;
}

-(float)experienceForLevel:(unsigned int) {
return 0.1;
}
%end

%hook BMNotepadBaseItemCell

-(BOOL)itemBought {
return TRUE;
}
%end
Posted

 

@@Al00X Try this:

 

 

%hook PBGlobalStatistic

-(int)money {
return 99999;
}

-(int)coinsCount {
return 99999;
}

-(BOOL)itemIsBought:(id) {
return TRUE;
}

-(BOOL)buyItemWithPrice:(int)inCoins:(BOOL) {
return TRUE;
argument 1;
}

-(int)money {
return 99999;
}
%end

%hook PBExperienceManager

-(float)experienceForNextLevel {
return 0.1;
}

-(float)experienceForLevel:(unsigned int) {
return 0.1;
}
%end

%hook BMNotepadBaseItemCell

-(BOOL)itemBought {
return TRUE;
}
%end

thx for help but ...

Tweak.xm:4:768: error: redefinition of

'_logos_orig$_ungrouped$PBGlobalStatistic$money'

...SEL, int); static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(...

^

Tweak.xm:4:14: note: previous definition is here

static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlobalSta...

^

Tweak.xm:11:104: error: expected class member or base class name

...self, SEL _cmd):(id) {

^

Tweak.xm:11:104: error: expected '{' or ','

Tweak.xm:11:103: error: only constructors take base initializers

...self, SEL _cmd):(id) {

^

Tweak.xm:15:122: error: expected class member or base class name

...self, SEL _cmd, int inCoins):(BOOL) {

^

Tweak.xm:15:122: error: expected '{' or ','

Tweak.xm:15:121: error: only constructors take base initializers

...self, SEL _cmd, int inCoins):(BOOL) {

^

Tweak.xm:16:78: error: too many arguments to function call, expected 3, have 5

_logos_orig$_ungrouped$PBGlobalStatistic$buyItemWithPrice$(self, _cmd, TRUE, 1, TRUE);

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~

Tweak.xm:19:12: error: redefinition of

'_logos_method$_ungrouped$PBGlobalStatistic$money'

static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...

^

Tweak.xm:3:12: note: previous definition is here

static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...

^

Tweak.xm:29:115: error: expected class member or base class name

...self, SEL _cmd):(unsigned int) {

^

Tweak.xm:29:115: error: expected '{' or ','

Tweak.xm:29:114: error: only constructors take base initializers

...self, SEL _cmd):(unsigned int) {

^

Tweak.xm:30:75: error: too many arguments to function call, expected 2, have 4

_logos_orig$_ungrouped$PBExperienceManager$experienceForLevel(self, _cmd, 1, 1);

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~

13 errors generated.

make[2]: *** [obj/Tweak.xm.b45140c6.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [KickTheBuddy2_Hack.all.tweak.variables] Error 2

alis-iPad:/var/mobile/Projects/kickthebuddy2_hack root# make package

/var/mobile/Projects/kickthebuddy2_hack/theos/makefiles/targets/Darwin-arm/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.

/var/mobile/Projects/kickthebuddy2_hack/theos/makefiles/targets/Darwin-arm/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.

Making all for tweak KickTheBuddy2_Hack...

Preprocessing Tweak.xm...

Compiling Tweak.xm...

Tweak.xm:4:768: error: redefinition of

'_logos_orig$_ungrouped$PBGlobalStatistic$money'

...SEL, int); static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(...

^

Tweak.xm:4:14: note: previous definition is here

static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlobalSta...

^

Tweak.xm:11:104: error: expected class member or base class name

...self, SEL _cmd):(id) {

^

Tweak.xm:11:104: error: expected '{' or ','

Tweak.xm:11:103: error: only constructors take base initializers

...self, SEL _cmd):(id) {

^

Tweak.xm:15:122: error: expected class member or base class name

...self, SEL _cmd, int inCoins):(BOOL) {

^

Tweak.xm:15:122: error: expected '{' or ','

Tweak.xm:15:121: error: only constructors take base initializers

...self, SEL _cmd, int inCoins):(BOOL) {

^

Tweak.xm:17:1: error: use of undeclared identifier 'argument'

argument 1;

^

Tweak.xm:20:12: error: redefinition of

'_logos_method$_ungrouped$PBGlobalStatistic$money'

static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...

^

Tweak.xm:3:12: note: previous definition is here

static int _logos_method$_ungrouped$PBGlobalStatistic$money(PBGlobalStat...

^

Tweak.xm:31:115: error: expected class member or base class name

...self, SEL _cmd):(unsigned int) {

^

Tweak.xm:31:115: error: expected '{' or ','

Tweak.xm:31:114: error: only constructors take base initializers

...self, SEL _cmd):(unsigned int) {

^

12 errors generated.

 

Posted

Try this:
 

%hook PBGlobalStatistic

-(int)money {
return 99999;
}

-(int)coinsCount {
return 99999;
}

-(BOOL)itemIsBought:(id)id {
return TRUE;
id = [NSNumber numberWithBool:TRUE];
%orig(id);
}

-(BOOL)buyItemWithPrice:(int)inCoins:(BOOL) {
%orig(TRUE, 1, TRUE);
}

-(int)money {
return 99999;
}
%end

%hook PBExperienceManager

-(float)experienceForNextLevel {
return 1;
}

-(float)experienceForLevel:(unsigned int) {
%orig(1, 1);
}
%end

%hook BMNotepadBaseItemCell

-(BOOL)itemBought {
return TRUE;
}
%end
Guest
This topic is now closed to further replies.
  • Our picks

    • Idle Fantasy Magic School:TD v1.2.4 [ +3 Cheats ] Gems Max
      Modded/Hacked App: Idle Fantasy Magic School:TD By Shenzhen Blackstream Interactive Entertainment Co., Ltd.
      Bundle ID: com.blackstream.iosidlemagicschool
      iTunes Store Link: https://apps.apple.com/us/app/idle-fantasy-magic-school-td/id6465575604?uo=4


      Hack Features:
      - ADS NO [ Rewards Free ]
      - Gems
      - DMG [ Check Hero Status ]
      • 19 replies
    • Idle Fantasy Magic School:TD v1.2.4 [ +3 Jailed ] Gems Max
      Modded/Hacked App: Idle Fantasy Magic School:TD By Shenzhen Blackstream Interactive Entertainment Co., Ltd.
      Bundle ID: com.blackstream.iosidlemagicschool
      iTunes Store Link: https://apps.apple.com/us/app/idle-fantasy-magic-school-td/id6465575604?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:
      - ADS NO [ Rewards Free ]
      - Gems
      - DMG [ Check Hero Status ]



      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: 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 9: 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. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. 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 down 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:
      - @Ik_Ik


      Cheat Video/Screenshots:

      N/A
      • 32 replies
    • Grunt Rush: Battle & Conquer v0.21.2 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Grunt Rush: Battle & Conquer By Electronic Gaming Development Company
      Bundle ID: com.steer.gruntrush
      iTunes Store Link: https://apps.apple.com/us/app/grunt-rush-battle-conquer/id6478955259?uo=4


      Hack Features:

      - No ADS

      - IAP Free [ Buy Anything ]

      - Gems 

      - Gold 

      - Units Unlocked 

      - Battle Pass Active

      - Drop Units Unlimited [ Easy To Win ]

       
      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 6 replies
    • Grunt Rush: Battle & Conquer v0.21.2 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Grunt Rush: Battle & Conquer By Electronic Gaming Development Company
      Bundle ID: com.steer.gruntrush
      iTunes Store Link: https://apps.apple.com/us/app/grunt-rush-battle-conquer/id6478955259?uo=4


      Hack Features:

      - No ADS

      - IAP Free [ Buy Anything ]

      - Gems 

      - Gold 

      - Units Unlocked 

      - Battle Pass Active

      - Drop Units Unlimited [ Easy To Win ]


      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/


      iOS Hack Download Link:

      Hidden Content

      Download Hack
      • 25 replies
    • Meow Tower - Nonogram Puzzle v3.2.201 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Meow Tower - Nonogram Puzzle By HyperBeard Inc.
      Bundle ID: com.grapetree.meowtower
      iTunes Store Link: https://apps.apple.com/us/app/meow-tower-nonogram-puzzle/id1579122980?uo=4


      🚀 Hack Features

      - ADS NO
      - Gold CANS
      - Pencil Max 
      - Hints Max
      • 3 replies
    • Meow Tower - Nonogram Puzzle v3.2.201 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Meow Tower - Nonogram Puzzle By HyperBeard Inc.
      Bundle ID: com.grapetree.meowtower
      iTunes Store Link: https://apps.apple.com/us/app/meow-tower-nonogram-puzzle/id1579122980?uo=4
       

      🚀 Hack Features

      - ADS NO
      - Gold CANS
      - Pencil Max 
      - Hints Max 
      • 7 replies
    • Heroes Slime: Castle Defenders v1.2 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Heroes Slime: Castle Defenders By Roman Mazur
      Bundle ID: com.g1.slime.kingdom
      iTunes Store Link: https://apps.apple.com/us/app/heroes-slime-castle-defenders/id6737798586?uo=4


      🤩 Hack Features

      - Currency
      - Resources

      • 1 reply
    • Heroes Slime: Castle Defenders v1.2 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Heroes Slime: Castle Defenders By Roman Mazur
      Bundle ID: com.g1.slime.kingdom
      iTunes Store Link: https://apps.apple.com/us/app/heroes-slime-castle-defenders/id6737798586?uo=4
       

      🤩 Hack Features

      - Currency
      - Resources 

      • 4 replies
    • Tetris® Block Party v0.27.0 [ +2 Cheats ] Coins Unlimited
      Modded/Hacked App: Tetris® Block Party By Playstudios, Inc.
      Bundle ID: com.playstudios.tetrisblockparty
      iTunes Store Link: https://apps.apple.com/ph/app/tetris-block-party/id6569243702?uo=4
       

      🤩 Hack Features

      - Coin Increaser [ Block Placed ]
      - Merge Any Block Anywhere

      Don't Abuse The Hack In Case Banned Not Tested
      • 15 replies
    • Tetris® Block Party v0.27.0 [ +2 Jailed ] Coins Unlimited
      Modded/Hacked App: Tetris® Block Party By Playstudios, Inc.
      Bundle ID: com.playstudios.tetrisblockparty
      iTunes Store Link: https://apps.apple.com/ph/app/tetris-block-party/id6569243702?uo=4
       

      🤩 Hack Features

      - Coin Increaser [ Block Placed ]
      - Merge Any Block Anywhere

      Don't Abuse The Hack In Case Banned Not Tested
      • 6 replies
    • Survivor Code: Last Stand v1.0.2 [+3 Cheats]
      Modded/Hacked App: Survivor Code: Last Stand By TUONG PHAT ENVIROMENT AND TECHNOLOGY COMPANY LIMITED
      Bundle ID: com.survivor.hero.laststand
      App Store Link: https://apps.apple.com/us/app/survivor-code-last-stand/id6743934880?uo=4


      🤩 Hack Features

      - Never Die
      - Add Currency
      - Get No Ads
       
      • 1 reply
    • Survivor Code: Last Stand v1.0.2 [+3 Jailed Cheats]
      Modded/Hacked App: Survivor Code: Last Stand By TUONG PHAT ENVIROMENT AND TECHNOLOGY COMPANY LIMITED
      Bundle ID: com.survivor.hero.laststand
      App Store Link: https://apps.apple.com/us/app/survivor-code-last-stand/id6743934880?uo=4


      🤩 Hack Features

      - Never Die
      - Add Currency
      - Get No Ads
      • 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