najoast / wow_forum

全栈游戏开发 - 魔兽世界论坛
22 stars 6 forks source link

AzerothCore NPCBots 编译步骤 #12

Open najoast opened 1 year ago

najoast commented 1 year ago
mkdir ~/dev
cd ~/dev
git clone https://github.com/trickerer/AzerothCore-wotlk-with-NPCBots.git
#cd modules
#git clone https://github.com/trickerer/Trinity-Bots.git
#cd ..
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/azeroth-server/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS_BUILD=all -DSCRIPTS=static -DMODULES=static
make -j $(nproc --all) # 编译
make install # 安装

注意:NPCBots 改了 AzerothCore 的代码,PlayerBots 也改了 AzerothCore 的代码,所以这两个机器人是互斥的,只能同时存在一个,并且用哪个机器人,就要使用哪个机器人的修改版 AzerothCore。

AnglePisces commented 1 year ago

我使用npcbots的中文数据库,但是游戏里面显示乱码,请问是什么原因呢?