2015年的圣诞,怂恿了一大波小伙伴入手了 Steam 的 Don’t Starve Together。然而截止 2016 年 1 月 9 日,Cave 洞穴服务器依然是 Beta 测试,并且直接用 DST 的游戏客户端无法开启洞穴,开启洞穴必须要使用另外的服务器。经过了很长时间的 Beta 版,饥荒联机版终于在 2016 年 4 月 22 日迎来了正式版,结束了抢先体验。不知道在哪个版本中,饥荒联机已经可以在 DST 的游戏客户端中直接建立洞穴服务器了,以后要玩带洞穴的游戏再也不需要另外的服务器了。

虽然可以用 DST 客户端直接建立地上和洞穴服务器,但是依旧有使用独立服务器进行游戏的需求,所以这篇教程的标题也就去将洞穴替换成了独立,变成了现在这副样子。

饥荒

说实在的,Klei 的文档写的还是非常详细的,通过英文文档,可以很容易地搭建一个同时运行地面和洞穴的服务器。这里,天天为你介绍在 Windows 上搭建带地面及洞穴的 DST 独立服务器的方法。想知道 Linux 端的搭建方式,请参考

使用 Windows 搭建地面及洞穴服务器非常容易,有两个方法可以搭建该服务器:一种是用 Steam 客户端里的 Don't Strave Together Dedicated Server 工具搭建;另一种是用 SteamCMD 命令搭建。

使用 Don’t Strave Together Dedicated Server 搭建

1、首先你得有个 Steam 账户,其次,你得安装 Steam 客户端,然后,你需要购买 Don’t Strave Together 游戏,地址:http://store.steampowered.com/app/322330/

2、按下图所示选择“工具”,并找到名为 Don't Strave Together Dedicated Server 的工具,右键安装

选择工具

3、安装完成后,右键点击属性,选择本地文件选项卡,再点击浏览本地文件,打开下载的目录。进入 bin/scripts 文件夹,直接点开里面的 launch_preconfigured_servers.bat 文件。

右键属性

打开下载目录

4、此时,会打开两个命令行窗口,标题分别为 Don't Starve Together Overworld 和 Don't Starve Together Caves。当出现日志中出现 Your Server Will Not Start 后,分别键入 c_shutdown() 关闭窗口。(此时日志提示需要 token 文件)

Your Server Will Not Start

5、打开文档->Klei,能看到生成了 DoNotStarveTogether_EasyConfigOverworld 和 DoNotStarveTogether_EasyConfigCaves 两个文件夹,这就是地上和洞穴的存档和配置目录。之后,对配置文件进行配置后即可开始游戏,配置文件的方法请移步

使用 SteamCMD 搭建

1、首先,为某些喜欢查看英文文档的人提供官方地址:

由 V 社提供的 SteamCMD 使用方法的 Wiki 网址,点此进入

由 Klei 提供的 Don't Strave Together Dedicated Server 搭建教程,点此进入

由 Klei 建议的 Don't Strave Together Dedicated Server 搭建指南,点此进入(强烈建议)

2、建议新建一个非管理员账户,这样可以让服务器更加安全

3、创建一个用于存放 SteamCMD 的文件夹,例如 D:\SteamCMD

5、运行解压出的 steamcmd.exe 文件。该文件会自动为你下载所需的各种文件,下载完成后,会进入如 Steam> 形式的命令行界面

6、登陆 Steam 账户。此时,可以登录你的 Steam 账户,直接输入 login 用户名,再键入密码即可登陆,但是,并没有什么卵用,因为可以直接使用匿名账户 anonymous 进行登陆,直接 login anonymous 即可登陆匿名账号

7、设置默认安装目录(可选)。登陆后,输入 force_install_dir D:\dst 把 D:\dst 作为默认下载路径(若带空格请用双引号),否则,默认下载路径为 D:\SteamCMD\steamapps\common\Don't Starve Together Dedicated Server

8、下载 Don’t Strave Together Dedicated Server 。在 Steam> 下输入 app_update 343050 validate,其中 343050 是该文件的编号

其实,根本没这么复杂,6-8 步可以用一个批处理搞定

在 D:\SteamCMD 文件夹里创建 DST.bat,往里面输入 steamcmd +login anonymous +force_install_dir "D:\dst" +app_update 343050 validate +quit,无需管理员权限,直接双击运行,就可以自动更新/下载最新版本

