Skip to content
Guest Big Announcement

.deb terminal errors! I'm beginner

Featured Replies

%hook GameState

 

-(int) gems {

return 9999999;

}

 

-(int) max_stars {

return 9999999;

 

}

 

-(int) total_stars {

return 9999999;

}

 

-(int) max_energy {

return 9999999;

}

 

-(int) max_crowns {

return 9999999;

}

 

-(int) tickets {

return 9999999;

}

 

-(int) energy_play_cost_level {

return 1;

}

 

-(int) total_crowns {

return 9999999;

}

 

-(int) energy {

return 9999999;

}

 

-(int) energy_refill_count {

return 9999999;

}

 

-(int) energy_reward_count {

return 9999999;

}

 

%end

 

%hook @Level

 

-(int) coins {

return 9999999;

}

 

%end

 

%hook Player

 

-(int) get_energy {

return 9999999;

}

 

%end

Get rid of the @ where you hook Level

  • Replies 33
  • Views 4.6k
  • Created
  • Last Reply

Top Posters In This Topic

I don't think you can hack methods that have an underscore, but I'm not positive on that

You can with underscores but not 'dots' :p
  • Author

Get rid of the @ where you hook Level

it needs to be there cause one of the errors said that and when I put it there one of the errors went

it needs to be there cause one of the errors said that and when I put it there one of the errors went

No it doesn't lol

You can with underscores but not 'dots' :p

It's been a while since I've done anything, so it was probably just Swift classes that I was thinking of

  • Author

No it doesn't lol

Jacksons-iPad:~ mobile$ su

Password:

Jacksons-iPad:/var/mobile root# cd /var/mobile/crazykingspatchv1

Jacksons-iPad:/var/mobile/crazykingspatchv1 root# make package

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

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

Making all for tweak crazykingspatchv1...

Preprocessing Tweak.xm...

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Compiling Tweak.xm...

Tweak.xm:3:1: error: redefinition of 'Level' as different kind of symbol

@class Level; @class Player; @class GameState;

^

/var/mobile/crazykingspatchv1/theos/include/QuartzCore/QuartzCore-Structs.h:114:22: note: previous definition is here

typedef struct Level Level;

^

1 error generated.

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

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

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

Jacksons-iPad:/var/mobile/crazykingspatchv1 root#

Jacksons-iPad:~ mobile$ su

Password:

Jacksons-iPad:/var/mobile root# cd /var/mobile/crazykingspatchv1

Jacksons-iPad:/var/mobile/crazykingspatchv1 root# make package

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

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

Making all for tweak crazykingspatchv1...

Preprocessing Tweak.xm...

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.

Compiling Tweak.xm...

Tweak.xm:3:1: error: redefinition of 'Level' as different kind of symbol

@class Level; @class Player; @class GameState;

^

/var/mobile/crazykingspatchv1/theos/include/QuartzCore/QuartzCore-Structs.h:114:22: note: previous definition is here

typedef struct Level Level;

^

1 error generated.

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

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

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

Jacksons-iPad:/var/mobile/crazykingspatchv1 root#

This happens when you remove the "@" ?

  • Author

This happens when you remove the "@" ?

yes the error comes up it says Tweak.xm:3:1: error: redefinition of 'Level' as different kind of symbol

@class Level; @class Player; @class GameState;

^

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.