Jump to content
TrinityCore

Recommended Posts

the problem is /MP an arg of MSV.

one fast fix is use SED for windows in a batch file.

long time ago i don't use this... xD

execute in the project dir after cmake generate this.

rem fix.bat

@For /f "delims=" %%a in ('"dir flags.make /s /b"') do @sed -i.bak s/\/MP// "%%a"

Link to comment
Share on other sites

Hi i compile and i get now error

1>------ Build started: Project: revision.h, Configuration: Release Win32 ------

1>Build log was saved at "file://c:\Localhost\NEWRPPROJECT\Win\src\genrev\revision.h.dir\Release\BuildLog.htm"

1>revision.h - 0 error(s), 0 warning(s)

2>------ Build started: Project: game, Configuration: Release Win32 ------

2>Compiling...

2>Player.cpp

2>Creating library...

2>Player.obj : warning LNK4006: "public: bool __thiscall World::IsClosed(void)const " ([email protected]@@QBE_NXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: char const * __thiscall World::GetMotd(void)const " ([email protected]@@QBEPBDXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::ProcessStartEvent(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::ProcessStopEvent(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SetClosed(bool)" ([email protected]@@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SetMotd(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: void __thiscall World::DetectDBCLang(void)" ([email protected]@@AAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __cdecl World::RecordTimeDiff(char const *,...)" ([email protected]@@QAAXPBDZZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: bool __thiscall World::RemoveBanAccount(enum BanMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::UpdateMaxSessionCounters(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: class Player * __thiscall World::FindPlayerInZone(unsigned int)" ([email protected]@@[email protected]@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: class WorldSession * __thiscall World::FindSession(unsigned int)const " ([email protected]@@[email protected]@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: bool __thiscall World::HasRecentlyDisconnected(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: int __thiscall World::GetQueuePos(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::AddQueuedPlayer(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SendGlobalMessage(class WorldPacket *,class WorldSession *,unsigned int)" ([email protected]@@[email protected]@[email protected]@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SendGlobalGMMessage(class WorldPacket *,class WorldSession *,unsigned int)" ([email protected]@@[email protected]@[email protected]@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SendZoneMessage(unsigned int,class WorldPacket *,class WorldSession *,unsigned int)" ([email protected]@@[email protected]@[email protected]@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::KickAll(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::KickAllLess(enum AccountTypes)" ([email protected]@@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SetPlayerSecurityLimit(enum AccountTypes)" ([email protected]@@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: unsigned __int64 __thiscall World::getWorldState(unsigned int)const " ([email protected]@@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: bool __thiscall World::RemoveSession(unsigned int)" ([email protected]@@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "protected: void __thiscall World::_UpdateRealmCharCount(class ACE_Refcounted_Auto_Ptr<class ResultSet,class ACE_Thread_Mutex>,unsigned int)" ([email protected]@@[email protected]@@[email protected]@@@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::UpdateAreaDependentAuras(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::LoadAutobroadcasts(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SendGlobalText(char const *,class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SendZoneText(unsigned int,char const *,class WorldSession *,unsigned int)" ([email protected]@@[email protected]@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: enum BanReturn __thiscall World::BanCharacter(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: bool __thiscall World::RemoveBanCharacter(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::ProcessCliCommands(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "protected: void __thiscall World::InitDailyQuestResetTime(void)" ([email protected]@@IAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::LoadDBVersion(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::LoadWorldStates(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::setWorldState(unsigned int,unsigned __int64)" ([email protected]@@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: __thiscall World::~World(void)" ([email protected]@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::AddSession(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::LoadDBAllowedSecurityLevel(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: void __thiscall World::ProcessQueryCallbacks(void)" ([email protected]@@AAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::UpdateRealmCharCount(unsigned int)" ([email protected]@@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SendServerMessage(enum ServerMessageType,char const *,class Player *)" ([email protected]@@[email protected]@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::ShutdownMsg(bool,class Player *)" ([email protected]@@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::ShutdownCancel(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: __thiscall World::World(void)" ([email protected]@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: enum BanReturn __thiscall World::BanAccount(enum BanMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@@[email protected]@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "protected: void __thiscall World::_UpdateGameTime(void)" ([email protected]@@IAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::ShutdownServ(unsigned int,unsigned int,unsigned char)" ([email protected]@@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::LoadConfigSettings(bool)" ([email protected]@@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "protected: void __thiscall World::InitWeeklyQuestResetTime(void)" ([email protected]@@IAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "protected: void __thiscall World::InitRandomBGResetTime(void)" ([email protected]@@IAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "protected: void __thiscall World::ResetRandomBG(void)" ([email protected]@@IAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: bool __thiscall World::RemoveQueuedPlayer(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __cdecl World::SendWorldText(int,...)" ([email protected]@@QAAXHZZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __cdecl World::SendGMText(int,...)" ([email protected]@@QAAXHZZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SendAutoBroadcast(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: void __thiscall World::AddSession_(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::UpdateSessions(unsigned int)" ([email protected]@@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "protected: void __thiscall World::ResetDailyQuests(void)" ([email protected]@@IAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "protected: void __thiscall World::ResetWeeklyQuests(void)" ([email protected]@@IAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::Update(unsigned int)" ([email protected]@@[email protected]) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::ForceGameEventUpdate(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: void __thiscall World::SetInitialWorldSettings(void)" ([email protected]@@QAEXXZ) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: static bool volatile World::m_stopEvent" ([email protected]@@0_NC) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: static unsigned char World::m_ExitCode" ([email protected]@@0EA) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "public: static unsigned int volatile World::m_worldLoopCounter" ([email protected]@@2IC) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: static float World::m_MaxVisibleDistanceOnContinents" ([email protected]@@0MA) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: static float World::m_MaxVisibleDistanceInInstances" ([email protected]@@0MA) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: static float World::m_MaxVisibleDistanceInBGArenas" ([email protected]@@0MA) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: static int World::m_visibility_notify_periodOnContinents" ([email protected]@@0HA) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: static int World::m_visibility_notify_periodInInstances" ([email protected]@@0HA) already defined in World.obj; second definition ignored

2>Player.obj : warning LNK4006: "private: static int World::m_visibility_notify_periodInBGArenas" ([email protected]@@0HA) already defined in World.obj; second definition ignored

2>Build log was saved at "file://c:\Localhost\NEWRPPROJECT\Win\src\server\game\game.dir\Release\BuildLog.htm"

2>game - 0 error(s), 71 warning(s)

3>------ Build started: Project: worldserver, Configuration: Release Win32 ------

3>Performing Pre-Link Event...

3>Linking...

3>game.lib(Player.obj) : error LNK2005: "public: bool __thiscall World::IsClosed(void)const " ([email protected]@@QBE_NXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: char const * __thiscall World::GetMotd(void)const " ([email protected]@@QBEPBDXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::ProcessStartEvent(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::ProcessStopEvent(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SetClosed(bool)" ([email protected]@@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SetMotd(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: void __thiscall World::DetectDBCLang(void)" ([email protected]@@AAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __cdecl World::RecordTimeDiff(char const *,...)" ([email protected]@@QAAXPBDZZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: bool __thiscall World::RemoveBanAccount(enum BanMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::UpdateMaxSessionCounters(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: class Player * __thiscall World::FindPlayerInZone(unsigned int)" ([email protected]@@[email protected]@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: class WorldSession * __thiscall World::FindSession(unsigned int)const " ([email protected]@@[email protected]@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: bool __thiscall World::HasRecentlyDisconnected(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: int __thiscall World::GetQueuePos(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::AddQueuedPlayer(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SendGlobalMessage(class WorldPacket *,class WorldSession *,unsigned int)" ([email protected]@@[email protected]@[email protected]@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SendGlobalGMMessage(class WorldPacket *,class WorldSession *,unsigned int)" ([email protected]@@[email protected]@[email protected]@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SendZoneMessage(unsigned int,class WorldPacket *,class WorldSession *,unsigned int)" ([email protected]@@[email protected]@[email protected]@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::KickAll(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::KickAllLess(enum AccountTypes)" ([email protected]@@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SetPlayerSecurityLimit(enum AccountTypes)" ([email protected]@@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: unsigned __int64 __thiscall World::getWorldState(unsigned int)const " ([email protected]@@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: bool __thiscall World::RemoveSession(unsigned int)" ([email protected]@@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "protected: void __thiscall World::_UpdateRealmCharCount(class ACE_Refcounted_Auto_Ptr<class ResultSet,class ACE_Thread_Mutex>,unsigned int)" ([email protected]@@[email protected]@@[email protected]@@@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::UpdateAreaDependentAuras(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::LoadAutobroadcasts(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SendGlobalText(char const *,class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SendZoneText(unsigned int,char const *,class WorldSession *,unsigned int)" ([email protected]@@[email protected]@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: enum BanReturn __thiscall World::BanCharacter(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: bool __thiscall World::RemoveBanCharacter(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::ProcessCliCommands(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "protected: void __thiscall World::InitDailyQuestResetTime(void)" ([email protected]@@IAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::LoadDBVersion(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::LoadWorldStates(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::setWorldState(unsigned int,unsigned __int64)" ([email protected]@@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: __thiscall World::~World(void)" ([email protected]@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::AddSession(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::LoadDBAllowedSecurityLevel(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: void __thiscall World::ProcessQueryCallbacks(void)" ([email protected]@@AAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::UpdateRealmCharCount(unsigned int)" ([email protected]@@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SendServerMessage(enum ServerMessageType,char const *,class Player *)" ([email protected]@@[email protected]@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::ShutdownMsg(bool,class Player *)" ([email protected]@@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::ShutdownCancel(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: __thiscall World::World(void)" ([email protected]@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: enum BanReturn __thiscall World::BanAccount(enum BanMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" ([email protected]@@[email protected]@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "protected: void __thiscall World::_UpdateGameTime(void)" ([email protected]@@IAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::ShutdownServ(unsigned int,unsigned int,unsigned char)" ([email protected]@@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::LoadConfigSettings(bool)" ([email protected]@@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "protected: void __thiscall World::InitWeeklyQuestResetTime(void)" ([email protected]@@IAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "protected: void __thiscall World::InitRandomBGResetTime(void)" ([email protected]@@IAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "protected: void __thiscall World::ResetRandomBG(void)" ([email protected]@@IAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: bool __thiscall World::RemoveQueuedPlayer(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __cdecl World::SendWorldText(int,...)" ([email protected]@@QAAXHZZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __cdecl World::SendGMText(int,...)" ([email protected]@@QAAXHZZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SendAutoBroadcast(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: void __thiscall World::AddSession_(class WorldSession *)" ([email protected]@@[email protected]@@Z) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::UpdateSessions(unsigned int)" ([email protected]@@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "protected: void __thiscall World::ResetDailyQuests(void)" ([email protected]@@IAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "protected: void __thiscall World::ResetWeeklyQuests(void)" ([email protected]@@IAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::Update(unsigned int)" ([email protected]@@[email protected]) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::ForceGameEventUpdate(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: void __thiscall World::SetInitialWorldSettings(void)" ([email protected]@@QAEXXZ) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: static bool volatile World::m_stopEvent" ([email protected]@@0_NC) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: static unsigned char World::m_ExitCode" ([email protected]@@0EA) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "public: static unsigned int volatile World::m_worldLoopCounter" ([email protected]@@2IC) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: static float World::m_MaxVisibleDistanceOnContinents" ([email protected]@@0MA) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: static float World::m_MaxVisibleDistanceInInstances" ([email protected]@@0MA) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: static float World::m_MaxVisibleDistanceInBGArenas" ([email protected]@@0MA) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: static int World::m_visibility_notify_periodOnContinents" ([email protected]@@0HA) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: static int World::m_visibility_notify_periodInInstances" ([email protected]@@0HA) already defined in game.lib(World.obj)

3>game.lib(Player.obj) : error LNK2005: "private: static int World::m_visibility_notify_periodInBGArenas" ([email protected]@@0HA) already defined in game.lib(World.obj)

3>   Creating library C:\Localhost\NEWRPPROJECT\Win\src\server\worldserver\Release\worldserver.lib and object C:\Localhost\NEWRPPROJECT\Win\src\server\worldserver\Release\worldserver.exp

3>C:\Localhost\NEWRPPROJECT\Win\bin\Release\worldserver.exe : fatal error LNK1169: one or more multiply defined symbols found

3>Build log was saved at "file://c:\Localhost\NEWRPPROJECT\Win\src\server\worldserver\worldserver.dir\Release\BuildLog.htm"

3>worldserver - 72 error(s), 0 warning(s)

4>------ Skipped Build: Project: INSTALL, Configuration: Release Win32 ------

4>Project not selected to build for this solution configuration 

========== Build: 2 succeeded, 1 failed, 11 up-to-date, 1 skipped ==========


Please help

Link to comment
Share on other sites

1) install OpenSSL

2) install MYsql

3) delete compile folder

enter into Cmake

do not touch settings

generate project

compile.

*last trinity changests: compile success

https://github.com/TrinityCore/TrinityCore/commit/721f2f999eb77f493d18f173ad2b21b05d4d6abb

Link to comment
Share on other sites

1) install OpenSSL

2) install MYsql

3) delete compile folder

enter into Cmake

do not touch settings

generate project

compile.

*last trinity changests: compile success

https://github.com/T...d2b21b05d4d6abb

Those errors don't indicate that OpenSSL or MySQL are missing. The OP just needs to clean the build

before buildng it. If the libraries were missing, the error messages would in fact say so.

Link to comment
Share on other sites

Hiho,

I have a not so funny problem with my core:

I have added a full script for algalon in ulduar. I thought I only have to delete the old script and paste the new. allyright i've done it. i have run cmake, and start compiling. But every try i got this error:

13>LINK : fatal error LNK1181: Eingabedatei "..\scripts\Release\scripts.lib" kann nicht geöffnet werden.

here the boss_algalon.cpp script, I gonna try to compile:

/*

 * Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/>

 *

 * This program is free software; you can redistribute it and/or modify it

 * under the terms of the GNU General Public License as published by the

 * Free Software Foundation; either version 2 of the License, or (at your

 * option) any later version.

 *

 * This program is distributed in the hope that it will be useful, but WITHOUT

 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or

 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for

 * more details.

 *

 * You should have received a copy of the GNU General Public License along

 * with this program. If not, see <http://www.gnu.org/licenses/>.

 */


#include "ScriptPCH.h"

#include "ulduar.h"


enum Spells

{

    SPELL_ASCEND                    = 64487,

    SPELL_BERSERK                   = 47008,

    SPELL_BIG_BANG_10               = 64443,

    SPELL_BIG_BANG_25               = 64584,

    SPELL_COSMIC_SMASH_10           = 62301,

    SPELL_COSMIC_SMASH_25           = 64598,

    SPELL_PHASE_PUNCH               = 64412,

    SPELL_PHASE_PUNCH_PHASE         = 64417,

    SPELL_QUANTUM_STRIKE_10         = 64395,

    SPELL_QUANTUM_STRIKE_25         = 64592,

    SPELL_BLACK_HOLE_CREDIT         = 65312,

    SPELL_BLACK_HOLE_EXPLOSION_10   = 64122,

    SPELL_BLACK_HOLE_EXPLOSION_25   = 65108,

    SPELL_BLACK_HOLE_SPAWN_VISUAL   = 62003,

    SPELL_BLACK_HOLE_STATE          = 64135,

    SPELL_BLACK_HOLE_TRIGGER        = 62185,

    SPELL_BLACK_HOLE_PHASE          = 62168,

    SPELL_DESPAWN_BLACK_HOLE        = 64391,

    SPELL_ARCANE_BARAGE_10          = 64599,

    SPELL_ARCANE_BARAGE_25          = 64607,


    SPELL_VOID_ZONE_VISUAL          = 64469,

    SPELL_DUAL_WIELD                = 42459,

    SPELL_BOSS_FINISHED             = 65184,

};


enum Creatures

{

    CREATURE_COLLAPSING_STAR        = 32955,

    CREATURE_BLACK_HOLE             = 32953,

    CREATURE_LIVING_CONSTELLATION   = 33052,

    CREATURE_DARK_MATTER            = 33089,

    CREATURE_AZEROTH                = 34246,

    CREATURE_COSMIC_SMASH_TRIGGER   = 33104,

    CREATURE_COSMIC_SMASH_TARGET    = 33105

};


enum Yells

{

    SAY_AGGRO                                   = -1603000,

    SAY_SLAY_1                                  = -1603001,

    SAY_SLAY_2                                  = -1603002,

    SAY_ENGAGED_FOR_FIRST_TIME                  = -1603003,

    SAY_PHASE_2                                 = -1603004,

    SAY_SUMMON_COLLAPSING_STAR                  = -1603005,

    SAY_DEATH_1                                 = -1603006,

    SAY_DEATH_2                                 = -1603007,

    SAY_DEATH_3                                 = -1603008,

    SAY_DEATH_4                                 = -1603009,

    SAY_DEATH_5                                 = -1603010,

    SAY_BERSERK                                 = -1603011,

    SAY_BIG_BANG_1                              = -1603012,

    SAY_BIG_BANG_2                              = -1603013,

    SAY_TIMER_1                                 = -1603014,

    SAY_TIMER_2                                 = -1603015,

    SAY_TIMER_3                                 = -1603016,

    SAY_SUMMON_1                                = -1603017,

    SAY_SUMMON_2                                = -1603018,

    SAY_SUMMON_3                                = -1603019,

};


enum Events

{

    EVENT_NONE,

    EVENT_ASCEND,

    EVENT_BERSERK,

    EVENT_BIGBANG,

    EVENT_COSMICSMASH,

    EVENT_PHASEPUNCH,

    EVENT_QUANTUMSTRIKE,

    EVENT_COLLAPSINGSTAR,

    EVENT_LIVINGCONSTELLATION

};


static Position Locations[]=

{

    {1632.36f, -310.09f, 417.33f, 0.0f},  // room center

    {1632.44f, -301.55f, 417.33f, 0.0f},  // azeroth

    {1632.36f, -310.09f, 385.0f, 0.0f}    // cosmic smash trigger

};


static Position constellationLocations[]=

{

    {1649.30f, -295.34f, 458.13f, 0.0f},

    {1612.22f, -294.84f, 458.13f, 0.0f},

    {1629.95f, -327.90f, 458.13f, 0.0f}

};


class boss_algalon : public CreatureScript

{

public:

    boss_algalon() : CreatureScript("boss_algalon") { }


    CreatureAI* GetAI(Creature* pCreature) const

    {

        return new boss_algalonAI(pCreature);

    }


    struct boss_algalonAI : public BossAI

    {

        boss_algalonAI(Creature* c) : BossAI(c, TYPE_ALGALON)

        {

            summon = false;


            // spell gets triggered from caster, should be triggered from destination?

            SpellEntry* tempSpell;

            tempSpell = GET_SPELL(RAID_MODE(62311, 64596));

            if (tempSpell)

                tempSpell->rangeIndex = 13;


            //tempSpell = GET_SPELL(64597);

            //if (tempSpell)

            //    tempSpell->EffectImplicitTargetA[0] = TARGET_UNIT_NEARBY_ENTRY;

        }


        uint8 starCount;

        uint32 phase;

        uint32 stepTimer;

        uint32 step;

        bool summon;


        void Reset()

        {

            _Reset();


            if (summon)

                me->setFaction(7);


            me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);


            phase = 1;

            stepTimer = 0;

            starCount = 0;


            DoCast(me, SPELL_DUAL_WIELD, true);

        }


        void EnterCombat(Unit* who)

        {

            _EnterCombat();

            me->setFaction(14);


            if (summon)

            {

                me->InterruptSpell(CURRENT_CHANNELED_SPELL);

                DoZoneInCombat();

            }

            else

            {

                me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);

                me->SetReactState(REACT_PASSIVE);

                step = 1;

            }


            events.ScheduleEvent(EVENT_BERSERK, 6*MINUTE*IN_MILLISECONDS);

            events.ScheduleEvent(EVENT_BIGBANG, 90*IN_MILLISECONDS);

            events.ScheduleEvent(EVENT_PHASEPUNCH, 15*IN_MILLISECONDS);

            events.ScheduleEvent(EVENT_QUANTUMSTRIKE, urand(4*IN_MILLISECONDS, 14*IN_MILLISECONDS));

            events.ScheduleEvent(EVENT_COSMICSMASH, 25*IN_MILLISECONDS);

            events.ScheduleEvent(EVENT_COLLAPSINGSTAR, 15*IN_MILLISECONDS);

            events.ScheduleEvent(EVENT_LIVINGCONSTELLATION, 50*IN_MILLISECONDS);

        }


        void FinishEncounter()

        {

            if (instance)

                instance->DoUpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET, SPELL_BOSS_FINISHED);

        }


        void KilledUnit(Unit * /*victim*/)

        {

            DoScriptText(RAND(SAY_SLAY_1, SAY_SLAY_2), me);

        }


        void JumpToNextStep(uint32 timer)

        {

            stepTimer = timer;

            ++step;

        }


        void SummonCollapsingStars()

        {

            DoScriptText(SAY_SUMMON_COLLAPSING_STAR, me);

            for (uint8 i = starCount; i < 4; ++i)

            {

                float x, y, angle;

                angle = float(2 * M_PI * rand_norm());

                x = Locations[0].GetPositionX() + 15.0f * cos(angle);

                y = Locations[0].GetPositionY() + 15.0f * sin(angle);


                if (Creature* collapsingStar = me->SummonCreature(CREATURE_COLLAPSING_STAR, x, y, Locations[0].GetPositionZ(), 0,

                    TEMPSUMMON_CORPSE_TIMED_DESPAWN, 3*IN_MILLISECONDS))

                {

                    ++starCount;

                    collapsingStar->SetReactState(REACT_PASSIVE);

                    collapsingStar->GetMotionMaster()->MoveRandom(20.0f);

                    collapsingStar->SetInCombatWithZone();

                }

            }

        }


        void SummonLivingConstallations()

        {

            for (uint8 i = 0; i < 3; ++i)

            {

                if (Creature* livingConstellation = me->SummonCreature(CREATURE_LIVING_CONSTELLATION, constellationLocations[i],

                    TEMPSUMMON_CORPSE_TIMED_DESPAWN, 1*IN_MILLISECONDS))

                {

                    livingConstellation->SetInCombatWithZone();

                    if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))

                        livingConstellation->AI()->AttackStart(target);

                }

            }

        }


        void JustSummoned(Creature* summon)

        {

            summons.Summon(summon);

        }


        void SummonedCreatureDies(Creature* summon, Unit* /*killer*/)

        {

            switch (summon->GetEntry())

            {

                case CREATURE_COLLAPSING_STAR:

                    --starCount;

                    me->SummonCreature(CREATURE_BLACK_HOLE, summon->GetPositionX(), summon->GetPositionY(), summon->GetPositionZ());

                    break;

                default:

                    break;

            }

        }


        void SpellHitTarget(Unit* target, const SpellEntry* spell)

        {

            if (spell->Id == SPELL_PHASE_PUNCH)

                if (Aura* phasePunch = target->GetAura(SPELL_PHASE_PUNCH))

                    if (phasePunch->GetStackAmount() > 4)

                    {

                        target->CastSpell(target, SPELL_PHASE_PUNCH_PHASE, true);

                        target->CombatStop();

                        target->getHostileRefManager().deleteReferences();

                    }

        }


        void UpdateAI(const uint32 diff)

        {

            if (!UpdateVictim())

                return;


            if (phase == 1 && HealthBelowPct(20))

            {

                phase = 2;

                DoScriptText(SAY_PHASE_2, me);

                summons.DespawnAll();

                events.CancelEvent(EVENT_COLLAPSINGSTAR);

                events.CancelEvent(EVENT_LIVINGCONSTELLATION);

                //SummonUnstableBlackHoles();

            }


            if (HealthBelowPct(2))

            {

                me->SummonGameObject(GO_GIFT_OF_THE_OBSERVER, 1634.258667f, -295.101166f,417.321381f,0,0,0,0,0,0);


                // All of them. or random?

                DoScriptText(SAY_DEATH_1, me);

                DoScriptText(SAY_DEATH_2, me);

                DoScriptText(SAY_DEATH_3, me);

                DoScriptText(SAY_DEATH_4, me);

                DoScriptText(SAY_DEATH_5, me);


                me->DisappearAndDie();

                _JustDied();


                return;

            }


            if (!summon)

            {

                if (stepTimer <= diff)

                {

                    switch (step)

                    {

                        case 1:

                            DoScriptText(SAY_SUMMON_1, me);

                            JumpToNextStep(7500);

                            break;

                        case 2:

                            DoScriptText(SAY_SUMMON_2, me);

                            JumpToNextStep(6000);

                            break;

                        case 3:

                            DoScriptText(SAY_SUMMON_3, me);

                            JumpToNextStep(11000);

                            break;

                        case 4:

                            DoScriptText(SAY_ENGAGED_FOR_FIRST_TIME, me);

                            JumpToNextStep(11000);

                            break;

                        case 5:

                            DoScriptText(SAY_AGGRO, me);

                            JumpToNextStep(7000);

                            break;

                        case 6:

                            me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);

                            me->SetReactState(REACT_AGGRESSIVE);

                            summon = true;

                            break;

                    }

                } else stepTimer -= diff;

                return;

            }


            _DoAggroPulse(diff);

            events.Update(diff);


            if (me->HasUnitState(UNIT_STAT_CASTING))

                return;


            while (uint32 eventId = events.ExecuteEvent())

            {

                switch (eventId)

                {

                    case EVENT_BIGBANG:

                        DoScriptText(RAND(SAY_BIG_BANG_1, SAY_BIG_BANG_2), me);

                        DoCast(me->getVictim(), RAID_MODE(SPELL_BIG_BANG_10, SPELL_BIG_BANG_25));

                        events.ScheduleEvent(EVENT_BIGBANG, 90*IN_MILLISECONDS);

                        break;

                    case EVENT_PHASEPUNCH:

                        DoCast(me->getVictim(), SPELL_PHASE_PUNCH, true);

                        events.ScheduleEvent(EVENT_PHASEPUNCH, 15*IN_MILLISECONDS);

                        break;

                    case EVENT_QUANTUMSTRIKE:

                        DoCast(me->getVictim(), RAID_MODE(SPELL_QUANTUM_STRIKE_10, SPELL_QUANTUM_STRIKE_25));

                        events.ScheduleEvent(EVENT_QUANTUMSTRIKE, urand(4*IN_MILLISECONDS, 14*IN_MILLISECONDS));

                        break;

                    case EVENT_COSMICSMASH:

                        DoCast(SelectTarget(SELECT_TARGET_RANDOM, 0), RAID_MODE(SPELL_COSMIC_SMASH_10, SPELL_COSMIC_SMASH_25));

                        events.ScheduleEvent(EVENT_COSMICSMASH, 25*IN_MILLISECONDS);

                        break;

                    case EVENT_COLLAPSINGSTAR:

                        SummonCollapsingStars();

                        events.ScheduleEvent(EVENT_COLLAPSINGSTAR, 45*IN_MILLISECONDS);

                        break;

                    case EVENT_LIVINGCONSTELLATION:

                        SummonLivingConstallations();

                        events.ScheduleEvent(EVENT_LIVINGCONSTELLATION, 50*IN_MILLISECONDS);

                        break;

                    case EVENT_BERSERK:

                        DoScriptText(SAY_BERSERK, me);

                        DoCast(me, SPELL_BERSERK, true);

                        events.ScheduleEvent(EVENT_ASCEND, 3*IN_MILLISECONDS);

                        break;

                    case EVENT_ASCEND:

                        DoCast(me, SPELL_ASCEND);

                        events.ScheduleEvent(EVENT_ASCEND, 10*IN_MILLISECONDS);

                        break;

                    default:

                        break;

                }

            }


            DoMeleeAttackIfReady();

            EnterEvadeIfOutOfCombatArea(diff);

        }

    };

};


class mob_collapsing_star : public CreatureScript

{

public:

    mob_collapsing_star() : CreatureScript("mob_collapsing_star") { }


    CreatureAI* GetAI(Creature* pCreature) const

    {

        return new mob_collapsing_starAI(pCreature);

    }


    struct mob_collapsing_starAI : public ScriptedAI

    {

        mob_collapsing_starAI(Creature* pCreature) : ScriptedAI(pCreature) { }


        uint32 loseHealthTimer;


        void Reset()

        {

            loseHealthTimer = 1*IN_MILLISECONDS;

        }


        void JustDied(Unit * /*killer*/)

        {

            DoCast(SPELL_BLACK_HOLE_CREDIT);

            DoCast(me, RAID_MODE(SPELL_BLACK_HOLE_EXPLOSION_10, SPELL_BLACK_HOLE_EXPLOSION_25), true);

        }


        void UpdateAI(const uint32 diff)

        {

            if (loseHealthTimer <= diff)

            {

                me->DealDamage(me, me->CountPctFromMaxHealth(1)); 

                loseHealthTimer = 1*IN_MILLISECONDS;

            } else loseHealthTimer -= diff;

        }

    };

};


class npc_living_constellation : public CreatureScript

{

public:

    npc_living_constellation() : CreatureScript("npc_living_constellation") { }


    CreatureAI* GetAI(Creature* pCreature) const

    {

        return new npc_living_constellationAI(pCreature);

    }


    struct npc_living_constellationAI : public ScriptedAI

    {

        npc_living_constellationAI(Creature* pCreature) : ScriptedAI(pCreature) { }


        uint32 arcaneBarrageTimer;


        void Reset()

        {

            me->SetFlying(true);

            me->SetSpeed(MOVE_FLIGHT, 0.7f);

            arcaneBarrageTimer = urand(5*IN_MILLISECONDS, 10*IN_MILLISECONDS);

        }


        void MoveInLineOfSight(Unit* who)

        {

            ScriptedAI::MoveInLineOfSight(who);


            if (who->GetTypeId() != TYPEID_UNIT)

                return;


            if (who->GetEntry() == CREATURE_BLACK_HOLE && who->GetDistance(me) < 5.0f)

            {

                who->ToCreature()->CastSpell(who, SPELL_DESPAWN_BLACK_HOLE, true);

                who->ToCreature()->ForcedDespawn(1*IN_MILLISECONDS);

                me->DealDamage(me, me->GetHealth());

            }

        }


        void UpdateAI(const uint32 diff)

        {

            if (arcaneBarrageTimer <= diff)

            {

                DoCast(RAID_MODE(SPELL_ARCANE_BARAGE_10, SPELL_ARCANE_BARAGE_25));

                arcaneBarrageTimer = 5*IN_MILLISECONDS;

            } else arcaneBarrageTimer -= diff;

        }

    };

};


class npc_black_hole : public CreatureScript

{

public:

    npc_black_hole() : CreatureScript("npc_black_hole") { }


    CreatureAI* GetAI(Creature* pCreature) const

    {

        return new npc_black_holeAI(pCreature);

    }


    struct npc_black_holeAI : public Scripted_NoMovementAI

    {

        npc_black_holeAI(Creature* pCreature) : Scripted_NoMovementAI(pCreature)

        {

            DoCast(me, SPELL_BLACK_HOLE_SPAWN_VISUAL, true);

            DoCast(me, SPELL_BLACK_HOLE_STATE, true);

            DoCast(me, SPELL_BLACK_HOLE_TRIGGER, true);

            DoCast(me, SPELL_VOID_ZONE_VISUAL, true);

            me->setFaction(14);

            me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE);

            me->SetReactState(REACT_PASSIVE);

            me->SetInCombatWithZone();

        }


        void SpellHitTarget(Unit* target, const SpellEntry* spell)

        {

            if (spell->Id == SPELL_BLACK_HOLE_PHASE)

            {

                target->CombatStop();

                target->getHostileRefManager().deleteReferences();

            }

        }

    };

};


class go_planetarium_access : public GameObjectScript

{

public:

    go_planetarium_access() : GameObjectScript("go_planetarium_access") { }


    bool OnGossipHello(Player* player, GameObject* go)

    {

        InstanceScript* pInstance = go->GetInstanceScript();


        if (player->HasItemCount(45796, 1) || player->HasItemCount(45798, 1))

        {

            pInstance->SetBossState(TYPE_ALGALON, SPECIAL);

            go->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_UNK1);

            go->SetGoState(GO_STATE_ACTIVE);

        }

        return true;

    }

};


// cast spell effects on same target

class spell_cosmic_smash : public SpellScriptLoader

{

    public:

        spell_cosmic_smash() : SpellScriptLoader("spell_cosmic_smash") { }


        class spell_cosmic_smash_SpellScript : public SpellScript

        {

            PrepareSpellScript(spell_cosmic_smash_SpellScript);


            void FilterTargetsInitial(std::list<Unit*>& unitList)

            {

                sharedUnitList = unitList;

            }


            void FilterTargetsSubsequent(std::list<Unit*>& unitList)

            {

                unitList = sharedUnitList;

            }


            void Register()

            {

                OnUnitTargetSelect += SpellUnitTargetFn(spell_cosmic_smash_SpellScript::FilterTargetsInitial, EFFECT_0, TARGET_UNIT_AREA_ENEMY_SRC);

                OnUnitTargetSelect += SpellUnitTargetFn(spell_cosmic_smash_SpellScript::FilterTargetsSubsequent, EFFECT_1, TARGET_UNIT_AREA_ENEMY_SRC);

            }


            std::list<Unit*> sharedUnitList;

        };


        SpellScript* GetSpellScript() const

        {

            return new spell_cosmic_smash_SpellScript();

        }

};


// set trigger summon location

class spell_cosmic_smash_summon_trigger : public SpellScriptLoader

{

    public:

        spell_cosmic_smash_summon_trigger() : SpellScriptLoader("spell_cosmic_smash_summon_trigger") { }


        class spell_cosmic_smash_summon_trigger_SpellScript : public SpellScript

        {

            PrepareSpellScript(spell_cosmic_smash_summon_trigger_SpellScript);


            void HandleScript(SpellEffIndex effIndex)

            {

                PreventHitDefaultEffect(effIndex);

                GetCaster()->SummonCreature(CREATURE_COSMIC_SMASH_TRIGGER, Locations[2], TEMPSUMMON_TIMED_DESPAWN, 7900);

            }


            void Register()

            {

                OnEffect += SpellEffectFn(spell_cosmic_smash_summon_trigger_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SUMMON);

            }

        };


        SpellScript* GetSpellScript() const

        {

            return new spell_cosmic_smash_summon_trigger_SpellScript();

        }

};


// set target summon location

class spell_cosmic_smash_summon_target : public SpellScriptLoader

{

    public:

        spell_cosmic_smash_summon_target() : SpellScriptLoader("spell_cosmic_smash_summon_target") { }


        class spell_cosmic_smash_summon_target_SpellScript : public SpellScript

        {

            PrepareSpellScript(spell_cosmic_smash_summon_target_SpellScript);


            void HandleScript(SpellEffIndex effIndex)

            {

                PreventHitDefaultEffect(effIndex);

                GetCaster()->SummonCreature(CREATURE_COSMIC_SMASH_TARGET, GetCaster()->GetPositionX(), GetCaster()->GetPositionY(),

                    GetCaster()->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_DESPAWN, 10*IN_MILLISECONDS);

            }


            void Register()

            {

                OnEffect += SpellEffectFn(spell_cosmic_smash_summon_target_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SUMMON);

            }

        };


        SpellScript* GetSpellScript() const

        {

            return new spell_cosmic_smash_summon_target_SpellScript();

        }

};


// set damage based on proximity

class spell_cosmic_smash_dmg : public SpellScriptLoader

{

    public:

        spell_cosmic_smash_dmg() : SpellScriptLoader("spell_cosmic_smash_dmg") { }


        class spell_cosmic_smash_dmg_SpellScript : public SpellScript

        {

            PrepareSpellScript(spell_cosmic_smash_dmg_SpellScript);


            void CalcDamage(SpellEffIndex /*effIndex*/)

            {

                if (!GetHitUnit() || !GetTargetDest())

                    return;


                float distance = GetHitUnit()->GetExactDist2d(GetTargetDest());

                if (distance < 3.4f)

                    return;


                SetHitDamage(int32(GetHitDamage() * 10.0f / pow(distance, 1.9f)));

            }


            void Register()

            {

                OnEffect += SpellEffectFn(spell_cosmic_smash_dmg_SpellScript::CalcDamage, EFFECT_0, SPELL_EFFECT_SCHOOL_DAMAGE);

            }

        };


        SpellScript* GetSpellScript() const

        {

            return new spell_cosmic_smash_dmg_SpellScript();

        }

};


void AddSC_boss_algalon()

{

    new boss_algalon();

    new mob_collapsing_star();

    new npc_living_constellation();

    new npc_black_hole();

    new go_planetarium_access();

    new spell_cosmic_smash();

    new spell_cosmic_smash_summon_trigger();

    new spell_cosmic_smash_summon_target();

    new spell_cosmic_smash_dmg();

}

Link to comment
Share on other sites

 tempSpell = GET_SPELL(RAID_MODE(62311, 64596));
if (tempSpell)
tempSpell->rangeIndex = 13;
...
void Reset()
{
if (summon)
me->setFaction(7);
...
void EnterCombat(Unit* who)
{
me->setFaction(14);
[/code]

*giggles*

[size="1"]Do you really need such scripts in your server?[/size]

Anyway... clear/wipe/delete CMake folder; re-run CMake; re-build

Link to comment
Share on other sites

so i have it understand:

1.) rum cmake and compile the core normaly

2.) after compile delete the "CmakeFiles" in the build folder

3.)add the algalon script in the ulduar folder of the source folder

4.) run cmake again and generate codes again

5.) start compiling again

6.) the wordlsevrer.exe in the release folder got then the script included ?

Link to comment
Share on other sites

hmmm i have generated code with cmake, than i have added the script in the sourcefolder, i have deleted all in the cmake build directory, i have rerun cmake to generate the new files have started compiling but every time 12 succes 2errors libs and authserver builded but worldserver is missing every time

i found 2 error messages at the code:

10>..\..\..\..\mike2011lp-DreamCore-132f92b\src\server\scripts\Northrend\Ulduar\ulduar\boss_algalon.cpp(285): error C2065: 'GO_GIFT_OF_THE_OBSERVER': nichtdeklarierter Bezeichner

10>..\..\..\..\mike2011lp-DreamCore-132f92b\src\server\scripts\Northrend\Ulduar\ulduar\boss_algalon.cpp(336): error C3861: "_DoAggroPulse": Bezeichner wurde nicht gefunden.

and at the end:

13>LINK : fatal error LNK1181: Eingabedatei "..\scripts\Release\scripts.lib" kann nicht geöffnet werden.

14>------ Erstellen gestartet: Projekt: ALL_BUILD, Konfiguration: Release Win32 ------

14> Building Custom Rule C:/Users/Game Profil/Desktop/mike2011lp-DreamCore-132f92b/CMakeLists.txt

14> CMake does not need to re-run because C:\Users\Game Profil\Desktop\nyanynacore\CMakeFiles\generate.stamp is up-to-date.

15>------ Erstellen übersprungen: Projekt: INSTALL, Konfiguration: Release Win32 ------

15>Für diese Projektmappenkonfiguration wurde kein zu erstellendes Projekt ausgewählt.

========== Erstellen: 12 erfolgreich, Fehler bei 2, 0 aktuell, 1 übersprungen ==========

Link to comment
Share on other sites

I found one error but have no clue about the second....

Under the includes, add this line...

#include "ScriptPCH.h"

#include "ulduar.h"


#define GAMEOBJECT_GIVE_OF_THE_OBSERVER 194821  // <---- this line was missing. I just copied it from the original script.


enum Spells

{
Then around line 285 change this
me->SummonGameObject(GO_GIFT_OF_THE_OBSERVER, 1634.258667f, -295.101166f,417.321381f,0,0,0,0,0,0);
to this...
me->SummonGameObject(GAMEOBJECT_GIVE_OF_THE_OBSERVER, 1634.258667f, -295.101166f,417.321381f,0,0,0,0,0,0);

I have no idea how to fix the _DoAggroPulse(diff); error.

Link to comment
Share on other sites

the 2nd error is that the sign for _DoAggroPulse isn't found so i think the sign must be added but no idea where and how :D

oke i have dropped the _DoAggroPulse script, no compile error but now lets see that the script will work :D

Update: hmpf i need the sql for algalon and the planetarium cause he said no aggro sounds etc cause missing texts and object i think

Link to comment
Share on other sites

hey everybody

i followed the instructions at http://www.trinitycore.org/w/How-to:Linux step by step but when im trying to compile the core i get this error :

[  8%] Built target gsoap

Scanning dependencies of target revision.h

[  8%] Built target revision.h

Scanning dependencies of target shared_pch_dephelp

[  9%] Building CXX object src/server/shared/CMakeFiles/shared_pch_dephelp.dir/shared_pch_dephelp.cxx.o

In file included from /root/TrinityCore/src/server/shared/Common.h:62,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Define.h:24:29: error: ace/Basic_Types.h: No such file or directory

/root/TrinityCore/src/server/shared/Define.h:25:28: error: ace/ACE_export.h: No such file or directory

In file included from /root/TrinityCore/src/server/shared/Common.h:88,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:22:25: error: ace/Guard_T.h: No such file or directory

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:23:30: error: ace/Thread_Mutex.h: No such file or directory

In file included from /root/TrinityCore/src/server/shared/Debugging/Errors.h:23,

                 from /root/TrinityCore/src/server/shared/Threading/LockedQueue.h:26,

                 from /root/TrinityCore/src/server/shared/Common.h:88,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Logging/Log.h:23:27: error: ace/Singleton.h: No such file or directory

In file included from /root/TrinityCore/src/server/shared/Threading/LockedQueue.h:26,

                 from /root/TrinityCore/src/server/shared/Common.h:88,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Debugging/Errors.h:24:29: error: ace/Stack_Trace.h: No such file or directory

In file included from /root/TrinityCore/src/server/shared/Common.h:89,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Threading/Threading.h:22:24: error: ace/Thread.h: No such file or directory

/root/TrinityCore/src/server/shared/Threading/Threading.h:23:23: error: ace/TSS_T.h: No such file or directory

/root/TrinityCore/src/server/shared/Threading/Threading.h:24:27: error: ace/Atomic_Op.h: No such file or directory

In file included from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Common.h:93:33: error: ace/RW_Thread_Mutex.h: No such file or directory

In file included from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:5,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Database/DatabaseWorker.h:21:22: error: ace/Task.h: No such file or directory

/root/TrinityCore/src/server/shared/Database/DatabaseWorker.h:22:34: error: ace/Activation_Queue.h: No such file or directory

In file included from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:6,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Database/SQLOperation.h:21:32: error: ace/Method_Request.h: No such file or directory

In file included from /root/TrinityCore/src/server/shared/Database/SQLOperation.h:24,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:6,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Database/QueryResult.h:22:37: error: ace/Refcounted_Auto_Ptr.h: No such file or directory

In file included from /root/TrinityCore/src/server/shared/Common.h:62,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Define.h:73: error: 'ACE_INT64' does not name a type

/root/TrinityCore/src/server/shared/Define.h:74: error: 'ACE_INT32' does not name a type

/root/TrinityCore/src/server/shared/Define.h:75: error: 'ACE_INT16' does not name a type

/root/TrinityCore/src/server/shared/Define.h:76: error: 'ACE_INT8' does not name a type

/root/TrinityCore/src/server/shared/Define.h:77: error: 'ACE_UINT64' does not name a type

/root/TrinityCore/src/server/shared/Define.h:78: error: 'ACE_UINT32' does not name a type

/root/TrinityCore/src/server/shared/Define.h:79: error: 'ACE_UINT16' does not name a type

/root/TrinityCore/src/server/shared/Define.h:80: error: 'ACE_UINT8' does not name a type

In file included from /root/TrinityCore/src/server/shared/Debugging/Errors.h:23,

                 from /root/TrinityCore/src/server/shared/Threading/LockedQueue.h:26,

                 from /root/TrinityCore/src/server/shared/Common.h:88,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Logging/Log.h:104: error: 'ACE_Singleton' is not a template

/root/TrinityCore/src/server/shared/Logging/Log.h:104: error: 'ACE_Thread_Mutex' was not declared in this scope

/root/TrinityCore/src/server/shared/Logging/Log.h:128: error: 'uint32' has not been declared

/root/TrinityCore/src/server/shared/Logging/Log.h:133: error: 'uint32' has not been declared

/root/TrinityCore/src/server/shared/Logging/Log.h:133: error: 'uint32' has not been declared

/root/TrinityCore/src/server/shared/Logging/Log.h:142: error: 'uint32' has not been declared

/root/TrinityCore/src/server/shared/Logging/Log.h:154: error: expected ';' before '(' token

/root/TrinityCore/src/server/shared/Logging/Log.h:175: error: 'uint32' does not name a type

/root/TrinityCore/src/server/shared/Logging/Log.h:187: error: 'uint8' does not name a type

/root/TrinityCore/src/server/shared/Logging/Log.h:188: error: 'uint8' does not name a type

/root/TrinityCore/src/server/shared/Logging/Log.h:189: error: 'uint8' does not name a type

/root/TrinityCore/src/server/shared/Logging/Log.h: In member function 'void Log::SetRealmID(int)':

/root/TrinityCore/src/server/shared/Logging/Log.h:142: error: 'realm' was not declared in this scope

/root/TrinityCore/src/server/shared/Logging/Log.h: In member function 'bool Log::IsOutDebug() const':

/root/TrinityCore/src/server/shared/Logging/Log.h:144: error: 'm_logLevel' was not declared in this scope

/root/TrinityCore/src/server/shared/Logging/Log.h:144: error: 'm_logFileLevel' was not declared in this scope

In file included from /root/TrinityCore/src/server/shared/Common.h:88,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h: In member function 'bool ACE_Based::LockedQueue<T, LockType, StorageType>::next(T&)':

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:72: error: expected primary-expression before ',' token

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:72: error: 'g' was not declared in this scope

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h: In member function 'bool ACE_Based::LockedQueue<T, LockType, StorageType>::next(T&, Checker&)':

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:88: error: 'ACE_Guard' was not declared in this scope

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:88: error: expected primary-expression before '>' token

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h: In member function 'bool ACE_Based::LockedQueue<T, LockType, StorageType>::cancelled()':

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:124: error: 'ACE_Guard' was not declared in this scope

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:124: error: expected primary-expression before '>' token

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h: In member function 'void ACE_Based::LockedQueue<T, LockType, StorageType>::pop_front()':

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:143: error: expected primary-expression before ',' token

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:143: error: 'g' was not declared in this scope

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h: In member function 'bool ACE_Based::LockedQueue<T, LockType, StorageType>::empty()':

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:150: error: expected primary-expression before ',' token

/root/TrinityCore/src/server/shared/Threading/LockedQueue.h:150: error: 'g' was not declared in this scope

In file included from /root/TrinityCore/src/server/shared/Common.h:89,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Threading/Threading.h: At global scope:

/root/TrinityCore/src/server/shared/Threading/Threading.h:43: error: ISO C++ forbids declaration of 'ACE_Atomic_Op' with no type

/root/TrinityCore/src/server/shared/Threading/Threading.h:43: error: expected ';' before '<' token

/root/TrinityCore/src/server/shared/Threading/Threading.h: In member function 'void ACE_Based::Runnable::incReference()':

/root/TrinityCore/src/server/shared/Threading/Threading.h:36: error: 'm_refs' was not declared in this scope

/root/TrinityCore/src/server/shared/Threading/Threading.h: In member function 'void ACE_Based::Runnable::decReference()':

/root/TrinityCore/src/server/shared/Threading/Threading.h:39: error: 'm_refs' was not declared in this scope

/root/TrinityCore/src/server/shared/Threading/Threading.h: At global scope:

/root/TrinityCore/src/server/shared/Threading/Threading.h:86: error: 'ACE_thread_t' does not name a type

/root/TrinityCore/src/server/shared/Threading/Threading.h:87: error: 'ACE_hthread_t' does not name a type

/root/TrinityCore/src/server/shared/Threading/Threading.h:94: error: 'ACE_THR_FUNC_RETURN' does not name a type

/root/TrinityCore/src/server/shared/Threading/Threading.h:96: error: 'ACE_thread_t' does not name a type

/root/TrinityCore/src/server/shared/Threading/Threading.h:97: error: 'ACE_hthread_t' does not name a type

/root/TrinityCore/src/server/shared/Threading/Threading.h:100: error: ISO C++ forbids declaration of 'ACE_TSS' with no type

/root/TrinityCore/src/server/shared/Threading/Threading.h:100: error: expected ';' before '<' token

/root/TrinityCore/src/server/shared/Threading/Threading.h:102: error: 'ThreadStorage' does not name a type

In file included from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:3,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Common.h:179: error: 'uint8' does not name a type

/root/TrinityCore/src/server/shared/Common.h:185: error: 'TOTAL_LOCALES' was not declared in this scope

In file included from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:5,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Database/DatabaseWorker.h:27: error: expected class-name before '{' token

/root/TrinityCore/src/server/shared/Database/DatabaseWorker.h:29: error: expected ')' before '*' token

/root/TrinityCore/src/server/shared/Database/DatabaseWorker.h:37: error: ISO C++ forbids declaration of 'ACE_Activation_Queue' with no type

/root/TrinityCore/src/server/shared/Database/DatabaseWorker.h:37: error: expected ';' before '*' token

/root/TrinityCore/src/server/shared/Database/DatabaseWorker.h: In member function 'int DatabaseWorker::wait()':

/root/TrinityCore/src/server/shared/Database/DatabaseWorker.h:33: error: 'ACE_Task_Base' has not been declared

/root/TrinityCore/src/server/shared/Database/DatabaseWorker.h: In constructor 'DatabaseWorker::DatabaseWorker()':

/root/TrinityCore/src/server/shared/Database/DatabaseWorker.h:36: error: class 'DatabaseWorker' does not have any field named 'ACE_Task_Base'

In file included from /root/TrinityCore/src/server/shared/Database/QueryResult.h:25,

                 from /root/TrinityCore/src/server/shared/Database/SQLOperation.h:24,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:6,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Database/Field.h: At global scope:

/root/TrinityCore/src/server/shared/Database/Field.h:38: error: 'uint8' does not name a type

/root/TrinityCore/src/server/shared/Database/Field.h:55: error: 'int8' does not name a type

/root/TrinityCore/src/server/shared/Database/Field.h:72: error: 'uint16' does not name a type

/root/TrinityCore/src/server/shared/Database/Field.h:89: error: 'int16' does not name a type

/root/TrinityCore/src/server/shared/Database/Field.h:106: error: 'uint32' does not name a type

/root/TrinityCore/src/server/shared/Database/Field.h:123: error: 'int32' does not name a type

/root/TrinityCore/src/server/shared/Database/Field.h:140: error: 'uint64' does not name a type

/root/TrinityCore/src/server/shared/Database/Field.h:157: error: 'int64' does not name a type

/root/TrinityCore/src/server/shared/Database/Field.h:249: error: 'uint32' does not name a type

/root/TrinityCore/src/server/shared/Database/Field.h:260: error: 'uint32' has not been declared

/root/TrinityCore/src/server/shared/Database/Field.h: In member function 'bool Field::GetBool() const':

/root/TrinityCore/src/server/shared/Database/Field.h:35: error: 'GetUInt8' was not declared in this scope

/root/TrinityCore/src/server/shared/Database/Field.h: In member function 'std::string Field::GetString() const':

/root/TrinityCore/src/server/shared/Database/Field.h:233: error: 'const struct Field::<anonymous>' has no member named 'length'

/root/TrinityCore/src/server/shared/Database/Field.h: In static member function 'static size_t Field::SizeForType(MYSQL_FIELD*)':

/root/TrinityCore/src/server/shared/Database/Field.h:314: error: 'ACE_Singleton' was not declared in this scope

/root/TrinityCore/src/server/shared/Database/Field.h:314: error: expected primary-expression before ',' token

/root/TrinityCore/src/server/shared/Database/Field.h:314: error: 'ACE_Thread_Mutex' was not declared in this scope

/root/TrinityCore/src/server/shared/Database/Field.h:314: error: '::instance' has not been declared

/root/TrinityCore/src/server/shared/Database/Field.h:314: error: 'uint32' was not declared in this scope

In file included from /root/TrinityCore/src/server/shared/Database/SQLOperation.h:24,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:6,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Database/QueryResult.h: At global scope:

/root/TrinityCore/src/server/shared/Database/QueryResult.h:36: error: 'uint64' has not been declared

/root/TrinityCore/src/server/shared/Database/QueryResult.h:36: error: 'uint32' has not been declared

/root/TrinityCore/src/server/shared/Database/QueryResult.h:40: error: 'uint64' does not name a type

/root/TrinityCore/src/server/shared/Database/QueryResult.h:41: error: 'uint32' does not name a type

/root/TrinityCore/src/server/shared/Database/QueryResult.h:44: error: declaration of 'operator[]' as non-function

/root/TrinityCore/src/server/shared/Database/QueryResult.h:44: error: expected ';' before '(' token

/root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:5: error: expected ';' at end of input

/root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:5: error: expected '}' at end of input

In file included from /root/TrinityCore/src/server/shared/Database/SQLOperation.h:24,

                 from /root/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:6,

                 from /root/TrinityCore/src/server/shared/shared_pch_dephelp.cxx:1:

/root/TrinityCore/src/server/shared/Database/QueryResult.h: In member function 'Field* ResultSet::Fetch() const':

/root/TrinityCore/src/server/shared/Database/QueryResult.h:43: error: 'm_currentRow' was not declared in this scope

/root/TrinityCore/src/server/shared/Database/QueryResult.h: At global scope:

/root/TrinityCore/src/server/shared/Database/QueryResult.h:43: error: expected unqualified-id at end of input

make[2]: *** [src/server/shared/CMakeFiles/shared_pch_dephelp.dir/shared_pch_dephelp.cxx.o] Error 1

make[1]: *** [src/server/shared/CMakeFiles/shared_pch_dephelp.dir/all] Error 2

make: *** [all] Error 2

I really don't know what the problem is

I hope i can get some help..

Thanks for your replies.

Edited by Linori
Link to comment
Share on other sites

It starts with

[  9%] Building CXX object src/server/shared/CMakeFiles/shared_pch_dephelp.dir/shared_pch_dephelp.cxx.o

:huh:

sorry i'm not such a specialist like the most of you :D

i pulled TrinityCore revision : 11774 (2d752b974a40)

Edited by Linori
Link to comment
Share on other sites

You seem to be doing something wrong because a lot of files are missing which cause those errors. The main error is " No such file or directory".

Case 1: You don't have full copy of the repo

Case 2: You don't set Cmake Lists settings required to compile the core.

Case 3: Unknown error, perhaps you are just dumb :P

Link to comment
Share on other sites

That isn't a error! :)

But seems that you don't have ACE on your path!

no i thought it was the "last one"

mhm i used git clone git://github.com/TrinityCore/TrinityCore.git

ok thanks i will take a look after ace :)

ok you are right Athena

i used the wrong path

thanks for your help :)

Edited by Linori
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


  • Similar Content

    • By xgamerninjax
      Hello all, first time posting here and it's really got me scratching my head.
      I've compiled everything on my own computer, and then transferred everything to a host computer so the server can stay live. The server was running fine for a month or so and then suddenly it just crashes when it hits "Loading C++ scripts", exiting saying "caught signal 22"
      I tried setting up the host computer from scratch and transferred everything over fresh and it's still happening for some reason. (Note, I can run the server perfectly on my personal pc where I compiled it.)
      Any help would be greatly appreciated, thanks!
      3d7e3a40e2b3+_worldserver.exe_[1-4_15-19-45].dmp 3d7e3a40e2b3+_worldserver.exe_[1-4_15-19-45].txt
    • By Deer_Hunter
      Hello all,
      I just updated from the latest Git 
      Trinity Core REV. ac6baa547376 + 2020-02-21  3.3.5 Branch.
      I'm getting this error after crash.
      Problem signature:
        Problem Event Name:    APPCRASH
        Application Name:    worldserver.exe
        Application Version:    0.0.0.0
        Application Timestamp:    5e50a462
        Fault Module Name:    StackHash_f12f
        Fault Module Version:    6.3.9600.19629
        Fault Module Timestamp:    5e2fdc0d
        Exception Code:    c0000374
        Exception Offset:    PCH_9E_FROM_ntdll+0x0000000000090D0A
        OS Version:    6.3.9600.2.0.0.272.7
        Locale ID:    1033
        Additional Information 1:    f12f
        Additional Information 2:    f12f0934d3e965f73c68e60f20f2cd40
        Additional Information 3:    7595
        Additional Information 4:    7595e4d8d703db9dcd3d2f6ea540e357
      the exception code says its a Heap error,  I'm not sure how to troubleshoot this.
      Thanks
    • By 939h
      Hi,

      The chat channel Lookup for group is not available when a player isn't in a city. I tried to modify the worldserver.conf file with:
      #
      #    Channel.RestrictedLfg
      #        Description: Restrict LookupForGroup channel to characters registered in the LFG tool.
      #        Default:     1 - (Enabled, Allow join to channel only if registered in LFG)
      #                     0 - (Disabled, Allow join to channel in any time)
      Channel.RestrictedLfg = 0

      I restarted the server but it didn't help.

      Thanks
    • By meeek
      Hey, I've been trying to compile from github the core from 6.2.3/6.2.4, I'm well aware its stopped developing. I cannot get it to configure properly in CMake, nor can I obviously build it.
       
      I'd be willing to pay for help and get this working and running. I want to develop my own server on my freetime as a learning project and for entertainment. I can't find any core for WoD, sadly.. Very hard, would appreciate any quick help
       
    • By Probie_Wan_Kenobi
      I believe everything I have done up to this point has been correct. When I go to launch worldserver.exe a console window opens up for a second and closes right away and nothing else seems to have happened. I skipped a head a little in the instructions to see what is left and step 5 seems skippable since I am running this only for this computer and step 6 has me launch to a log in screen which I can not get to. I tried going to the faq but the page was not loading properly so I am forced to post here.
×
×
  • Create New...