9、下载完成后,进入下载目录->bin(默认为 D:\SteamCMD\steamapps\common\Don't Starve Together Dedicated Server),新建名为 dst_overworld.bat 和 dst_caves.bat 两个文件。再往这两个文件内写入以下内容:

::dst_overworld.bat

dontstarve_dedicated_server_nullrenderer -console -cluster DediServer -shard Master

::dst_caves

dontstarve_dedicated_server_nullrenderer -console -cluster DediServer -shard Caves

之后分别启动 dst_overworld.bat 和 dst_caves.bat 两个文件。当出现日志中出现 Your Server Will Not Start 后,分别键入 c_shutdown() 关闭窗口。(此时日志提示需要 token 文件)

10、打开文档->Klei,能看到生成了 DoNotStarveTogether 文件夹,里面有一个叫 DediServer 的文件夹,再里面是 Master 和 Caves 两个分别代表地上和洞穴的配置目录。之后,对配置文件进行配置后即可开始游戏,

关于更新的问题,因为只要 DST 客户端更新了,服务端也会有相应的更新,所以必须保证 DST 独立服务器的版本为最新版本。

若使用 Don’t Strave Together Dedicated Server 搭建,则不用在意更新的问题,打开 Steam 就会自动更新了

若使用 SteamCMD 搭建,则再次运行一次 D:\SteamCMD\DST.bat 文件就能更新了(^・ω・^ )

这里列出了第⑨步中其他可用的命令:

拷贝自 http://steamcommunity.com/sharedfiles/filedetails/?id=590681995

-persistent_storage_root

Change the directory that your configuration directory resides in. This should be an absolute path. The full path to your files will be // where is the value set by -conf_dir. The default for this option depends on the platform:

Windows: /Klei

Mac OSX: /Documents/Klei

Linux: ~/.klei

-conf_dir

Change the name of your configuration directory. This name should not contain any slashes. The full path to your files will be / where is the value set by the -persistent_storage_root option. The default is: "DoNotStarveTogether".

-cluster

Set the name of the cluster directory that this server will use. The server will expect to find the cluster.ini file in the following location: ///cluster.ini, where and are the values set by the -persistent_storage_root and -conf_dir options. The default is "Cluster_1".

-shard

Set the name of the shard directory that this server will use. The server will expect to find the server.ini file in the following location:server.ini, where , , and are the values set by the -persistent_storage_root, -conf_dir, and -cluster options. The default is "Master".

-offline

Start the server in offline mode. In offline mode, the server will not be listed publicly, only players on the local network will be able to join, and any steam-related functionality will not work.

-console

Allow lua commands to be entered in the command prompt or terminal that the server is running in.

-bind_ip

Change the address that the server binds to when listening for player connections. This is an advanced feature that most people will not need to use.

-port

Valid values: 1..65535

The UDP port that this server will listen for connections on. This option overrides the [NETWORK] / server_port setting in server.ini. If you are running a multi-level cluster, this port must be different for each server. This port must be between 10998 and 11018 inclusive in order for players on the same LAN to see it in their server listing. Ports below 1024 are restricted to privileged users on some operating systems.

-players

Valid values: 1..64

Set the maximum number of players that will be allowed to join the game. This option overrides the [GAMEPLAY] / max_players setting in cluster.ini.

-steam_master_server_port

Valid values: 1..65535

Internal port used by steam. This option overrides the [STEAM] / master_server_port setting in server.ini. Make sure that this is different for each server you run on the same machine.

-steam_authentication_port

Valid values: 1..65535

Internal port used by steam. This option overrides the [STEAM] / authentication_port setting in server.ini. Make sure that this is different for each server you run on the same machine.

-backup_logs

Create a backup of the previous log files each time the server is run. The backups will be stored in a directory called "backup" in the same directory as server.ini.

-tick

Valid values: 15 .. 60

This is the number of times per-second that the server sends updates to clients. Increasing this may improve precision, but will result in more network traffic. This option overrides the [NETWORK] / tick_rate setting in cluster.ini. It is recommended to leave this at the default value of 15. If you do change this option, it is recommended that you do so only for LAN games, and use a number evenly divisible into 60 (15, 20, 30).

饥荒联机版服务器搭建_饥荒联机独立服务器搭建教程(一):Windows篇相关推荐

  1. 饥荒联机版 服务器未响应,饥荒联机版常见问题汇_饥荒联机版常见问题大全_快吧单机游戏...

    饥荒联机版常见问题大全,饥荒游戏自从开放联机之后,各位玩家也相继遇到了很多各式各样的问题,而今天笔者要给大家介绍的就是饥荒联机版常见问题大全.希望能给大家带来一些帮助. 3.找不到没有房间:右边的页面 ...

  2. 饥荒联机版连不上服务器_饥荒联机版常见问题汇总_饥荒联机版服务器无响应怎么办_牛游戏网攻略...

    <饥荒>游戏近日腾讯上线了TGP联机版,相信不少玩家都入手了吧.但也有一些玩家遇到了问题,这里小编带来了<饥荒>TGP版常见问题汇总,有遇到问题的不妨来看看,希望能对各位有所帮 ...

  3. 饥荒联机版在线服务器登陆,《饥荒:联机版》不搜索房间直连服务器教程

    饥荒联机版的服务器有时候非常不稳定,很多玩家在在线房间列表中什么都搜索不到,这个时候玩家希望能够直连服务器该多好,今天小编带来的文章就是向大家介绍关于如何直接连接服务器不通过搜索房间,还在为搜房问题而 ...

  4. 饥荒联机版联机显示服务器无应答,饥荒联机版羊奶怎么获得 饥荒联机版羊奶食谱介绍-游侠网...

    饥荒联机版中的羊奶要如何获得呢?羊奶是游戏中一种比较稀有的食材,所以有许多玩就不知道饥荒联机版中游戏中的羊奶该怎么获得,下面整理了游戏中羊奶的获得方法还有羊奶的食谱介绍,想了解的玩家快来看看吧. 饥荒 ...

  5. 饥荒联机版把服务器删掉了怎么找回,饥荒联机版存档丢失怎么办 饥荒存档教程...

    导 读 饥荒联机版存档丢失怎么办?今天小编就为大家带来饥荒联机版服务器证书不存在处理方法,让我们来一起看看吧! 1.存档变更 首先,存档并未丢失,而是你的游戏存档位置发生了改变,主要发生在WIN10用 ...

  6. 楪祈机器人_饥荒联机版Inori楪祈MOD下载_饥荒:联机版MOD下载_游戏堡

    <饥荒:联机版>Inori楪祈MOD是玩家针对当前比较火热的大型游戏<饥荒:联机版>制作的Inori楪祈MOD,这是以罪恶王冠中的女主Inori楪祈制作的人物MOD,非常可爱的 ...

  7. 饥荒海难机器人怎么用_饥荒联机版机器人角色详解 机器人怎么用 如何使用机器人 玩法建议-游侠网...

    玩法建议 1.如果找到了齿轮,并且有余量做冰箱之类的建筑,就别浪费食物之类的了,因为吃齿轮大补! 2.可以不建造肉架,这样能省下大量的绳子. 3.中后期可以做把传送法杖,这样听到boss吼声(尤其是龙 ...

  8. 饥荒海难机器人怎么用_饥荒海难手机版机器人wx78怎么样 饥荒海难手机版机器人wx78属性详解...

    饥荒海难手机版机器人wx78怎么样,机器人wx78作为一个有趣的角色,很多新手玩家们却不知道机器人wx78在游戏中表现的怎么样!别着急,接下来就和小编一起来看下饥荒海难手机版机器人wx78属性详解!赶 ...

  9. 饥荒机器人升级上限多少_饥荒机器人升满级之后

    在游戏<饥荒>中,玩家恢复生命值的方法是可以吃各种食物来恢复生命值.需要注意有一些食物是有毒的,不但不会恢复生命值还会扣除生命值.此外,玩家还可以用一些材料来制详情>> 阅读: ...

最新文章

  1. 基于maven使用IDEA创建多模块项目
  2. ulua/tolua中timer.lua和event.lua的使用(Luaframework)
  3. 聚类之K-means均值聚类
  4. 监督学习—最小二乘法
  5. python3文件的编码类型是什么_python3.x - 怎么查看某个文件的编码方式?python
  6. Java重写equals方法时为什么要重写hashCode方法
  7. 【网页模板】Bootstrap免费模板
  8. 微信开发工具tabBar中的list 图片为啥加载不出来?
  9. 计算机原理作文,海口经济技术学院微型计算机原理作业第三章 习题与思考题:自述作文...
  10. 揭秘“爆款级”产品!看葡萄城活字格低代码平台是如何诞生的
  11. AtCoder Beginner Contest 242——1111gal password
  12. 从0开始搭建一个疫情地图小程序——小程序篇
  13. 看完《三体》,我顿悟了5个最残酷的职场生存法则
  14. 太空人esp32/8266天气时钟学习经验
  15. 100之内含有7与7的倍数的数
  16. 埃氏筛与欧拉筛(线性筛)
  17. 51单片机控制SG90舵机、MG90S舵机
  18. PPP(Point to Point Protocol)——点对点协议
  19. EXCEL进度管理很好用的模板
  20. Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/velocity/context/Context at c

热门文章

  1. php ffmpeg截取视频文件,PHP中使用ffmpeg截取视频图片笔记
  2. php微信小程序毕业设计 php物业维修报修小程序毕业设计开题报告功能参考
  3. eNSP 模拟 calico 跨网段 bgp 网络
  4. 代码验证约瑟夫环百科词条中的故事(Python)——约瑟夫斯的故事、数学家加帕斯讲的故事,体验算法模板的奇妙。
  5. python猫眼电影分析_Python 爬取猫眼电影《无名之辈》并对其进行数据分析
  6. ubuntu16.04插入u盘出现无法挂载
  7. 机器学习正则化线性模型和模型保存
  8. 快手sig签名,python版,可用于快手关键字搜索结果采集
  9. 苹果承认iOS10漏洞:访问iTunes备份更容易
  10. 最近抽了点时间做了个Android电子书一键生成器