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

    • Zombastic: Time to Survive v1.12.4 [ +1+++ Jailed ] Currency Max
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      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/
      • 52 replies
    • Zombastic: Time to Survive v1.12.4 [ +1+++ Cheats ] Currency Max
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      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/
      • 50 replies
    • Dawn of Ages: Medieval Games v2.0.9 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled
      • 13 replies
    • Dawn of Ages: Medieval Games v2.0.9 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?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
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled

       

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

      - @Puddin
      - @Laxus

       

      📷 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.
      • 22 replies
    • MONOPOLY: The Board Game v1.15.0 +1 Jailed Cheat [ Everything Owned ]
      Modded/Hacked App: MONOPOLY: The Board Game By Marmalade Game Studio Limited
      Bundle ID: com.marmalade.monopoly
      iTunes Store Link: https://apps.apple.com/us/app/monopoly-the-board-game/id1477966166?uo=4


      Hack Features:
      - Everything Owned -> All packs, themes, boards, tokens, all purchased and owned.


      Jailbreak required hack(s): https://iosgods.com/topic/169254-monopoly-classic-board-game-all-versions-1-cheat-everything-owned/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 413 replies
    • First Team Manager Season 2026 v1.0.0 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: First Team Manager Season 2026 By Go Play Games
      Bundle ID: com.GoPlayGames.FTM26
      iTunes Store Link: https://apps.apple.com/us/app/first-team-manager-season-2026/id6743993781

       
       

      🤩 Hack Features

      - Freeze Coins
      - Freeze Cash
      - Freeze Tokens
      - Free In-App Purchases
      • 1 reply
    • First Team Manager Season 2026 v1.0.0 +4 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: First Team Manager Season 2026 By Go Play Games
      Bundle ID: com.GoPlayGames.FTM26
      iTunes Store Link: https://apps.apple.com/us/app/first-team-manager-season-2026/id6743993781

       
       

      🤩 Hack Features

      - Freeze Coins
      - Freeze Cash
      - Freeze Tokens
      - Free In-App Purchases
      • 0 replies
    • Red Bull Playgrounds v1.0.0 +1 Jailed Cheat [ Score Multiplier ]
      Modded/Hacked App: Red Bull Playgrounds By Red Bull Media House GmbH
      Bundle ID: com.red.bull.playgrounds
      App Store Link: https://apps.apple.com/us/app/red-bull-playgrounds/id6737554653?uo=4

       


      🤩 Hack Features

      - Score Multiplier
      • 3 replies
    • Red Bull Playgrounds v1.0.0 +1 Cheat [ Score Multiplier ]
      Modded/Hacked App: Red Bull Playgrounds By Red Bull Media House GmbH
      Bundle ID: com.red.bull.playgrounds
      App Store Link: https://apps.apple.com/us/app/red-bull-playgrounds/id6737554653?uo=4

       
       

      🤩 Hack Features

      - Score Multiplier
      • 4 replies
    • MONOPOLY: The Board Game v1.15.0 +1 Cheat [ Everything Owned ]
      Modded/Hacked App: MONOPOLY: The Board Game By Marmalade Game Studio Limited
      Bundle ID: com.marmalade.monopoly
      iTunes Store Link: https://apps.apple.com/us/app/monopoly-the-board-game/id1477966166?uo=4


      Hack Features:
      - Everything Owned -> All packs, themes, boards, tokens, all purchased and owned.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/169256-monopoly-classic-board-game-v189-1-jailed-cheat-everything-owned/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 203 replies
    • Last War:Survival v1.0.301 [+1 Jailed Cheats]
      Modded/Hacked App: Last War:Survival By FUNFLY PTE. LTD.
      Bundle ID: com.lastwar.ios
      App Store Link: https://apps.apple.com/us/app/last-war-survival/id6448786147?uo=4



      Important


      Only work on Pve contents

      Enable on loading screen!

       

      🤩 Hack Features

      - Never Die
       
      • 25 replies
    • Last War:Survival v1.0.301 [+1 Cheats]
      Modded/Hacked App: Last War:Survival By FUNFLY PTE. LTD.
      Bundle ID: com.lastwar.ios
      App Store Link: https://apps.apple.com/us/app/last-war-survival/id6448786147?uo=4



      Important


      Only work on Pve contents

      Enable on loading screen!

       

       

      🤩 Hack Features

      - Never Die
       
      • 28 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