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

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

    • Zombie Fortress: Trap Defense v0.8.0 [+6 Jailed Cheats]
      Modded/Hacked App: Zombie Fortress: Trap Defense By SayGames LTD
      Bundle ID: com.nlabsoft.zombiecrusher.s
      App Store Link: https://apps.apple.com/us/app/zombie-fortress-trap-defense/id6747713523?uo=4



      🤩 Hack Features

      - Add Cash
      - Add Diamond
      - Add Energy
      - Add Parts
      - Never Die
      - Add Battle Gold (Enable inside battle)
      • 3 replies
    • Zombie Fortress: Trap Defense v0.8.0 [+6 Cheats]
      Modded/Hacked App: Zombie Fortress: Trap Defense By SayGames LTD
      Bundle ID: com.nlabsoft.zombiecrusher.s
      App Store Link: https://apps.apple.com/us/app/zombie-fortress-trap-defense/id6747713523?uo=4



      🤩 Hack Features

      - Add Cash
      - Add Diamond
      - Add Energy
      - Add Parts
      - Never Die
      - Add Battle Gold (Enable inside battle)
      • 1 reply
    • Heroes Crew: Strategy Defense v1.1.5 [+6 Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 31 replies
    • Heroes Crew: Strategy Defense v1.1.5 [+6 Jailed Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 15 replies
    • Candy Pop Story : Match 3 v1.23.0722 [ +3 Cheats ] Auto Win
      Modded/Hacked App: Candy Pop Story : Match 3 By F.O.G LIMITED
      Bundle ID: com.gamoper.candysweetstory.ios
      App Store Link: https://apps.apple.com/us/app/candy-pop-story-match-3/id6670773988?uo=4


      🤩 Hack Features

      - Auto Win
      - Coins
      - Moves
      -
      • 6 replies
    • Candy Pop Story : Match 3 v1.23.0722 [ +3 Jailed ] Auto Win
      Modded/Hacked App: Candy Pop Story : Match 3 By F.O.G LIMITED
      Bundle ID: com.gamoper.candysweetstory.ios
      App Store Link: https://apps.apple.com/us/app/candy-pop-story-match-3/id6670773988?uo=4
       

      🤩 Hack Features

      - Auto Win
      - Coins
      - Moves
      • 6 replies
    • Boom Castle Tower Defense TD v1.5.2 [ +7 Jailed ] Easy Win
      Modded/Hacked App: Boom Castle: Tower Defense TD By Terahype s.r.o.
      Bundle ID: castle.heroes.tower.defense.kingdom.magic.battle.archer
      iTunes Store Link: https://apps.apple.com/us/app/boom-castle-tower-defense-td/id6502820312?uo=4


      Hack Features:

      - Enemy Status [ HP DEF ]

      - Base HP 

      - Battle Cost 0 

      - Stage Unlocked [ Play Any Stage ]

      - Battle Pass Unlocked 

      - Battle Pass Claim Unlimited [ Gems Gold ]

      - iGG Speed Hack Max 0 - 10 [ Skill CD - ATK Speed - Animation Speed - Wave Faster ]


      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/
      • 48 replies
    • Boom Castle Tower Defense TD v1.5.2 [ +7 Cheats ] Easy Win
      Modded/Hacked App: Boom Castle: Tower Defense TD By Terahype s.r.o.
      Bundle ID: castle.heroes.tower.defense.kingdom.magic.battle.archer
      iTunes Store Link: https://apps.apple.com/us/app/boom-castle-tower-defense-td/id6502820312?uo=4


      Hack Features:
      - Enemy Status [ HP DEF ]

      - Base HP 

      - Battle Cost 0 

      -  Stage Unlocked [ Play Any Stage ]

      - Battle Pass Unlocked 

      - Battle Pass Claim Unlimited [ Gems Gold ]

      - iGG Speed Hack Max 0 - 10 [ Skill CD - ATK Speed - Animation Speed - Wave Faster ] 


      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/
      • 52 replies
    • Zombie Infinity v1.9.1 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Zombie Infinity By kamasu.jp Inc.
      Bundle ID: jp.kamasu.oread
      App Store Link: https://apps.apple.com/ph/app/zombie-infinity/id6736433765?uo=4


      🤩 Hack Features

      - ADS Pass

      - Energy Pass

      - Premium Pass

      - Currency

      - Hero Status [ HP - DMG ]
      • 4 replies
    • Zombie Infinity v1.9.1 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Zombie Infinity By kamasu.jp Inc.
      Bundle ID: jp.kamasu.oread
      App Store Link: https://apps.apple.com/ph/app/zombie-infinity/id6736433765?uo=4


      🤩 Hack Features

      - ADS Pass

      - Energy Pass

      - Premium Pass

      - Currency

      - Hero Status [ HP - DMG ]
      • 3 replies
    • Alien Survivor: Survival Arena v1.40.0 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 19 replies
    • Alien Survivor: Survival Arena v1.40.0 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 32 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