Changes

Jump to navigation Jump to search
204 bytes added ,  18:48, 4 November 2021
m
Text replacement - "tt>" to "samp>"
Line 9: Line 9:  
The saves are stored as XML files on your computer or mobile device. They're stored separately from your game, so you can safely reinstall or update the game without losing them. On PC, they're shared between different copies of the game (e.g. if you buy it from both GOG and Steam).
 
The saves are stored as XML files on your computer or mobile device. They're stored separately from your game, so you can safely reinstall or update the game without losing them. On PC, 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.
+
Each save has a folder like <samp>JonSnow_123456789</samp>, with two main files inside it: <samp>JonSnow_123456789</samp> and <samp>SaveGameInfo</samp>. Both files are needed to load the save.
    
==Find your save files==
 
==Find your save files==
Line 20: Line 20:     
===Linux===
 
===Linux===
The root directory for save files is specified by the XDG_CONFIG_HOME environment variable, which defaults to <tt>~/.config/</tt>
+
The root directory for save files is specified by the XDG_CONFIG_HOME environment variable, which defaults to <samp>~/.config/</samp>
 
# From ''Files'', click ''Go » Enter Location''.
 
# From ''Files'', click ''Go » Enter Location''.
 
# Enter this exact text: <pre>~/.config/StardewValley/Saves</pre>
 
# Enter this exact text: <pre>~/.config/StardewValley/Saves</pre>
Line 32: Line 32:  
===Mobile (Android)===
 
===Mobile (Android)===
 
# Open your device's file explorer app. If your device does not come with a file explorer, you will need one that allows navigation of the internal storage, not just searching for a specific file.
 
# Open your device's file explorer app. If your device does not come with a file explorer, you will need one that allows navigation of the internal storage, not just searching for a specific file.
# Select the <tt>StardewValley</tt> folder.
+
# Select the <samp>StardewValley</samp> folder.
# Each subfolder inside with a name in the format of <tt>JonSnow_123456789</tt> is a save slot.
+
# Each subfolder inside with a name in the format of <samp>JonSnow_123456789</samp> is a save slot.
    
===Mobile (iOS)<span id="find-ios-saves"></span>===
 
===Mobile (iOS)<span id="find-ios-saves"></span>===
 
'''On iOS 13 or later:'''
 
'''On iOS 13 or later:'''
# Open the <tt>Files</tt> app.
+
# Open the <samp>Files</samp> app.
# On iPhone, tap the <tt>Browse</tt> button on the bottom-right side of the screen, on iPad, ensure the left (menu) panel is displayed, or tap the top-left button to display it.
+
# On iPhone, tap the <samp>Browse</samp> button on the bottom-right side of the screen, on iPad, ensure the left (menu) panel is displayed, or tap the top-left button to display it.
# Under the Locations section, tap <tt>On My iPhone/iPad</tt>.
+
# Under the Locations section, tap <samp>On My iPhone/iPad</samp>.
# Select the <tt>Stardew Valley</tt> folder.
+
# Select the <samp>Stardew Valley</samp> folder.
# Each subfolder inside with a name in the format of <tt>JonSnow_123456789</tt> is a save slot.
+
# Each subfolder inside with a name in the format of <samp>JonSnow_123456789</samp> is a save slot.
    
'''On iOS 12 or earlier:'''<br />
 
'''On iOS 12 or earlier:'''<br />
Line 62: Line 62:  
===Back up or transfer between two PCs===
 
===Back up or transfer between two PCs===
 
# [[#Find your save files|Find your save files]].
 
# [[#Find your save files|Find your save files]].
# Zip the entire folder that looks like <tt>JonSnow_123456789</tt>.
+
# Zip the entire folder that looks like <samp>JonSnow_123456789</samp>.
 
# Share or back up that zip file.
 
# Share or back up that zip file.
   Line 69: Line 69:     
::# [https://support.google.com/android/answer/9064445 Connect the device to your PC].
 
