本教程已经过时,BDX项目不再维护,请参考BDSLiteloader
免责声明:
1,使用该教程安装即代表你同意Minecraft最终用户协议(EULA),微软VC用户协议
2,使用该教程意味着你需要遵守使用的开源项目的协议
3,各种因素会造成文章失效,仅保证在写稿时该教程可用
4,因为个人操作失误导致的损失(包括但不限于破坏系统,文件丢失等),本人不负任何责任
话不多说,教程开始
····目前最新(0420)直链: https://github.com/Sysca11/BedrockX-bin/blob/master/latest_0420.7z
-2 Mc官方BedrockServer服务端的Windows版本 https://www.minecraft.net/zh-hans/download/server/bedrock/
—目前最新(1.14.60)直链 https://minecraft.azureedge.net/bin-win/bedrock-server-1.14.60.5.zip
-3 VC++运行库 https://support.microsoft.com/zh-cn/help/2977003/the-latest-supported-visual-c-downloads
— https://aka.ms/vs/16/release/vc_redist.x64.exe
除了这些文件,你还需要一台安装了Linux的vps
(本教程提供适用于Ubuntu/ArchLinux(和包相关操作),其他发行版自行替换部分命令,其余文件操作命令相同)
2,建立文件夹并下载/上传文件
mkdir mc && cd mc
wget https://github.com/Sysca11/BedrockX-bin/raw/master/latest_0420.7z -O 0420.7z
wget https://minecraft.azureedge.net/bin-win/bedrock-server-1.14.60.5.zip -O bds1.14.60.5.zip
wget https://aka.ms/vs/16/release/vc_redist.x64.exe -O vc64.exe
3,安装必要的依赖
3.1,安装7zip wine以及vc++运行库
##ubuntu#添加wine仓库
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main'
#安装wine 7zip
sudo apt install wine-staging winehq-staging p7zip-full unzip
暂时没有Ubuntu的虚拟机,故没有演示图
##Arch
sudo pacman -S wine p7zip unzip
3.2,安装wine下依赖:MSVC
wine vc64.exe /q /norestart
3.3, 配置环境变量
sudo echo 'export WINEDLLOVERRIDES="vcruntime140_1,vcruntime140=n"'>> /etc/profile
sudo echo 'export WINEDEBUG=-all' >> /etc/profile
source /etc/profile
3.4, 解压BDX和BDS
7z x 0420.7z
unzip bds1.14.60.5.zip
mv ./latest_0420/* ./
3.5, 生成符号表
完成这些步骤后我们需要一个临时Windows机器来生成sym数据库
我们把RoDB.exe和bedrock_server.pdb拷贝到一个windows机器上
运行RoDB.exe
ps> .\RoDB.exe
会生成红色框框的两个文件,理论上和bedrock.exe差不多大小
5如果以上步骤没有遇到任何错误,那么你就可以开服了
wine bedrock_server.exe