Jump to content

another compile error in cygwin theos


Go to solution Solved by Taylor Meyer,

25 posts in this topic

Recommended Posts

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Post the full tweak.xm and tell which line is 65

Tweak.xm:49:1: error: C++ requires a type specifier for all declarations
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN7Missile19CollidingWithPl...
^
Tweak.xm:51:1: error: C++ requires a type specifier for all declarations
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN8ShopItem11IsPurchasedEv"...
^
Tweak.xm:53:1: error: C++ requires a type specifier for all declarations
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN8ShopItem18PurchaseSucces...
^
Tweak.xm:55:1: error: C++ requires a type specifier for all declarations
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN4Game14GetCurrencyQtyEv")...
^
Tweak.xm:57:1: error: C++ requires a type specifier for all declarations
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN6Player6IsDeadEv")),(void...
^
Tweak.xm:59:1: error: C++ requires a type specifier for all declarations
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN14MissionManager15Reached...
^
Tweak.xm:61:1: error: C++ requires a type specifier for all declarations
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN9SlotToken19CollidingWith...
^
Tweak.xm:63:1: error: C++ requires a type specifier for all declarations
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZNK6Player8IsImmuneEv")),(v...
^
Tweak.xm:65:1: error: C++ requires a type specifier for all declarations
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN8Obstacle19CollidingWithP...
^
Posted

Tweak.xm:49:1: error: C++ requires a type specifier for all declarations

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN7Missile19CollidingWithPl...

^

Tweak.xm:51:1: error: C++ requires a type specifier for all declarations

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN8ShopItem11IsPurchasedEv"...

^

Tweak.xm:53:1: error: C++ requires a type specifier for all declarations

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN8ShopItem18PurchaseSucces...

^

Tweak.xm:55:1: error: C++ requires a type specifier for all declarations

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN4Game14GetCurrencyQtyEv")...

^

Tweak.xm:57:1: error: C++ requires a type specifier for all declarations

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN6Player6IsDeadEv")),(void...

^

Tweak.xm:59:1: error: C++ requires a type specifier for all declarations

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN14MissionManager15Reached...

^

Tweak.xm:61:1: error: C++ requires a type specifier for all declarations

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN9SlotToken19CollidingWith...

^

Tweak.xm:63:1: error: C++ requires a type specifier for all declarations

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZNK6Player8IsImmuneEv")),(v...

^

Tweak.xm:65:1: error: C++ requires a type specifier for all declarations

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN8Obstacle19CollidingWithP...

^

Post the tweak.xm, not the error

Posted

Post the tweak.xm, not the error

here is the tweak.xm

 

#include <substrate.h>

 

static bool missileCollision() {

return FALSE;

}

 

 

static bool shopItemsPurchased() {

return TRUE;

}

 

 

static void shopItemsPurchased2() {

}

 

static int getCurrency() {

return 99999999;

}

 

 

static bool playerIsDead() {

return FALSE;

}

 

 

static void missionMaxLevel() {

}

 

 

static bool slotTokenCollision() {

return FALSE;

}

 

 

static bool playerIsImmune() {

return TRUE;

}

 

 

static bool ObstacleColliding() {

return FALSE;

}

 

 

%ctor {

 

MSHookFunction(MSFindSymbol(NULL, "__ZN7Missile19CollidingWithPlayerER4Game"),(void*)missileCollision, NULL);

MSHookFunction(MSFindSymbol(NULL, "__ZN8ShopItem11IsPurchasedEv"),(void*)shopItemsPurchased, NULL);

MSHookFunction(MSFindSymbol(NULL, "__ZN8ShopItem18PurchaseSuccessfulEv"),(void*)shopItemsPurchased2, NULL);

MSHookFunction(MSFindSymbol(NULL, "__ZN4Game14GetCurrencyQtyEv"),(void*)getCurrency, NULL);

MSHookFunction(MSFindSymbol(NULL, "__ZN6Player6IsDeadEv"),(void*)playerIsDead, NULL);

MSHookFunction(MSFindSymbol(NULL, " __ZN14MissionManager15ReachedMaxLevelEv"),(void*)missionMaxLevel, NULL);

MSHookFunction(MSFindSymbol(NULL, "__ZN9SlotToken19CollidingWithPlayerER4Game"),(void*)slotTokenCollision, NULL);

MSHookFunction(MSFindSymbol(NULL, "__ZNK6Player8IsImmuneEv"),(void*)playerIsImmune, NULL);

MSHookFunction(MSFindSymbol(NULL, "__ZN8Obstacle19CollidingWithPlayerER4Game"),(void*)ObstacleColliding, NULL);

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