::# [https://support.google.com/android/answer/9064445 Connect the device to your PC].
::# Browse to internal shared storage > <tt>StardewValley</tt>.
+
::# Browse to internal shared storage > <samp>StardewValley</samp>.
::# Copy the entire save folder (the one that looks like <tt>JonSnow_123456789</tt>) into [[#Find your save files|your computer's saves folder]].
+
::# Copy the entire save folder (the one that looks like <samp>JonSnow_123456789</samp>) into [[#Find your save files|your computer's saves folder]].
 
::# Remove the <code>.bin</code> file extension from all of the files in the transferred folder.
 
::# Remove the <code>.bin</code> file extension from all of the files in the transferred folder.
   Line 78: Line 78:  
::# [[#Find your save files|Find the save folder on your computer]].
 
::# [[#Find your save files|Find the save folder on your computer]].
 
::# [https://support.google.com/android/answer/9064445 Connect the device to your PC].
 
::# [https://support.google.com/android/answer/9064445 Connect the device to your PC].
::# Browse to internal shared storage > <tt>StardewValley</tt>.  
+
::# Browse to internal shared storage > <samp>StardewValley</samp>.  
 
::#*The folder won't appear if you haven't created a save on Android yet.
 
::#*The folder won't appear if you haven't created a save on Android yet.
::# Copy the entire save folder (the one that looks like <tt>JonSnow_123456789</tt>) into the saves folder on your device.
+
::# Copy the entire save folder (the one that looks like <samp>JonSnow_123456789</samp>) into the saves folder on your device.
    
===iOS===
 
===iOS===
Line 96: Line 96:  
::# [[#Find your save files|Find the save folder on your computer]].
 
::# [[#Find your save files|Find the save folder on your computer]].
 
::# [[#find-ios-saves|Find the iOS saves in iTunes]].
 
::# [[#find-ios-saves|Find the iOS saves in iTunes]].
::# Copy the entire save folder (the one that looks like <tt>JonSnow_123456789</tt>) into the 'Stardew Valley Documents' panel in iTunes.<br />''Note: there's one folder for each save. You need to drag each of these folders into iTunes, so that the individual save folders are all in the 'root' of the 'Stardew Valley Documents' panel. You can't drag the folder containing all your save games into iTunes.''
+
::# Copy the entire save folder (the one that looks like <samp>JonSnow_123456789</samp>) into the 'Stardew Valley Documents' panel in iTunes.<br />''Note: there's one folder for each save. You need to drag each of these folders into iTunes, so that the individual save folders are all in the 'root' of the 'Stardew Valley Documents' panel. You can't drag the folder containing all your save games into iTunes.''
 
::# Click the 'sync' button in iTunes to synchronize your iOS device with your computer. The save should now appear in the game's Load Game menu on your device.
 
::# Click the 'sync' button in iTunes to synchronize your iOS device with your computer. The save should now appear in the game's Load Game menu on your device.
   Line 105: Line 105:     
::#Navigate to [[#Find your save files | your Vita's save folder]]
 
::#Navigate to [[#Find your save files | your Vita's save folder]]
::#Press triangle on your save folder (the one that looks like <tt>JonSnow_123456789</tt>) and select Copy.
+
::#Press triangle on your save folder (the one that looks like <samp>JonSnow_123456789</samp>) and select Copy.
 
::#Navigate to <code>ux0:/data/</code>.
 
::#Navigate to <code>ux0:/data/</code>.
 
::#Press triangle and select Paste.
 
::#Press triangle and select Paste.
Line 113: Line 113:     
::# If you use mods, remove any custom content before transferring to Vita.
 
::# If you use mods, remove any custom content before transferring to Vita.
::# Find the save folder [[#Find your save files|on your PC/Android device]] (the one that looks like <tt>JonSnow_123456789</tt>).
+
::# Find the save folder [[#Find your save files|on your PC/Android device]] (the one that looks like <samp>JonSnow_123456789</samp>).
 
::# Transfer your save folder to <code>ux0:/data/</code> via FTP or USB with Vita Shell.
 
