Code Monkey home page Code Monkey logo

dont-starve-never-really-die's Introduction

Introduction

In game Don't starve, the save-files get deleted if the player dies. This is quite annoying if, for example, you have survived for 100 days and suddenly get killed by a tentacle.

Most solutions for this issue focus on backup files. Namely, backup files when you are still alive and recover them if you die. I tried these solutions for a while and finally git came to my mind.

save-files

We need to find save-files directory first. On MacOS, for example, they may be located at

~/Library/Application Support/Steam/userdata/<your-id>/219740/remote/

( 219740 is the id of Don't starve )

ls the save-files directory, you will see several executable files including profile, saveindex, morgue. They are the save-files we've been looking for.

Solution

There's no need to figure out what roles these files are playing. Just backup and recover them with git.

cd ~/Library/Application Support/Steam/userdata/<your-id>/219740/remote/
git init

backup ( == commit everything you've done ):

git add .
git commit "your message"

recover the most recent archive if you are killed ( == Discard all changes since the last commit ):

git checkout ./

There're much more you can do if you are familiar with git.

Author

ZHU YUE

dont-starve-never-really-die's People

Watchers

James Cloos avatar charleshenryhugo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.