SteamCMD创建下载饥荒专用服务器
下载SteamCMD
官方网站:https://developer.valvesoftware.com/wiki/SteamCMD
Windows版本下载地址:https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
使用SteamCMD
windows
- 解压得到的steamcmd.zip到任意不包含中文的目录
- 运行得到的steamcmd.exe,软件会自行安装并更新,完成后会出现 Steam> 提示符即表示安装完成
- 使用login anonymous登录匿名账号
- 后面接其他需要架设服务器的教程。
ubuntu
1 | sudo add-apt-repository multiverse |
debian
1 | sudo apt update |
执行如下命令
1 | mkdir -p /home/lang/Applications/DST |
异常处理
1 | # libcurl-gnutls 缺失 |
运行命令
1 | # 存档文件夹名称为 ~/.klei/DoNotStarveTogether 下的存档文件夹名称 |
命令拓展:
<persistent_storage_root>/<conf_dir>/<cluster>/<shard>
默认为 ~/.klei/DoNotStarveTogether/Cluster_*/Master
- 可用
-persistent_storage_root
修改~/.klei
路径 - 可用
-conf_dir
修改默认路径中的DoNotStarveTogether
- 可用
-cluster
修改默认存档文件夹名称 - 可用
shard
修改默认Master
-offline
开启离线模式-console
允许执行 lua命令-bind_ip <bind_ip>
绑定 ip-port <port_number>
绑定 port-players <max_players>
修改最大玩家人数,会覆盖cluster.ini
中的配置-tick <tick_rate>
修改服务器每秒向客户端发送更新的次数默认15,范围(15~60),需要能被60整除,增加此值可能会提高精度,但会导致更多的网络流量