::# Transfer your save folder to <code>ux0:/data/</code> via FTP or USB with Vita Shell.
 
::#*'''Android''': Remove the <code>.bin</code> file extension from all of the files in the transferred folder by pressing triangle and selecting Rename.
 
::#*'''Android''': Remove the <code>.bin</code> file extension from all of the files in the transferred folder by pressing triangle and selecting Rename.
Line 127: Line 127:  
#* If the files are still there, here are some common fixes (try one at a time):
 
#* If the files are still there, here are some common fixes (try one at a time):
 
#*# If some of the files have <code>_STARDEWVALLEYSAVETMP</code> in the name, remove that from their name and reload the game. You may need to first disable Steam cloud saves for SDV, as it can keep automatically renaming them every time you reload. To do that, go to Stardew Valley in your Steam library, click the gear icon and go to Properties, and uncheck the option to sync cloud saves.
 
#*# If some of the files have <code>_STARDEWVALLEYSAVETMP</code> in the name, remove that from their name and reload the game. You may need to first disable Steam cloud saves for SDV, as it can keep automatically renaming them every time you reload. To do that, go to Stardew Valley in your Steam library, click the gear icon and go to Properties, and uncheck the option to sync cloud saves.
#*# If you recently renamed or created the folder (e.g. to restore a backup), make sure the folder name '''exactly''' matches the file that looks like <tt>YourName_0123456789</tt>.
+
#*# If you recently renamed or created the folder (e.g. to restore a backup), make sure the folder name '''exactly''' matches the file that looks like <samp>YourName_0123456789</samp>.
 
#*# Try [[#Undo the last save|undoing the last save]].
 
#*# Try [[#Undo the last save|undoing the last save]].
 
#*# If you are on PC, ensure that the game files do not have an extension like <code>.bin</code>. If you are on Android, you may need to add the file extension <code>.bin</code>.
 
#*# If you are on PC, ensure that the game files do not have an extension like <code>.bin</code>. If you are on Android, you may need to add the file extension <code>.bin</code>.
Line 133: Line 133:  
#* If the files are missing but you have SMAPI installed, here's how to recover a backup:
 
#* If the files are missing but you have SMAPI installed, here's how to recover a backup:
 
#*# Find your [[Modding:Player Guide/Getting Started#Find your game folder|game folder]].
 
#*# Find your [[Modding:Player Guide/Getting Started#Find your game folder|game folder]].
#*# Open the <tt>save-backups</tt> subfolder.
+
#*# Open the <samp>save-backups</samp> subfolder.
#*# Unzip the latest backup which has your save, and copy the save folder back into <tt>Saves</tt>.
+
#*# Unzip the latest backup which has your save, and copy the save folder back into <samp>Saves</samp>.
 
# If the above fixes didn't help, [https://community.playstarbound.com/threads/missing-corrupt-save-file-troubleshooting-guide.112827/ see this guide] or [[Modding:Player Guide/Troubleshooting#Ask for help|ask for help]]; we might be able to recover the save for you.
 
# If the above fixes didn't help, [https://community.playstarbound.com/threads/missing-corrupt-save-file-troubleshooting-guide.112827/ see this guide] or [[Modding:Player Guide/Troubleshooting#Ask for help|ask for help]]; we might be able to recover the save for you.
   Line 144: Line 144:  
For a save from Linux/Mac/Windows/Android:
 
For a save from Linux/Mac/Windows/Android:
   −
:# [[#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>
+
:# [[#Find your save files|Find your save files]].<br /><small>You should see two files with an <samp>_old</samp> suffix in the name; if not, ask for help instead!</small>
 
:# Back up your save folder just in case.
 
:# Back up your save folder just in case.
:# Delete <tt>SaveGameInfo</tt> and the file that looks like <tt>YourName_123456789</tt>.
+
:# Delete <samp>SaveGameInfo</samp> and the file that looks like <samp>YourName_123456789</samp>.
:# Remove the <tt>_old</tt> suffix from <tt>SaveGameInfo_old</tt> and the file that looks like <tt>YourName_123456789_old</tt>.
+
:# Remove the <samp>_old</samp> suffix from <samp>SaveGameInfo_old</samp> and the file that looks like <samp>YourName_123456789_old</samp>.
    
