0x00 背景
为了跟同学一起玩《饥荒》,建了一个服务器。现在网络上流传的一些配置方法已经过时完全无法使用了,我整理了一下最新的配置方法。
0x01 基本服务器配置
首先根据这篇官方文章,在服务器上安装好Steam,如果你的服务器是64位的,还要安装一些32位的库,可以参考这篇文章。
接下来就是坑了,因为官方的文章的配置方法已经过时了,我整理了一下最新的配置方法。
1.使用Steam将饥荒服务器到最新版本:
cd /home/steam/Steam
./steamcmd.sh +login anonymous +force_install_dir /home/steam/steamapps/DST +app_update 343050 validate +quit
2.在/home/steam/.klei/DoNotStarveTogether/Cluster_1目录下放上cluster.ini,cluster_token.txt文件,cluster.ini文件配置如下:
[network]
cluster_name = nevermoe and his friends
cluster_intention = cooperative
cluster_description = nevermoe and his friends
cluster_port = 10999
cluster_password = password
[misc]
console_enabled = true
[gameplay]
max_players =