安装TrinityCore NPCBot(尝试中)

发布于:2024-06-13 ⋅ 阅读:(141) ⋅ 点赞:(0)

安装TrinityCore NPCBot

基本安装方法

  1. Follow TrinityCore Installation Guide (https://TrinityCore.info/) to install the server first
  2. Download NPCBots.patch and put it into your TrinityCore folder
  3. Apply the patch using patch -p1 < NPCBots.patch command (creating new files)
  4. (Re)run CMake and (re)build
  5. Merge worldserver.conf.dist into your worldserver.conf file (NPCBot mod settings)
  6. Apply SQL files from /TrinityCore/sql/Bots/ to your DB (files starting with characters_ and world_ go into your characters and world DB respectively):

步骤拆解:

  1. Download NPCBots.patch and put it into your TrinityCore folde
​
git clone https://github.com/trickerer/Trinity-Bots
# or 
wget -c https://github.com/trickerer/Trinity-Bots/archive/refs/heads/master.zip

​

cp NPCBots.patch TrinityCore/ 

  • 2.Apply the patch using patch -p1 < NPCBots.patch command (creating new files)
  • 3.重新编译

cmake ../ -DCMAKE_INSTALL_PREFIX=/home/wow/server

make -j 8 

  • 4.Merge worldserver.conf.dist into your worldserver.conf file (NPCBot mod settings)
  • 5.Apply SQL files from /TrinityCore/sql/Bots/ to your DB (files starting with characters_ and world_ go into your characters and world DB respectively):
1_world_bot_appearance.sql
2_world_bot_extras.sql
3_world_bots.sql
4_world_generate_bot_equips.sql
5_world_botgiver.sql
characters_bots.sql

调试

编译到74%报错error: use of undeclared identifier 'TARGETICONCOUNT'

/home/wow/TrinityCore/src/server/game/AI/NpcBots/bot_ai.cpp:139:23: error: use of undeclared identifier 'TARGETICONCOUNT'
uint8 GroupIconsFlags[TARGETICONCOUNT] =
                      ^
[ 74%] Building CXX object src/server/game/CMakeFiles/game.dir/AI/NpcBots/botdpstracker.cpp.o
/home/wow/TrinityCore/src/server/game/AI/NpcBots/bot_ai.cpp:1315:36: error: use of undeclared identifier 'TARGETICONCOUNT'
            for (uint8 i = 0; i != TARGETICONCOUNT; ++i)
 

/home/wow/TrinityCore/src/server/game/AI/NpcBots/bpet_ai.cpp:1431:32: error: use of undeclared identifier 'TARGETICONCOUNT'
        for (uint8 i = 0; i != TARGETICONCOUNT; ++i)
                               ^
12 errors generated.
make[2]: *** [src/server/game/CMakeFiles/game.dir/build.make:301: src/server/game/CMakeFiles/game.dir/AI/NpcBots/bot_ai.cpp.o] Error 1
2 errors generated.
make[2]: *** [src/server/game/CMakeFiles/game.dir/build.make:765: src/server/game/CMakeFiles/game.dir/AI/NpcBots/bpet_ai.cpp.o] Error 1
2 errors generated.
make[2]: *** [src/server/game/CMakeFiles/game.dir/build.make:717: src/server/game/CMakeFiles/game.dir/AI/NpcBots/botmgr.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1123: src/server/game/CMakeFiles/game.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
 

忘记是前面步骤有缺失,还是其它什么原因了,重新按照手册来一次试试。


网站公告

今日签到

点亮在社区的每一天
去签到