For a save from iOS:
 
For a save from iOS:
   −
:# [[#Find your save files|Find your save files]].<br /><small>You should see a file with an <tt>_SVBAK</tt> suffix in the name; if not, ask for help instead!</small>
+
:# [[#Find your save files|Find your save files]].<br /><small>You should see a file with an <samp>_SVBAK</samp> suffix in the name; if not, ask for help instead!</small>
 
:# Back up your save folder just in case.
 
:# Back up your save folder just in case.
:# Delete the files that look like <tt>YourName_123456789</tt> and <tt>YourName_123456789_SVEMERG</tt>.
+
:# Delete the files that look like <samp>YourName_123456789</samp> and <samp>YourName_123456789_SVEMERG</samp>.
:# Remove the <tt>_SVBAK</tt> suffix from the file that looks like <tt>YourName_123456789_SVBAK</tt>.
+
:# Remove the <samp>_SVBAK</samp> suffix from the file that looks like <samp>YourName_123456789_SVBAK</samp>.
    
==Advanced==
 
==Advanced==
Line 165: Line 165:  
# Use the Package Control extension to install the ''Indent XML'' and ''XPath'' plugins (see [https://packagecontrol.io/docs/usage how to add plugins]).
 
# Use the Package Control extension to install the ''Indent XML'' and ''XPath'' plugins (see [https://packagecontrol.io/docs/usage how to add plugins]).
 
# Make a backup of [[#Find your save files|your save file]] just in case something goes wrong.
 
# Make a backup of [[#Find your save files|your save file]] just in case something goes wrong.
# Open [[#Find your save files|your save file]] (the file that looks like <tt>Name_0123456789</tt>) in Sublime Text.
+
# Open [[#Find your save files|your save file]] (the file that looks like <samp>Name_0123456789</samp>) in Sublime Text.
 
# Click Selection > Format > Indent XML.
 
# Click Selection > Format > Indent XML.
 
# Make any changes you want and save. (See the sections below, [https://www.reddit.com/r/StardewValley/comments/8i5z1j/guide_how_to_change_hosts_of_a_multiplayer_save/ this guide for changing the host of a co-op save], and [http://community.playstarbound.com/threads/save-file-editing-guide-for-solving-some-common-issues.110762/ this guide for other changes].)
 
# Make any changes you want and save. (See the sections below, [https://www.reddit.com/r/StardewValley/comments/8i5z1j/guide_how_to_change_hosts_of_a_multiplayer_save/ this guide for changing the host of a co-op save], and [http://community.playstarbound.com/threads/save-file-editing-guide-for-solving-some-common-issues.110762/ this guide for other changes].)
Line 171: Line 171:  
'''Tips:'''
 
'''Tips:'''
 
<ul>
 
