手把手教你搭饥荒专用服务器(四)—本地存档转专用存档
位置导航:首页/ 服务器相关 / 饥荒
前两节主要讲解自己创建一个纯净档,并逐步改变世界资源及加入MOD的方法。可能有些小伙伴不舍得把本地玩了几百天甚至几千天的存档丢弃,这节就讲解如何把本地文档上传,将其转化为专用服务器存档。
一、本地存档已经存在地上和洞穴的情况
1、将本地文档整个上传到服务器对应的存档位置
比如你想上传的文档是第一个存档位的,那就把本地的Cluster_1
这个文件夹上传到服务器对应的位置,服务器存档位置为:
/root/.klei/DoNotStarveTogether
2、存档根目录加入你的饥荒令牌(User Token)
在云服务器的饥荒存档目录(以 Cluster_1
为例)下,新建txt文本文档,将你的User Token放入,保存为cluster_token.txt
如果不知道如何获取令牌,请移步: 手把手教你搭饥荒专用服务器(一)—服务器准备工作
3、打开go.sh一键端,可以发现 Cluster_1
存档已经成功出现,但是这时候启动进游戏之后会发现世界重置了,下面讲解如何恢复世界
(1)打开服务器存档中的Master/save/session
文件夹,可以看到里面有两个名字很长的文件夹,这两个文件夹是世界代码,按照时间排序,时间比较老的使我们第一步上传上去的,我们命名为A
,另一个文件夹是刚刚生成的新世界,我们命名为B
(2)打开A
文件夹,将其中所有的文件复制粘贴到B
文件夹目录下,相当于做了一个替换世界的操作
(3)重新启动世界,可以发现世界已经被恢复了
容易出现的问题:
问题一:世界恢复了,但是已经探索的地图和身上的背包没有保存怎么办
解决办法:之前提到的A、B文件夹是世界代码,打开这两个文件夹之后其实还有一些名字很长的文件夹,这些文件夹是客户端代码,也就是加入过你游戏的所有人的数据都保存在这里,包括你任务学过的蓝图、背包内的东西,每个电脑对应一个文件夹。只需要把A中的文件夹内的内容复制粘贴到B中相应文件夹下就可以了。
问题二:按照以上的方法操作,世界还是没有恢复
解决方法:参照下面修改cluster.ini文件的方法
二、本地只有地上世界,如何强行加入洞穴
1、重复上面的方法1、2(Caves文件夹可以从其他地方复制)
2、通过go.sh运行之后会发现洞穴其实是有入口的,但是被堵住了,所以先不要运行服务器。
此时打开存档根目录下的Cluster.ini
文件,将[SHARD]
下的shard_enabled
后面的ture
改为false
,然后将Cluster_key
后面的supersecretkey
改为defaultPass
3、按照第一部分提到的方法恢复世界.
4、确认世界被恢复之后,修改 存档根目录下的Cluster.ini
文件
将[SHARD]
下的shard_enabled
后面的 false
改为 ture
,然后将Cluster_key
后面的 defaultPass
改为 supersecretkey
5、重启服务器,会发现世界已恢复,洞穴已开启
声明:本资料仅供学习交流,严禁使用于任何商业用途,由此产生的版权纠纷本站不负任何责任!
如需转载,请注明出处:www.qimumu.top
友情链接:
cbd for dogs
I wanted to post you that tiny remark to say thanks a lot over again just for the pleasant solutions you have featured in this case. It was really shockingly open-handed with you to grant publicly just what many of us might have offered for an ebook to get some dough for themselves, mostly now that you might have tried it in case you desired. These secrets as well served to be the good way to fully grasp that other people online have the identical interest much like my personal own to learn more regarding this matter. I am sure there are numerous more pleasant periods in the future for many who read your site.
ABILIFY tablets
I am also commenting to let you know of the helpful encounter my friend’s daughter found reading through your web page. She figured out numerous issues, not to mention what it’s like to have an amazing giving mood to have most people really easily know selected impossible subject areas. You really exceeded our own expectations. Many thanks for imparting the invaluable, safe, explanatory and even easy thoughts on the topic to Janet.
cheap doxepin
I simply wanted to thank you so much once more. I am not sure the things that I would’ve sorted out without the type of solutions revealed by you over that situation. It truly was an absolute hard matter in my opinion, however , seeing the very specialised style you resolved that made me to leap over gladness. I will be happy for this service and then pray you realize what a great job you happen to be providing teaching people today using your web site. Most likely you have never got to know any of us.