ZhengPeiRu21 / mod-playerbots

AzerothCore Playerbots Module
MIT License
194 stars 95 forks source link

有没有相关的安装手册说明之类的呀 #184

Open luchec opened 1 year ago

luchec commented 1 year ago

啥都没有,这怎么搞啊

garfieldz90 commented 1 year ago

兄弟,你安装的平台是Linux还是Windows,Linux我可以帮你一下

luchec commented 1 year ago

是linux的

Sent from my iPhone

------------------ 原始邮件 ------------------ From: nj @.> 发送时间: 04/13/2023, 12:37 To: ZhengPeiRu21/mod-playerbots @.> 抄送: luchec @.>, Author @.> Subject: Re: [ZhengPeiRu21/mod-playerbots] 有没有相关的安装手册说明之类的呀 (Issue #184)

兄弟,你安装的平台是Linux还是Windows,Linux我可以帮你一下

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

garfieldz90 commented 1 year ago

我的步骤,按照ac教程https://www.azerothcore.org/wiki/installation 先准备以下的 MySQL ≥ 5.7.0 Boost ≥ 1.74 OpenSSL ≥ 1.0.x CMake ≥ 3.16 Clang ≥ [10] 然后git clone https://github.com/ZhengPeiRu21/azerothcore-wotlk.git --branch Playerbot --single-branch azerothcore, 接着cd /home/xxx/azerothcore/modules进入modules文件里git clone https://github.com/ZhengPeiRu21/mod-playerbots.git。 用指令创建build目录cd /home/xxx/azerothcore && mkdir build && cd build;当前在build目录里执行cmake ../ -DCMAKE_INSTALL_PREFIX=/home/xxx/azeroth-server/ -DCMAKE_C_COMPILER=/usr/bin/clang-15 -DCMAKE_CXX_COMPILER=/usr/bin/clang++-15 -DWITH_WARNINGS=1 -DTOOLS_BUILD=all -DSCRIPTS=static -DMODULES=static 其中xxx 就是你的用户名,clang版本是根据你安装的写,我使用的是15。 最后make -j 16 && make install(16是你的cpu核心数量,nproc --all用这个指令查询) 一般情况前面那些mysqll,boost...达到标准后都不会出现问题。 安装完成后在/home/xxx下会生成azeroth-server文件夹,cd azeroth-server/etc/将里面那些带有.dist后缀的文件去掉.dist,然后根据你的需求编辑authserver.conf dbimport.conf worldserver.conf,然后那个playerbots的配置文件在azeroth-server/etc/modules里面,也是带有dist后缀的,全部弄好后,用screen后台运行authserver 和worldserver,这两个文件都在azeroth-server/bin。 具体还有一些配置文件的细节,如果需要我在给你说,这些基本就是我成功运行的流程。

garfieldz90 commented 1 year ago

还要下载data文件https://github.com/wowgaming/client-data/releases/ ,差点忘记了,完成后解压出来,并且在worldserver.conf里DataDir那里进行配置你的data路径