Vitrex
Moderator
Hello, Emudevs, addicts ...
i edited ObjectMgr.cpp changed stuff here
to
and after recompile, randomly from nowhere these errors showed up.
i said ok lets check why.
GameObject.h (29 line is)
And EventPRocessor.h
line 29 is
What the hell guys? Why how and WHEN?
Basically first thing i did i went to tc core and copy pasted those files from source. and guess what same...
i edited ObjectMgr.cpp changed stuff here
Code:
levelInfo.basehealth = fields[2].GetUInt16();
levelInfo.basemana = fields[3].GetUInt16();
to
Code:
levelInfo.basehealth = fields[2].GetUInt32();
levelInfo.basemana = fields[3].GetUInt32();
and after recompile, randomly from nowhere these errors showed up.
Code:
11> gamePCH.cpp
11>D:\Core\src\common\Utilities\EventProcessor.h(29): error C2143: syntax error : missing ';' before '<class-head>'
11>D:\Core\src\common\Utilities\EventProcessor.h(29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
11>D:\Core\src\server\game\Entities\GameObject\GameObject.h(29): error C2144: syntax error : 'GameObjectAI' should be preceded by ';'
11>D:\Core\src\server\game\Entities\GameObject\GameObject.h(29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
11>D:\Core\src\server\game\Entities\GameObject\GameObject.h(29): error C2086: 'int c' : redefinition
11> D:\Core\src\common\Utilities\EventProcessor.h(28) : see declaration of 'c'
========== Rebuild All: 10 succeeded, 1 failed, 0 skipped ==========
i said ok lets check why.
GameObject.h (29 line is)
Code:
class GameObjectAI;
And EventPRocessor.h
Code:
#include "Define.h"
#include <map>
// Note. All times are in milliseconds here.
class TC_COMMON_API BasicEvent
{
public:
BasicEvent()
{
to_Abort = false;
m_addTime = 0;
m_execTime = 0;
}
virtual ~BasicEvent() { } // override destructor to perform some actions on event removal
// this method executes when the event is triggered
// return false if event does not want to be deleted
// e_time is execution time, p_time is update interval
virtual bool Execute(uint64 /*e_time*/, uint32 /*p_time*/) { return true; }
line 29 is
Code:
{
What the hell guys? Why how and WHEN?
Basically first thing i did i went to tc core and copy pasted those files from source. and guess what same...
Last edited: