Изменения

Перейти к навигации Перейти к поиску
new page
{{Переведите}}
The game saves progress when the [[Day Cycle|in-game day]] ends, ''i.e.'', when the farmer goes to bed, collapses from exhaustion, or collapses at 2am. All progress during a day is lost if the player quits the game without ending the day.

==Save format==
The saves are stored as XML files on your computer. They're stored separately from your game, so you can safely reinstall or update the game without losing them. They're shared between different copies of the game (e.g. if you buy it from both GOG and Steam).

Each save has a folder like <tt>JonSnow_123456789</tt>, with two main files inside it: <tt>JonSnow_123456789</tt> and <tt>SaveGameInfo</tt>. Both files are needed to load the save.

==How to...==
===Find your save files===
Note: in multiplayer, the save is only on the main player's computer.

; Windows
: To find your save files:
:# Press {{key|Windows}} + {{key|R}} to show a 'run' dialogue box.
:# Paste this exact text: <pre>%appdata%\StardewValley\Saves</pre>
:# Click 'OK' to open the folder.

; Linux
: To find your save files:
:# From ''Files'', click ''Go » Enter Location''.
:# Enter this exact text: <pre>~/.config/StardewValley/Saves</pre>
:# Submit to open the folder.

; Mac
: To find your save files:
:# From ''Finder'', click ''Go » Go to Folder''.
:# Enter this exact text: <pre>~/.config/StardewValley/Saves</pre>
:# Submit to open the folder.

===Back up or share a save===
[[#Find your save files|Find your save files]], then zip the entire folder that looks like <tt>JonSnow_123456789</tt>.

===Undo the last save===
If something went wrong, you can undo the last save.

# [[#Find your save files|Find your save files]].<br /><small>You should see two files with an <tt>_old</tt> suffix in the name; if not, ask for help instead!</small>
# Back up your save folder just in case.
# Delete <tt>SaveGameInfo</tt> and the file that looks like <tt>YourName_123456789</tt>.
# Remove the <tt>_old</tt> suffix from <tt>SaveGameInfo_old</tt> and the file that looks like <tt>YourName_123456789_old</tt>.

===Edit a save===
[[File:Editing a save in Sublime Text.png|thumb|A save file open in Sublime Text with formatted XML.]]
You can edit your save to fix some common issues or change your choices. '''This can permanently break your save; don't forget to create a backup first.''' You should also avoid automatic save editor tools, since they often break the save.

# Install [https://www.sublimetext.com/ Sublime Text] for Linux, Mac, or Windows. (If you already have another text editor which supports XML formatting, feel free to use that instead.)
# Install the [https://packagecontrol.io/installation Package Control extension for Sublime Text].
# Use the Package Control extension to install the Indent XML plugin ([https://packagecontrol.io/docs/usage see documentation]).
# Open [[#Find your save files|your save file]] (the file that looks like <tt>Name_0123456789</tt>) in Sublime Text.
# Click Selection > Format > Indent XML.
# Make any changes you want and save. (See [http://community.playstarbound.com/threads/save-file-editing-guide-for-solving-some-common-issues.110762/ a guide for common changes].)

===Duplicate a save===
You can duplicate a save for testing purposes, or to explore different options without starting over.

# [[#Find your save files|Find your save files]].
# Create the new save folder:
## Duplicate the target save folder.
## Rename the new folder:
##* change the name so you can recognise it in-game;
##* change the number at the end to any number that's not used by another save.
## Open the new folder for the next steps.
# Prepare the new files:
## Delete any file whose name ends with <tt>_old</tt> or <tt>.back.*</tt>.
## Rename the file that looks like <tt>Name_0123456789</tt> to match your new folder name.
# Edit the save metadata:
## Open the <tt>SaveGameInfo</tt> file in a text editor like Notepad.
## Look for <code>&lt;name&gt;</code> on the first line. Your farmer's name should be right after that. Change it to your new name.
## Search for the 2nd mention of your name (ctrl+f to 'find') and change it to your new name.
# Edit the save file:
## Open the file that looks like <tt>Name_0123456789</tt> in a text editor like Notepad.
## Look for <code>&lt;name&gt;</code> on the first line. Your farmer's name should be right after that. Change it to your new name.
## Search for the 2nd mention of your name (ctrl+f to 'find') and change it to your new name.
## Search for the old save ID (the number from the filename). Change it to your new number.

That's it! Launch the game and check the load menu; you'll see both saves now.

[[Category:Gameplay]]

[[de:Spielständen]]
[[en:Saves]]
[[es:Partidas guardadas]]
[[ja:セーブデータ]]
[[pt:Jogos Salvos]]
[[zh:存档]]

Навигация