<ul>
<li>Click an element, and press <tt>CTRL</tt> + <tt>SHIFT</tt> + <tt>[</tt> to collapse the whole section which contains it. This is useful when you want to ignore a large field. For example, given this text in the save file:
+
<li>Click an element, and press <samp>CTRL</samp> + <samp>SHIFT</samp> + <samp>[</samp> to collapse the whole section which contains it. This is useful when you want to ignore a large field. For example, given this text in the save file:
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 
<ArrayOfInt>
 
<ArrayOfInt>
Line 182: Line 182:  
</ArrayOfInt>
 
</ArrayOfInt>
 
</syntaxhighlight>
 
</syntaxhighlight>
Click on one of the <tt><int></tt> fields and press those keys, and it will collapse into this:
+
Click on one of the <samp><int></samp> fields and press those keys, and it will collapse into this:
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 
<ArrayOfInt> […]
 
<ArrayOfInt> […]
Line 188: Line 188:  
</syntaxhighlight>
 
</syntaxhighlight>
 
</li>
 
</li>
<li>Click any element, and look in the status bar to see the path to where you are in the save format (like <tt>/SaveGame/player/friendships/item[32]</tt>).</li>
+
<li>Click any element, and look in the status bar to see the path to where you are in the save format (like <samp>/SaveGame/player/friendships/item[32]</samp>).</li>
 
</ul>
 
</ul>
   Line 202: Line 202:  
## Open the new folder for the next steps.
 
## Open the new folder for the next steps.
 
# Prepare the new files:
 
# Prepare the new files:
## Delete any file whose name ends with <tt>_old</tt> or <tt>.back.*</tt>.
+
## Delete any file whose name ends with <samp>_old</samp> or <samp>.back.*</samp>.
## Rename the file that looks like <tt>Name_0123456789</tt> to match your new folder name.
+
## Rename the file that looks like <samp>Name_0123456789</samp> to match your new folder name.
 
# Edit the save metadata:
 
# Edit the save metadata:
## Open the <tt>SaveGameInfo</tt> file in a text editor like Notepad.
+
## Open the <samp>SaveGameInfo</samp> 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.
 
## 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 2nd mention of your name (ctrl+f to 'find') and change it to your new name.
 
# Edit the save file:
 
# Edit the save file:
## Open the file that looks like <tt>Name_0123456789</tt> in a text editor like Notepad.
+
## Open the file that looks like <samp>Name_0123456789</samp> 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.
 
## 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 2nd mention of your name (ctrl+f to 'find') and change it to your new name.
Line 221: Line 221:  
<ol>
 
<ol>
 
<li>[[#Edit a save|Open your save file for editing]].</li>
 
<li>[[#Edit a save|Open your save file for editing]].</li>
<li>Search for <tt>&lt;whichFarm&gt;</tt>. The number after that open tag is the farm type.</li>
+
<li>Search for <samp>&lt;whichFarm&gt;</samp>. The number after that open tag is the farm type.</li>
 
<li>Change the number to the one you want:
 
<li>Change the number to the one you want:
 
{| class="wikitable"
 
{| class="wikitable"
Line 285: Line 285:  
# [[#Edit a save|Open your save file for editing]]. Make sure you format the file for readability per those instructions.
 
# [[#Edit a save|Open your save file for editing]]. Make sure you format the file for readability per those instructions.
 
# Remove the NPC:
 
# Remove the NPC:
## Search for the NPC's default name between 'name' tags (e.g. to remove Penny: <tt>&lt;name&gt;Penny&lt;/name&gt;</tt>).
+
## Search for the NPC's default name between 'name' tags (e.g. to remove Penny: <samp>&lt;name&gt;Penny&lt;/name&gt;</samp>).
## Remove the entire 'NPC' section containing the line you found, starting from the previous <tt>&lt;NPC&gt;</tt> line up to and including the next <tt>&lt;/NPC&gt;</tt> line.
+
## Remove the entire 'NPC' section containing the line you found, starting from the previous <samp>&lt;NPC&gt;</samp> line up to and including the next <samp>&lt;/NPC&gt;</samp> line.
 
# ''(optional)'' Remove the NPC friendship data:
 
# ''(optional)'' Remove the NPC friendship data:
## Search for the NPC's default name between 'string' tags (e.g. to remove Penny: <tt>&lt;string&gt;Penny&lt;/string&gt;</tt>).
+
## Search for the NPC's default name between 'string' tags (e.g. to remove Penny: <samp>&lt;string&gt;Penny&lt;/string&gt;</samp>).
## Remove the entire 'item' section containing the line you found, starting from the previous <tt>&lt;item&gt;</tt> line up to the next <tt>&lt;/item&gt;</tt> line.
+
## Remove the entire 'item' section containing the line you found, starting from the previous <samp>&lt;item&gt;</samp> line up to the next <samp>&lt;/item&gt;</samp> line.
    
[[Category:Gameplay]]
 
[[Category:Gameplay]]
105,580

edits

Navigation menu