Don’t Starve Guide

Automatic savegame backup for Don't Starve

Automatic savegame backup

Overview

This batch file will create backups of your savegames periodically.

How it works:

This Guide was written for Win 7. Win 10 doesnt recognize some of the commands.

A .bat (batch) file will copy the saves to a folder every few minutes and name them with time and date. You can change the frequency of the backups. They can be used to restore lost progress.

There a two versions:

Version1: It will create a backup and will restore your save files as soon as they are deleted. (easier to use)
Downside: You can have only one backup per save slot, it will always be the last ingame safe.

Version2: It will create a backup named with time & date. You can continue where ever you want. Downside: You have to copy + paste your files at your own.

Version2:

How to install (Version 1):

Version 1

1.)
disable steam cloud
open Steamsteamappscommondont_starvesettings.ini and change “DISABLECLOUD = false” to “DISABLECLOUD = true”

2.)
create a “backup.txt” file. Open it and copy / paste the following:

@echo off :start if exist C:Users%username%DocumentsKleiDoNotStarvesavesurvival_1 goto save del C:Users%username%DocumentsKleiDoNotStarvesavesaveindex copy C:Users%username%DocumentsKleiDoNotStarvesavesurvival_1_backup C:Users%username%DocumentsKleiDoNotStarvesavesurvival_1 copy C:Users%username%DocumentsKleiDoNotStarvesavesaveindex_backup C:Users%username%DocumentsKleiDoNotStarvesavesaveindex echo. echo your save has been restored. timeout /t 60 /nobreak goto start :save del C:Users%username%DocumentsKleiDoNotStarvesavesurvival_1_backup del C:Users%username%DocumentsKleiDoNotStarvesavesaveindex_backup copy C:Users%username%DocumentsKleiDoNotStarvesavesurvival_1 C:Users%username%DocumentsKleiDoNotStarvesavesurvival_1_backup copy C:Users%username%DocumentsKleiDoNotStarvesavesaveindex C:Users%username%DocumentsKleiDoNotStarvesavesaveindex_backup echo. echo A backup has been created! Next backup in 10 seconds. timeout /t 10 /nobreak goto start

If your save games are located elsewhere, you have to adjust the path lines in the batch file.
Example:
3.)
cange the “backup.txt” file to “backup.bat”. Now it should look like this:

4.)customization
This works for the first save slot. To enable it for other slots change “survival_1” to “survival_2(3,…)”

Don’t starve saves only once per ingame day (8 minutes).

How to use (Version 1):

1.) Run the “backup.bat” and don’t starve. If your save is deleted close both, and restart the .batch and then don’t starve.

How to install (Version 2):

Version 2

1.)
disable steam cloud
open Steamsteamappscommondont_starvesettings.ini and change “DISABLECLOUD = false” to “DISABLECLOUD = true”

2.)
go to C:UsersUSERNAMEDocumentsKleiDoNotStarve and create a new folder named “backup”

If your save games are located elsewhere, you have to adjust the path lines in the batch file.

3.)
create a “backup.txt” file. Open it and copy / paste the following:

@echo off :start create rem time stamp for /f “tokens=1-4 delims=. ” %%i in (“%date%”) do ( set day=%%i set month=%%j set year=%%k ) for /f “tokens=1-4 delims=.:, ” %%i in (“%time%”) do ( set hour=%%i set minute=%%j set second=%%k set hundredth=%%l ) if not exist C:Users%username%DocumentsKleiDoNotStarvesavesurvival_1 goto fail copy C:Users%username%DocumentsKleiDoNotStarvesavesurvival_1 C:Users%username%DocumentsKleiDoNotStarvebackup%year%-%month%-%day%-%hour%-%minute%-%second%-survival_1 copy C:Users%username%DocumentsKleiDoNotStarvesavesaveindex C:Users%username%DocumentsKleiDoNotStarvebackup%year%-%month%-%day%-%hour%-%minute%-%second%-saveindex echo. echo A backup has been created! Next backup in 600 seconds. timeout /t 600 /nobreak goto start :fail echo. echo survival_1 does not exist timeout /t 10 /nobreak goto start

4.)
cange the “backup.txt” file to “backup.bat”. Now it should look like this:

5.)customization
This works for the first save slot. To enable it for other slots change “survival_1” to “survival_2(3,…)”

You can change backup frequency by changing the line “timeout /t 600 /nobreak”

Don’t starve saves only once per ingame day (8 minutes). Therefore more then one backup every 8 minutes (480 sec.) will only have an effect if you safe & quit or use save mods.

If you want another filename change C:Users%username%DocumentsKleiDoNotStarvebackup%year%-%month%-%day%-%hour%-%minute%-%second%-saveindex (or survival_1).
It is possible to add %hundredth% or remove parts if you don’t need the seconds or the year delete (%year% or %second%).

How to use (Version 2)

1.) Run the “backup.bat” and don’t starve.

2.) If you want to use the backup, close don’t starve and copy the “saveindex” and “survival_1” from your “backup” folder to you “saves” folder and replace the existing files.

3.) Start don’t starve and continue playing.

SteamSolo.com