当前位置: 首页 > news >正文

安装TrinityCore NPCBot(尝试中)

安装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
 

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

http://www.lryc.cn/news/370698.html

相关文章:

  • Java SE LTS版本商用收费,有那些开源的替代方案?
  • Win系统 锁屏自动暂停音乐
  • ffmpeg实现视频播放 ----------- Javacv
  • 解决更新Android Studio后下载Gradle超时
  • 智能合约漏洞类型
  • 6.7.31 使用端到端训练的基于 EfficientNet 的卷积网络在双视图乳房 X 线摄影中进行乳腺癌诊断
  • 访问方法(反射)
  • 探索Excel的隐藏功能:如何求和以zzz开头的列
  • git:切换到指定的commit
  • js之事件监听以及相关案例
  • pip 安装出现 ERROR: Command errored out with exit status 1: 问题解决
  • 图的遍历介绍
  • 实验二、网络属性设置《计算机网络》
  • 【Python数据魔术】:揭秘类型奥秘,赋能代码创造
  • Android Glide loading Bitmap from RESOURCE_DISK_CACHE slow,cost time≈2 seconds+
  • 微调技术:人工智能领域的神奇钥匙
  • MyBatis 参数上的处理的细节内容
  • 水帘降温水温
  • kafka如何保证消息不丢失
  • 流媒体学习之路(WebRTC)——音频NackTracker优化思路(8)
  • Java基础面试重点-2
  • 【活动文章】通用大模型VS垂直大模型,你更青睐哪一方
  • 记录一个Qt调用插件的问题
  • 9.1 Go 接口的定义
  • 易于上手的requests
  • 【QT Creator软件】解决中文乱码问题
  • 边缘网关在智能制造工厂中的创新应用及效果-天拓四方
  • Django-filter
  • 文字悬停效果
  • [SWPUCTF 2022 新生赛]ez_1zpop(php反序列化之pop链构造)