Jump to content

Help (Tweaks)


Go to solution Solved by FuroowHD,

35 posts in this topic

Recommended Posts

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;
}

-(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
  • Replies 34
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

 

Try this:

 

 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:4:756: error: redefinition of
      '_logos_orig$_ungrouped$PBGlobalStatistic$money'
  ...SEL); static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlo...
                        ^
Tweak.xm:4:14: note: previous definition is here
static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlobalSta...
             ^
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...
           ^
2 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:778: 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:122: error: expected class member or base class name
  ...self, SEL _cmd, int inCoins):(BOOL) {
                                  ^
Tweak.xm:17:122: error: expected '{' or ','
Tweak.xm:17:121: error: only constructors take base initializers
  ...self, SEL _cmd, int inCoins):(BOOL) {
                                 ^
Tweak.xm:18:78: error: too many arguments to function call, expected 3, have 5
_logos_orig$_ungrouped$PBGlobalStatistic$buyItemWithPrice$(self, _cmd, TRUE, 1, TRUE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                   ^~~~~~~
Tweak.xm:21: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:32:115: error: expected class member or base class name
  ...self, SEL _cmd):(unsigned int) {
                     ^
Tweak.xm:32:115: error: expected '{' or ','
Tweak.xm:32:114: error: only constructors take base initializers
  ...self, SEL _cmd):(unsigned int) {
                    ^
Tweak.xm:33:75: error: too many arguments to function call, expected 2, have 4
_logos_orig$_ungrouped$PBExperienceManager$experienceForLevel(self, _cmd, 1, 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~             ^~~~
10 errors generated.

 

@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;
}

-(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

Won't Work ;(

Posted

 

 

Try this:

 

 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:4:756: error: redefinition of
      '_logos_orig$_ungrouped$PBGlobalStatistic$money'
  ...SEL); static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlo...
                        ^
Tweak.xm:4:14: note: previous definition is here
static int (*_logos_orig$_ungrouped$PBGlobalStatistic$money)(PBGlobalSta...
             ^
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...
           ^
2 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:778: 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:122: error: expected class member or base class name
  ...self, SEL _cmd, int inCoins):(BOOL) {
                                  ^
Tweak.xm:17:122: error: expected '{' or ','
Tweak.xm:17:121: error: only constructors take base initializers
  ...self, SEL _cmd, int inCoins):(BOOL) {
                                 ^
Tweak.xm:18:78: error: too many arguments to function call, expected 3, have 5
_logos_orig$_ungrouped$PBGlobalStatistic$buyItemWithPrice$(self, _cmd, TRUE, 1, TRUE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                   ^~~~~~~
Tweak.xm:21: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:32:115: error: expected class member or base class name
  ...self, SEL _cmd):(unsigned int) {
                     ^
Tweak.xm:32:115: error: expected '{' or ','
Tweak.xm:32:114: error: only constructors take base initializers
  ...self, SEL _cmd):(unsigned int) {
                    ^
Tweak.xm:33:75: error: too many arguments to function call, expected 2, have 4
_logos_orig$_ungrouped$PBExperienceManager$experienceForLevel(self, _cmd, 1, 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~             ^~~~
10 errors generated.

 

Looks like an error with your theos. :3 Did you install it correctly?

Posted

Lol ok i install it Again

Extract the SDK using iFile. :3

 

I get the same error too btw -_-

Posted

Extract the SDK using iFile. :3

 

I get the same error too btw -_-

ok

ok

done. and not worked

 

Extract the SDK using iFile. :3

 

I get the same error too btw -_-

done. And not worked

Posted

Take a look at this working tweak.xm  for buddyman:

%hook BMMenuItemStars
- (void)setStarsCount:(unsigned int)fp8 animated:(BOOL)fp12 {
fp12=true;
fp8=999999999;
%orig(fp8, fp12);
}
%end

%hook PBSlotsManager
-(unsigned int)getSpinsCount {
return 999999999;
}
%end

%hook PBGlobalStatistic
-(int)coinsCount {
return 999999999;
}
%end

Add your extra stuff but follow the above code.

Posted

Take a look at this working tweak.xm  for buddyman:

%hook BMMenuItemStars
- (void)setStarsCount:(unsigned int)fp8 animated:(BOOL)fp12 {
fp12=true;
fp8=999999999;
%orig(fp8, fp12);
}
%end

%hook PBSlotsManager
-(unsigned int)getSpinsCount {
return 999999999;
}
%end

%hook PBGlobalStatistic
-(int)coinsCount {
return 999999999;
}
%end

Add your extra stuff but follow the above code.

Dude..... i want to make buddyman 2 

Guest
This topic is now closed to further 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