Ubuntu安装配置魔兽世界私服 3.3.5a

使用的版本为巫妖王之怒 3.3.5a。和一个盆友自娱自乐,回顾下峥嵘岁月。下面记录步骤,以备不时之需。

网游还是人多好玩,欢迎各位大佬加入。服务器相当纯净,不魔改任何东西。开始就0级0金币,纯为闲的蛋疼的人准备,做好心理准备哈。

加入步骤

  1. 下载3.3.5a客户端,如果已加入网络,可直接下载(繁英),下载 (国服简体) 带插件
  2. 更改 Data\zhCN\realmlist.wtf (zhCN,enUS)
 set realmlist wow.blobolb.xyz

测试账号 public : public,如果大佬想入坑

魔兽世界-程序员之怒
魔兽世界-程序员之怒

注册送美女。


大水博主没有选择TrinityCore,而是选择了AzerothCore。

安装依赖:

sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libboost-all-dev
Ubuntu 22.04 安装 Mysql 8
mysql 是项目上常用的数据库,过程记录如下。 安装 一条命令安装 sudo apt update && sudo apt install mysql-server 启动服务 sudo systemctl start mysql.service 配置 常规安全配置 sudo mysql_secure_installation 设置root密码 sudo mysql # 使用系统root用户登录mysql, 又名auth_socket mysql> ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’; 经过以上命令才能用 mysql_native_password 认证 mysql -u root

设置时区

sudo timedatectl set-timezone Asia/Shanghai

下载azerothcore源代码

git clone https://github.com/azerothcore/azerothcore-wotlk.git --branch master --single-branch azerothcore --depth 1
cd azerothcore
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
nproc --all  # 查看核心数
make -j 8    # 使用8线程编译
make install

提取 DBC, Maps, VMaps & MMaps

把游戏客户端传到Ubuntu,大约20G。使用如下命令提取地图等相关信息。

  • map_extractor
  • mmaps_generator
  • vmap4_assembler
  • vmap4_extractor

这些工具在安装目录azeroth-server中,把这些工具复制到游戏客户端根目录。

我下载的台服游戏客户端。

cd wlkwowc

把生成的 dbc, maps, vmaps 和 mmaps 目录复制到 azeroth-server/data中。

cp -r dbc maps vmaps mmaps $HOME/azeroth-server/bin/

配置文件

azeroth-server/etc/下又两个配置文件 worldserver.conf.dist 和authserver.conf.dist 重命名为 worldserver.conf 和 authserver.conf

mv worldserver.conf.dist worldserver.conf
mv authserver.conf.dist authserver.conf
LoginDatabaseInfo = "127.0.0.1;3306;acore;acore123;acore_auth"

authserver.conf

LoginDatabaseInfo     = "127.0.0.1;3306;acore;acore123;acore_auth"
WorldDatabaseInfo     = "127.0.0.1;3306;acore;acore123;acore_world"
CharacterDatabaseInfo = "127.0.0.1;3306;acore;acore123;acore_characters"

worldserver.conf

在mysql中创建对应数据库和用户名

mysql> CREATE DATABASE acore_auth;
mysql> CREATE DATABASE acore_world;
mysql> CREATE DATABASE acore_characters;
mysql> CREATE USER 'acore'@'%' IDENTIFIED BY 'acore123';
mysql> GRANT ALL PRIVILEGES ON acore_auth.* TO 'acore'@'%' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON acore_world.* TO 'acore'@'%' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON acore_characters.* TO 'acore'@'%' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;

启动服务,导入数据库

cd $HOME/azeroth-server/bin
./authserver
./worldserver

ctrl+c停止服务。

设置 realmlist 服务器

mysql> use acore_auth;
mysql> UPDATE realmlist SET address = '172.26.72.20' WHERE id = 1;

注意替换为Ubuntu服务器地址。

启动服务

cd $HOME/azeroth-server/bin
./authserver

用户操作

account create <user> <pass>
account set gmlevel <user> <level> <realm>
account set password <user> <password> <password>

游戏客户端配置

wlkwowc\Data\zhTW\realmlist.wtf

set realmlist 10.243.245.128

详细信息参考官方文档

https://www.azerothcore.org/wiki/

GM命令列表

https://www.azerothcore.org/wiki/gm-commands


加机器人

GitHub - trickerer/Trinity-Bots: NPCBots for TrinityCore and AzerothCore 3.3.5
NPCBots for TrinityCore and AzerothCore 3.3.5. Contribute to trickerer/Trinity-Bots development by creating an account on GitHub.

更新

cd ~/azerothcore/
git pull origin master
cd build
make -j 4; make install

创建简单的注册页面

GitHub - masterking32/WoWSimpleRegistration: Simple Registration page for TrinityCore/AzerothCore/AshamaneCore/CMangos
Simple Registration page for TrinityCore/AzerothCore/AshamaneCore/CMangos - masterking32/WoWSimpleRegistration