Error on compile 3.3.5a

Issue #70 resolved
AS Joao created an issue

Compiling the core 335 with the latest revision (cf72f7cc5c) and using last version patch on Centos as OS (32bit's). Resulted in the following error:

/home/warcraft/335/bots-core/src/server/game/AI/NpcBots/bot_paladin_ai.cpp: In member function ‘virtual void paladin_bot::paladin_botAI::ApplyClassDamageMultiplierMelee(int32&, SpellNonMeleeDamage&, const SpellInfo*, WeaponAttackType, bool&) const’: /home/warcraft/335/bots-core/src/server/game/AI/NpcBots/bot_paladin_ai.cpp:740: error: ‘const class SpellInfo’ has no member named ‘Category’ compilation terminated due to -Wfatal-errors.

Comments (10)

  1. trickerer repo owner

    Replace this "Category" with "GetCategory()" as a tempfix, guys. I cannot update right now

  2. AS Joao reporter

    A new error when compiling the new core.

    /home/warcraft/335/todos-core/src/server/game/AI/NpcBots/bothelper.cpp: In static member function ‘static std::string BotHelper::GetLocaleStringForTextID(std::string&, uint32, int32)’: /home/warcraft/335/todos-core/src/server/game/AI/NpcBots/bothelper.cpp:407: error: ‘LOG_FILTER_PLAYER’ was not declared in this scope

  3. AS Joao reporter

    Since this is a error in the logs I propose to change LOG_FILTER_PLAYER by "scripts" in the code. At least to me let me compile the CORE again without serious errors.

  4. AS Joao reporter

    I found a better place to record the logs instead of being in "scripts" to be in "misc", then remains at your discretion. Like I said before I used the registration of "scripts".

  5. Log in to comment