Jump to content

15 posts in this topic

Recommended Posts

Posted (edited)

ok heres the problem

Tweak.xm:10:133: error: redefinition of 'Level' as different kind of symbol
  ...@class GameUpgrades; @class GameScene; @class GameBackPack; @class Level...
                                                                 ^
/var/mobile/kingdomrushdebugsettings/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.4705b2ac.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [KingdomRushDebugSettings.all.tweak.variables] Error 2

Heres Picture in terminal of error

 

IMG_0281.png

Updated by Dex
Posted

Copy paste the error in Terminal. Screenshot is too small.

Posted

What's in line 114?

this is inline 114

typedef struct Level Level;

i deleted it once but i get even a bigger error when its deleted so i just put it back

Posted

This doesn't make sense what you wanted to do ?

 

typedef struct Level Level
tells the tweak that Level has to be replaced with Level :ermm:
Posted (edited)

This doesn't make sense what you wanted to do ?

 

typedef struct Level Level
tells the tweak that Level has to be replaced with Level :ermm:

 

i know thats in the .h file i have %hook Level in the tweak.xm and when i remove it works fine but when i add that part this error happens for some annoying reason

Updated by Dex
Posted

You can make a little workaround with MSHook. It hooks the function directly and doesn't depend on the Level header

Posted

You can make a little workaround with MSHook. It hooks the function directly and doesn't depend on the Level header

i can do that but i well have search for it in ida for 3 values 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • 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