Jump to content

Snapshot Saving (For Servers)


Recommended Posts

  • Developer

Server snapshots are now fully supported in DST!

What is a snapshot?

Anytime your world is saved, whether from auto-saving or shutting down, a snapshot is being created.

Snapshots can be used to restore your world to an earlier save when needed.

 

Here's how to access your saved snapshots from the server creation screen:

1. Select your server and click [Manage Server]

gS32Q4n.jpg

 

2. Select the snapshot you want (most recent ones are listed first)

As you can see, it remembers that I died in Wilderness mode and switched characters on Day 3.

VxWyrrN.jpg

 

3. Once you click [Yes], the rollback will become permanent

ubIDZiS.jpg

 

By default, the five latest snapshots are kept per server.  This can be overridden:

In settings.ini, you can specify how many snapshots to keep at a time (per server):

[MISC]

max_snapshots = 5

 

Console commands:

Examples:

c_rollback() <- Rollback one snapshot

c_rollback(3) <- Rollback three snapshots

 

Directory and file structure explained:

\\Documents\...\save\session\0ABC123000000000\0000000001  <- world snapshot 1

\\Documents\...\save\session\0ABC123000000000\0000000002  <- world snapshot 2

\\Documents\...\save\session\0ABC123000000000\0000000003  <- world snapshot 3

\\Documents\...\save\session\0ABC123000000000\KU_A_-b1234_\minimap  <- user local minimap cache

\\Documents\...\save\session\0ABC123000000000\KU_A_-b1234_\0000000002  <- user snapshot 2

\\Documents\...\save\session\0ABC123000000000\KU_A_-b1234_\0000000003  <- user snapshot 3

 

Link to comment
Share on other sites

 

Server snapshots are now fully supported in DST!

What is a snapshot?

Anytime your world is saved, whether from auto-saving or shutting down, a snapshot is being created.

Snapshots can be used to restore your world to an earlier save when needed.

 

Here's how to access your saved snapshots from the server creation screen:

1. Select your server and click [Manage Server]

gS32Q4n.jpg

 

2. Select the snapshot you want (most recent ones are listed first)

As you can see, it remembers that I died in Wilderness mode and switched characters on Day 3.

VxWyrrN.jpg

 

3. Once you click [Yes], the rollback will become permanent

ubIDZiS.jpg

 

By default, the five latest snapshots are kept per server.  This can be overridden:

In settings.ini, you can specify how many snapshots to keep at a time (per server):

[MISC]

max_snapshots = 5

 

Console commands:

Examples:

c_rollback() <- Rollback one snapshot

c_rollback(3) <- Rollback three snapshots

 

Directory and file structure explained:

\\Documents\...\save\session\0ABC123000000000\0000000001  <- world snapshot 1

\\Documents\...\save\session\0ABC123000000000\0000000002  <- world snapshot 2

\\Documents\...\save\session\0ABC123000000000\0000000003  <- world snapshot 3

\\Documents\...\save\session\0ABC123000000000\KU_A_-b1234_\minimap  <- user local minimap cache

\\Documents\...\save\session\0ABC123000000000\KU_A_-b1234_\0000000002  <- user snapshot 2

\\Documents\...\save\session\0ABC123000000000\KU_A_-b1234_\0000000003  <- user snapshot 3

 

 

Does this replace the actual survival game save files ?  If I go into My Docs/Klei/DontStarveTogether/Save, I no longer see any of the game files associated with my save games, ie. Survival_1, Survival_2 ect.  I see all of the other files in the dir; saveindex, modindex, profile ect, but not the actual World save games.

 

Does the snapshot system replaces these save file names?  Or am I missing something here.

 

For vanilla Dont Starve, I can locate the save files within the actual Steam Dir.

Link to comment
Share on other sites

First, I made the mistake of thinking it was c_rollback(the day to rollback to)    . I put in something like day 390 and it went to day 1 and now there is no way to undo that. Second, if I rollback a day and that is not enough can I then rollback another day?

Link to comment
Share on other sites

Yes you can use that command more than once. I do recommend using the server admin screen, as it is much more clear what day you are rolling back to.

 

Are you working on a control panel for the dedicated server or do I have to launch the game via remote desktop to see that interface? Thanks

Link to comment
Share on other sites

For those on a Linux dedicated server with no GUI.

 

The location for the snapshots is ...

 

~/.klei/DoNotStarveTogether/save/session

 

In case you don't know the ~ is a tilde, in unix it represents the home directory of the logged in user.

Link to comment
Share on other sites

I looked into settings.ini and I couldn't find "max_snapshots = 5" anywhere. Have they been moved elsewhere because I wish to increase it to 10 and above?

 

Adding that line manually doesn't seem to do anything either. Unless I need to make a new server for that......which is.......a hassle. 

 

EDIT: Oopsie it's 'fixed'. Had to manually add into settings.ini when DST was closed. LOL

Link to comment
Share on other sites

Could someone help me out? I'm trying to back up a world on my Mac but all the folders and files under my "Saves" folder don't seem to follow any pattern of date or world number or anything. Does anyone know how to decode them? I can post a few if someone wants

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...