ZhengPeiRu21 / mod-playerbots

AzerothCore Playerbots Module
MIT License
194 stars 93 forks source link

[ COMPILE ] - Errors when compiling #118

Closed virgo77 closed 1 year ago

virgo77 commented 1 year ago

Hi ZhengPeiRu21, how are you? Today is a special day: I want to try your Modded Core with PlayerBots but I got a bunch of errors when compiling. I don't know if it can help you (or maybe me ^^)

Here are the errors:

[ 16%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/CombatAI.cpp.o
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/AiFactory.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:8:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/AiObjectContext.h:9:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:83:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(keys);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:83:20: note: remove std::move call here
            return std::move(keys);
                   ^~~~~~~~~~    ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:145:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(keys);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:145:20: note: remove std::move call here
            return std::move(keys);
                   ^~~~~~~~~~    ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:217:20: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
            return std::move(std::set<std::string>());
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:217:20: note: remove std::move call here
            return std::move(std::set<std::string>());
                   ^~~~~~~~~~                       ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:231:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(result);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:231:20: note: remove std::move call here
            return std::move(result);
                   ^~~~~~~~~~      ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:245:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(result);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:245:20: note: remove std::move call here
            return std::move(result);
                   ^~~~~~~~~~      ~
[ 16%] Building CXX object modules/CMakeFiles/modules.dir/mod-playerbots/src/ChatHelper.cpp.o
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/AiFactory.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:11:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/PlayerbotAI.h:17:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/PlayerbotTextMgr.h:27:65: warning: field 'm_guid' will be initialized after field 'm_type' [-Wreorder-ctor]
    ChatReplyData(uint32 guid, uint32 type, std::string chat) : m_guid(guid), m_type(type), m_chat(chat) {}
                                                                ^
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatFilter.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:8:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/AiObjectContext.h:9:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:83:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(keys);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:83:20: note: remove std::move call here
            return std::move(keys);
                   ^~~~~~~~~~    ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:145:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(keys);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:145:20: note: remove std::move call here
            return std::move(keys);
                   ^~~~~~~~~~    ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:217:20: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
            return std::move(std::set<std::string>());
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:217:20: note: remove std::move call here
            return std::move(std::set<std::string>());
                   ^~~~~~~~~~                       ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:231:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(result);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:231:20: note: remove std::move call here
            return std::move(result);
                   ^~~~~~~~~~      ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:245:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(result);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:245:20: note: remove std::move call here
            return std::move(result);
                   ^~~~~~~~~~      ~
[ 16%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/GameObjectAI.cpp.o
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/AiFactory.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:15:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/values/SharedValueContext.h:11:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/values/QuestValues.h:9:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/TravelMgr.h:85:9: warning: definition of implicit copy assignment operator for 'WorldPosition' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
        WorldPosition(WorldPosition const& pos) : WorldLocation(pos), visitors(pos.visitors) { }
        ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/TravelMgr.h:371:117: note: in implicit copy assignment operator for 'WorldPosition' first required here
        FindPointCreatureData(WorldPosition point1 = WorldPosition(), float radius1 = 0, uint32 entry1 = 0) { point = point1; radius = radius1; entry = entry1; }
                                                                                                                    ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/AiFactory.cpp:269:12: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
    return std::move(specName);
           ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/AiFactory.cpp:269:12: note: remove std::move call here
    return std::move(specName);
           ^~~~~~~~~~        ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/AiFactory.cpp:681:77: warning: unused parameter 'facade' [-Wunused-parameter]
void AiFactory::AddDefaultDeadStrategies(Player* player, PlayerbotAI* const facade, Engine* deadEngine)
                                                                            ^
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatFilter.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:11:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/PlayerbotAI.h:17:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/PlayerbotTextMgr.h:27:65: warning: field 'm_guid' will be initialized after field 'm_type' [-Wreorder-ctor]
    ChatReplyData(uint32 guid, uint32 type, std::string chat) : m_guid(guid), m_type(type), m_chat(chat) {}
                                                                ^
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:8:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/AiObjectContext.h:9:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:83:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(keys);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:83:20: note: remove std::move call here
            return std::move(keys);
                   ^~~~~~~~~~    ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:145:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(keys);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:145:20: note: remove std::move call here
            return std::move(keys);
                   ^~~~~~~~~~    ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:217:20: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
            return std::move(std::set<std::string>());
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:217:20: note: remove std::move call here
            return std::move(std::set<std::string>());
                   ^~~~~~~~~~                       ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:231:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(result);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:231:20: note: remove std::move call here
            return std::move(result);
                   ^~~~~~~~~~      ~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:245:20: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
            return std::move(result);
                   ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:245:20: note: remove std::move call here
            return std::move(result);
                   ^~~~~~~~~~      ~
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/AiFactory.cpp:5:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/AiFactory.h:8:
In file included from /home/acore/core.modded.playerbots/src/common/Common.h:23:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/memory:65:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_construct.h:88:2: warning: destructor called on non-final 'TalentSpec' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
        __location->~_Tp();
        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_construct.h:138:12: note: in instantiation of function template specialization 'std::destroy_at<TalentSpec>' requested here
      std::destroy_at(__pointer);
           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_construct.h:152:11: note: in instantiation of function template specialization 'std::_Destroy<TalentSpec>' requested here
            std::_Destroy(std::__addressof(*__first));
                 ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_construct.h:182:30: note: in instantiation of function template specialization 'std::_Destroy_aux<false>::__destroy<TalentSpec *>' requested here
        return _Destroy_aux<false>::__destroy(__first, __last);
                                    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/alloc_traits.h:738:7: note: in instantiation of function template specialization 'std::_Destroy<TalentSpec *>' requested here
      _Destroy(__first, __last);
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_vector.h:680:7: note: in instantiation of function template specialization 'std::_Destroy<TalentSpec *, TalentSpec>' requested here
        std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
             ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/Talentspec.h:74:9: note: in instantiation of member function 'std::vector<TalentSpec, std::allocator<TalentSpec>>::~vector' requested here
        TalentPath(uint32 pathId, std::string const pathName, uint32 pathProbability)
        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_construct.h:88:15: note: qualify call to silence this warning
        __location->~_Tp();
                     ^
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatFilter.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:15:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/values/SharedValueContext.h:11:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/values/QuestValues.h:9:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/TravelMgr.h:85:9: warning: definition of implicit copy assignment operator for 'WorldPosition' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
        WorldPosition(WorldPosition const& pos) : WorldLocation(pos), visitors(pos.visitors) { }
        ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/TravelMgr.h:371:117: note: in implicit copy assignment operator for 'WorldPosition' first required here
        FindPointCreatureData(WorldPosition point1 = WorldPosition(), float radius1 = 0, uint32 entry1 = 0) { point = point1; radius = radius1; entry = entry1; }
                                                                                                                    ^
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/AiFactory.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:8:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/AiObjectContext.h:9:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:112:21: warning: delete called on non-final 'UntypedValue' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
                    delete i->second;
                    ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:96:13: note: in instantiation of member function 'NamedObjectContext<UntypedValue>::Clear' requested here
            Clear();
            ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/values/SharedValueContext.h:19:9: note: in instantiation of member function 'NamedObjectContext<UntypedValue>::~NamedObjectContext' requested here
        SharedValueContext() : NamedObjectContext(true)
        ^
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatFilter.cpp:8:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/values/RtiTargetValue.h:16:117: warning: field 'type' will be initialized after base 'TargetValue' [-Wreorder-ctor]
        RtiTargetValue(PlayerbotAI* botAI, std::string const type = "rti", std::string const name = "rti target") : type(type), TargetValue(botAI, name) { }
                                                                                                                    ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatFilter.cpp:166:47: fatal error: no member named 'GetTargetIcon' in 'Group'
                ObjectGuid rtiTarget = group->GetTargetIcon(RtiTargetValue::GetRtiIndex(rti.substr(1)));
                                       ~~~~~  ^
[ 16%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_account.cpp.o
8 warnings and 1 error generated.
make[2]: *** [modules/CMakeFiles/modules.dir/build.make:160: modules/CMakeFiles/modules.dir/mod-playerbots/src/ChatFilter.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 16%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_achievement.cpp.o
[ 16%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/GuardAI.cpp.o
[ 16%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/PassiveAI.cpp.o
11 warnings generated.
[ 16%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/PetAI.cpp.o
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:11:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/PlayerbotAI.h:17:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/PlayerbotTextMgr.h:27:65: warning: field 'm_guid' will be initialized after field 'm_type' [-Wreorder-ctor]
    ChatReplyData(uint32 guid, uint32 type, std::string chat) : m_guid(guid), m_type(type), m_chat(chat) {}
                                                                ^
[ 16%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_arena.cpp.o
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:15:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/values/SharedValueContext.h:11:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/values/QuestValues.h:9:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/TravelMgr.h:85:9: warning: definition of implicit copy assignment operator for 'WorldPosition' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
        WorldPosition(WorldPosition const& pos) : WorldLocation(pos), visitors(pos.visitors) { }
        ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/TravelMgr.h:371:117: note: in implicit copy assignment operator for 'WorldPosition' first required here
        FindPointCreatureData(WorldPosition point1 = WorldPosition(), float radius1 = 0, uint32 entry1 = 0) { point = point1; radius = radius1; entry = entry1; }
                                                                                                                    ^
[ 17%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/ReactorAI.cpp.o
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:263:15: warning: comparison of integers of different signs: 'uint32' (aka 'unsigned int') and 'int' [-Wsign-compare]
        if (i == -1)
            ~ ^  ~~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:268:20: warning: comparison of integers of different signs: 'uint32' (aka 'unsigned int') and 'int' [-Wsign-compare]
        if (endPos == -1)
            ~~~~~~ ^  ~~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:376:13: warning: 49 enumeration values not handled in switch: 'CHAT_MSG_SYSTEM', 'CHAT_MSG_SAY', 'CHAT_MSG_OFFICER'... [-Wswitch]
    switch (chat)
            ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:429:16: warning: unused variable 'entry' [-Wunused-variable]
        uint32 entry = atol(entryC.c_str());     // convert ascii to float
               ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:410:15: warning: comparison of integers of different signs: 'uint32' (aka 'unsigned int') and 'int' [-Wsign-compare]
        if (i == -1)     // break if error
            ~ ^  ~~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:415:20: warning: comparison of integers of different signs: 'uint32' (aka 'unsigned int') and 'int' [-Wsign-compare]
        if (endPos == -1)     //break if error
            ~~~~~~ ^  ~~
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:425:20: warning: comparison of integers of different signs: 'uint32' (aka 'unsigned int') and 'int' [-Wsign-compare]
        if (endPos == -1)     //break if error
            ~~~~~~ ^  ~~
[ 17%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/TotemAI.cpp.o
[ 17%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/CoreAI/UnitAI.cpp.o
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:5:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.h:8:
In file included from /home/acore/core.modded.playerbots/src/common/Common.h:23:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/memory:65:
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_construct.h:88:2: warning: destructor called on non-final 'TalentSpec' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
        __location->~_Tp();
        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_construct.h:138:12: note: in instantiation of function template specialization 'std::destroy_at<TalentSpec>' requested here
      std::destroy_at(__pointer);
           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_construct.h:152:11: note: in instantiation of function template specialization 'std::_Destroy<TalentSpec>' requested here
            std::_Destroy(std::__addressof(*__first));
                 ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_construct.h:182:30: note: in instantiation of function template specialization 'std::_Destroy_aux<false>::__destroy<TalentSpec *>' requested here
        return _Destroy_aux<false>::__destroy(__first, __last);
                                    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/alloc_traits.h:738:7: note: in instantiation of function template specialization 'std::_Destroy<TalentSpec *>' requested here
      _Destroy(__first, __last);
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_vector.h:680:7: note: in instantiation of function template specialization 'std::_Destroy<TalentSpec *, TalentSpec>' requested here
        std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
             ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/Talentspec.h:74:9: note: in instantiation of member function 'std::vector<TalentSpec, std::allocator<TalentSpec>>::~vector' requested here
        TalentPath(uint32 pathId, std::string const pathName, uint32 pathProbability)
        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_construct.h:88:15: note: qualify call to silence this warning
        __location->~_Tp();
                     ^
[ 17%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/ScriptedAI/ScriptedCreature.cpp.o
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/ChatHelper.cpp:7:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/Playerbots.h:8:
In file included from /home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/AiObjectContext.h:9:
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:112:21: warning: delete called on non-final 'UntypedValue' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
                    delete i->second;
                    ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/NamedObjectContext.h:96:13: note: in instantiation of member function 'NamedObjectContext<UntypedValue>::Clear' requested here
            Clear();
            ^
/home/acore/core.modded.playerbots/modules/mod-playerbots/src/strategy/values/SharedValueContext.h:19:9: note: in instantiation of member function 'NamedObjectContext<UntypedValue>::~NamedObjectContext' requested here
        SharedValueContext() : NamedObjectContext(true)
        ^
[ 17%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/ScriptedAI/ScriptedEscortAI.cpp.o
[ 17%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_bag.cpp.o
[ 17%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/cs_ban.cpp.o
[ 17%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/ScriptedAI/ScriptedFollowerAI.cpp.o
16 warnings generated.
make[1]: *** [CMakeFiles/Makefile2:1456: modules/CMakeFiles/modules.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 17%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/ScriptedAI/ScriptedGossip.cpp.o

[ ... ]
[ ... ]
[ ... ]

[ 74%] Linking CXX static library libscripts.a
[ 74%] Built target scripts
make: *** [Makefile:149: all] Error 2

And it stops here. I searched for similar posts and I find this one: https://github.com/ZhengPeiRu21/mod-playerbots/issues/111 Maybe it's the same between us.

I'm on Debian 11.5 x64, up to date. Maybe I'm missing something. I tried to compile from scratch again, and still these errors.

Any idea? See you!

V.

ZhengPeiRu21 commented 1 year ago

Hello virgo77. It seems you are not compiling with the correct branch of the fork. Please make sure you are use the Playerbot branch in the fork - the master is the same as AzerothCore master.

virgo77 commented 1 year ago

this is what i've done

So, to be sure, I deleted entire clone folder and download it again:

went to this page: https://github.com/ZhengPeiRu21/azerothcore-wotlk/tree/Playerbot I clicked on the green button 'code' and copied the line it shows: https://github.com/ZhengPeiRu21/azerothcore-wotlk.git Then: git clone https://github.com/ZhengPeiRu21/azerothcore-wotlk.git

In the 'modules' folder, I download these mods (because I use them ^^):

Then I created the folder 'build' in the root clone core folder Then I launched this command: cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/server.modded.playerbots/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS_BUILD=maps-only -DSCRIPTS=static -DMODULES=static

Next: make -j 6

And, failed again :(

littlehelper1987 commented 1 year ago

Dont use the green Button ;) use this: git clone https://github.com/ZhengPeiRu21/azerothcore-wotlk -b Playerbot

Thats the correct Branch.

virgo77 commented 1 year ago

Hi, thanks for your help... but it's worse :'(

Here, the "make" results: https://pastebin.com/CXD4z1mS You can see that I'm in the good branch

Here, the "compile" results: https://pastebin.com/eYZ5pMVX

Note that I didn't find any install instructions even the ones of the original AC. So, maybe am I missing something?


Lastly, I tried to compile under Windows and all of the requested apps (Boost / CMake / Git + Extensions / etc.) When I try to compile with CMake, I got this error "Error in configuration process, project files may be invalid"

Logs are attached CMakeError.log CMakeOutput.log

any advices? thanks for your help :)

V.

ZhengPeiRu21 commented 1 year ago

Your compile results have many warnings but I do not see any errors.

virgo77 commented 1 year ago

oh? I thought it wasn't normal to get too much 'warnings' like that. I'm not a dev, and I don't know C++ too. So for me it was errors. Not warnings.

ok, I think I'll try to compile again tomorrow, whatever the results, and test it for the week-end.

Thanks ZhengPeiRu21 :)

htc16 commented 1 year ago

Anyway, I think this problem can be closed, even because the mod is being developed and it's better to keep only what really is a problem.

virgo77 commented 1 year ago

Hi HTC16, if you are OK, I will, but only at the end of the Week-End, the time for me to test. I know that it's a totally really fresh port of PlayerBots for AzerothCore, and I think I may "help" as I could in the future if it works, even partially. So please, keep this post open for the next 3 days. I will report here shortly

Thanks a lot.

V.

virgo77 commented 1 year ago

I closed it, as I said. Effectively, these are only warnings, and bots seems to work, but with big issues for some. I saw other posts about this, so I will participate on these other topics. Thanks a lot :)