Don't Starve Together

Don't Starve Together

Mikey-2-Guns Jul 23, 2015 @ 8:24am
Backup / copy / and restore a server save?
Does anyone know how to backup or copy a server save slot? I want to make a copy of a DST world save I'm hosting basically to play while my SO is away. I searched and found an older post that said its contained in documents/klei.... And would be labelled as survival_1 and so forth. I see the folder but don't see the actual save files themselves. Also I tried copying the entire folder and attempted a restore previously and when I placed the backup save folder back into the original documents/klei folder nothing happened. The server was the same as when I previously left it. Any help would be appreciated.
< >
Showing 1-3 of 3 comments
Rex Jul 23, 2015 @ 9:18am 
I'd like to hear this too. Enforcing a hardcore style with no resets is more frustrating than fun for those of us that don't have enough time to invest a lot of energy to learn the game. Once we get really far and someone dies to cause everyone to go insane doesn't feel fair and warrants a reset imo.
Mikey-2-Guns Jul 23, 2015 @ 1:21pm 
Someone figured it out, I tested and it worked. However this will only create a copy of a single world slot and back it up in another slot and is a manual kind of involved process:

Yep.

Start a new world in a new slot. Call it BACKUP for the name (it doesn't matter). Generate the world and pick any character (doesn't matter) to join it. Then, exit the server after you spawn (save and quit).

Open the following file (on the server) with a text editor:

My Documents\Klei\DoNotStarveTogether\save\saveindex

In there, you'll see all of your current saves. You should see your current world as well as the new

Find the slot that matches your brand new world (probably labeled BACKUP if you followed my directions). Take note of the session_id (copy it somewhere).

Find the slot that matches your current server (the one you want to back up). You should be able to find it pretty easy looking at that file. Now, copy that entire slot over your slot that matches the backup (or a new slot...doesn't matter). Just make a copy of it somewhere else in that saveindex (don't exceed the 5 slots though).

{ <----- Copy from here
server={
description="fire!!!!!",
friends_only=true,
game_mode="survival",
maxplayers=6,
name="name",
online_mode=false,
password="xxxx",
pvp=false
},
session_id="random_hex_will_be_here",
world={ day=70 }
}, <---- To here

Now, change the session_id to the newly generated world (the one you made a note of).

Now open the following folder:

My Documents\Klei\DoNotStarveTogether\save\session\

Open the one from your original save (the one you want to backup). Copy all of the contents inside (select all, copy).

Open the new session_id folder that was created in step 1 (created when you made the new world). Delete everything that isn't a folder from there (Don't delete OU_<random_numbers> and/or KU_<random_characters> folders!). Paste in the new stuff. Open the folder in there and delete the contents (all we really need is the folder name with the random characters...everything else can go).

Each one of those folders in the session is the player info (or partial player info if they are remote players). Assuming you were the host before, find the folder that you just pasted which contains the file 'minimap'. Open it and copy all of the contents (minimap and a bunch of 00000000<number> files). Paste these into the other character folder you emptied from before (Folder with OU or KU prefix).

The game generates a unique folder for each user based on I think the session ID hashed with their steam name. This is why we need to jump through the hoops of creating a new character and copying the contents of the files into this new folder).

Let me know if you have problems! I transferred one of my servers to a new computer to write the stuff above...so hopefully it makes sense!
Enigmatic Apr 21, 2017 @ 8:23am 
I don't have a "save" file.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jul 23, 2015 @ 8:24am
Posts: 3