celguar / mangosbot-bots

Bot AI Core from ike3 for cmangos/mangos classic/tbc/wotlk
https://github.com/cmangos/playerbots
84 stars 40 forks source link

Compiling Error: TBC and Classic #249

Closed fatalieror closed 1 year ago

fatalieror commented 1 year ago

Hey,

after a fresh clone i receive the following errors in TBC and Classic:

Severity Code Description Project File Line Suppression State Error C2681 'Action ': invalid expression type for dynamic_cast Bots C:\Users\AL\Desktop\20220401\20230414\mangos-classic\src\modules\Bots\playerbot\strategy\generic\DungeonMultipliers.cpp Line 11 Error C2872 'Action': ambiguous symbol Bots C:\Users\AL\Desktop\20220401\20230414\mangos-classic\src\modules\Bots\playerbot\strategy\generic\DungeonMultipliers.cpp Line 9
Error C2511 'float ai::PreventMoveAwayFromCreatureOnReachToCastMultiplier::GetValue(Action
)': overloaded member function not found in 'ai::PreventMoveAwayFromCreatureOnReachToCastMultiplier' Bots C:\Users\AL\Desktop\20220401\20230414\mangos-classic\src\modules\Bots\playerbot\strategy\generic\DungeonMultipliers.cpp Line 10

kadeshar commented 1 year ago

Provide cmake, boost and visual studio version. Which branch from mangos and playerbot you used? Which options you checked in cmake?

fatalieror commented 1 year ago

I have been compiling for Months without problems and i cant remember, that i have changed anything. Cmake 3.20.2 boost: 1_69_0 Visual Studio 2017

Ike3: https://github.com/celguar/mangosbot-bots Mangos: https://github.com/celguar/mangos-classic/tree/ike3-bots

BUILD_GAME_SERVER BUILD_IKE3_BOTS BUILD_LOGIN_SERVER BUILD_SCRIPTDEV

kadeshar commented 1 year ago

Try this options and RelWithDebInfo configuration obraz

fatalieror commented 1 year ago

Tried as described with RelWithDebInfo.

image

kadeshar commented 1 year ago

Try rebuild not build (worked for me).

fatalieror commented 1 year ago

So you had the same Problem?

I tried everything. Delete Cache. Rebuild. Re-clone all Repo's. I dont know what else i could do.

What confuses me the most, is that i changed nothing and it suddenly started to fail when they introduced "dungeon Multiplier"

celguar commented 1 year ago

I'm not sure cmangos supports visual studio 2017 anymore. Did you try stock cmangos? I did try 2017 last year and it didn't work for me

celguar commented 1 year ago

Or maybe we added code that only works in later versions of Visual Studio...Can you try with latest code please?

fatalieror commented 1 year ago

Changed to VS2019. Works now. Cheers.