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

    • Jurassic World Alive v3.14.53 - [ Dino Don't Move & More ]
      Modded/Hacked App: Jurassic World Alive By Ludia
      Bundle ID: com.ludia.jw2
      iTunes Store Link: https://apps.apple.com/us/app/jurassic-world-alive/id1231085864


      Hack Features:
      - Dino Don't Move
      - Inf. Battery
      - VIP Enabled

      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app. This hack works on the latest x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.
        • Like
      • 1,687 replies
    • June’s Journey: Hidden Objects v3.37.2 Jailed Cheats +2
      Modded/Hacked App: June’s Journey: Hidden Objects By wooga gmbh
      Bundle ID: net.wooga.junes-journey-hidden-object-mystery-game
      iTunes Store Link: https://apps.apple.com/us/app/junes-journey-hidden-objects/id1200391796?uo=4


      Hack Features:
      - Infinite Currencies
      - Instant Hint


      iOS Hack Download IPA Link: https://iosgods.com/topic/176104-june%E2%80%99s-journey-hidden-objects-v2946-jailed-cheats-2/
      • 46 replies
    • Frost World v1.0.2 +8 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Frost World By Estoty LLC
      Bundle ID: com.winter.breaker
      App Store Link: https://apps.apple.com/us/app/frost-world/id6738846199?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Everything -> Will increase instead of decrease.
      - Tool Damage Multiplier
      - Speed Multiplier
      - Freeze Temperature
      - Free In-App Purchases
      • 2 replies
    • Frost World v1.0.2 +8 Cheats [ Damage & Defence ]
      Modded/Hacked App: Frost World By Estoty LLC
      Bundle ID: com.winter.breaker
      App Store Link: https://apps.apple.com/us/app/frost-world/id6738846199?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Everything -> Will increase instead of decrease.
      - Tool Damage Multiplier
      - Speed Multiplier
      - Freeze Temperature
      - Free In-App Purchases
      • 4 replies
    • Loot Heroes v1.6.9 +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
      • 114 replies
    • Loot Heroes v1.6.9 +10 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
      • 256 replies
    • Nightfall: Kingdom Frontier TD v1.0.404 +8 Jailed Cheats [ Currencies ]
      Modded/Hacked App: Nightfall: Kingdom Frontier TD By Fansipan Limited
      Bundle ID: com.fansipan.nightfall.tower.simulation.strategy.td.game
      iTunes Store Link: https://apps.apple.com/us/app/nightfall-kingdom-frontier-td/id6621272416?uo=4


      Hack Features:
      - God Mode
      - Unlimited In-Game Coins -> Will increase instead of decrease.
      - Unlimited Currencies -> Will increase instead of decrease.
      - No Ads
      - Add 1K Currency -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All Features -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All / Everything ->  Head over to Settings and toggle the Discord button. [ VIP ]
      - Complete Tutorial -> Head over to Settings and toggle the Discord button. [ VIP ]


      Jailbreak required hack(s): [Mod Menu Hack] Nightfall: Kingdom Frontier TD v1.0.41 +8 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/
      • 95 replies
    • Dawn of Ages: Medieval Games v2.0.5 +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
      • 54 replies
    • Dawn of Ages: Medieval Games v2.0.5 +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

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled
      • 32 replies
    • Goblins Wood: Tycoon Idle Sim v2.49.1 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Goblins Wood: Tycoon Idle Sim By ProGamesLab LTD
      Bundle ID: idle.goblins.wood.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/goblins-wood-tycoon-idle-sim/id6446766326?uo=4


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


      Jailbreak required hack(s): [Mod Menu Hack] Goblins Wood: Tycoon Idle Sim v2.42.0 +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/
      • 26 replies
    • Goblins Wood: Tycoon Idle Sim v2.49.1 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Goblins Wood: Tycoon Idle Sim By ProGamesLab LTD
      Bundle ID: idle.goblins.wood.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/goblins-wood-tycoon-idle-sim/id6446766326?uo=4


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


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Goblins Wood: Tycoon Idle Sim v2.42.0 +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/
      • 33 replies
    • Nightfall: Kingdom Frontier TD v1.0.404 +8 Cheats [ Currencies ]
      Modded/Hacked App: Nightfall: Kingdom Frontier TD By Fansipan Limited
      Bundle ID: com.fansipan.nightfall.tower.simulation.strategy.td.game
      iTunes Store Link: https://apps.apple.com/us/app/nightfall-kingdom-frontier-td/id6621272416?uo=4


      Hack Features:
      - God Mode
      - Unlimited In-Game Coins -> Will increase instead of decrease.
      - Unlimited Currencies -> Will increase instead of decrease.
      - No Ads
      - Add 1K Currency -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All Features -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All / Everything ->  Head over to Settings and toggle the Discord button. [ VIP ]
      - Complete Tutorial -> Head over to Settings and toggle the Discord button. [ VIP ]


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Nightfall: Kingdom Frontier TD v1.0.41 +8 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/
      • 106 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