Différences entre versions de « Jeux sauvegardés »
(+link) |
(→Save format : Traduction) |
||
Ligne 8 : | Ligne 8 : | ||
A save file may be transferred to a different device family (''e.g.,'' from mobile to PC) as long as the game version on the receiving device is not older than the save file's version tag. For example, a save file from a mobile device running version 1.4 can be transferred to and used on a PC running {{version|link=0}}, but a {{version|link=0}} PC save file will not run on a mobile device with version 1.4. | A save file may be transferred to a different device family (''e.g.,'' from mobile to PC) as long as the game version on the receiving device is not older than the save file's version tag. For example, a save file from a mobile device running version 1.4 can be transferred to and used on a PC running {{version|link=0}}, but a {{version|link=0}} PC save file will not run on a mobile device with version 1.4. | ||
− | == | + | ==Format de sauvegarde== |
− | + | Les sauvegardes sont répertoriées en tant que fichiers XML sur votre ordinateur ou appareil mobile. Elles sont répertoriées séparément de votre jeu, signifiant que vous pouvez réinstaller ou mettre à jour le jeu en toute sécurité sans perdre vos sauvegardes. Sur PC, elles sont partagées entre différentes copies du jeu (''ex.,'' Si vous l'achetez sur GOG et sur Steam). | |
− | + | Chaque sauvegarde à un dossier tel que <samp>JonSnow_123456789</samp>, contenant deux fichiers principaux: <samp>JonSnow_123456789</samp> and <samp>SaveGameInfo</samp>. Les deux fichiers sont nécessaires afin de charger la sauvegarde. | |
==Find your save files== | ==Find your save files== |
Version du 21 juin 2024 à 07:54
![]() |
Traduction incomplète Cet article ou cette section n'a pas été complètement traduit en français.
Vous êtes invités à aider à sa traduction en la révisant. |
- For information about how the game saves progress on mobile devices, see Mobile Saves.
A la fin de chaque cycle de jour, une "sauvegarde" s'effectue, c'est à dire, lorsque le joueur va au lit, ou si il s'effondre de fatigue à 2:00. A noter que toute action réalisée pendant une journée est définitivement perdue si le joueur quitte le jeu sans terminer la journée. En multijoueur, le jeu sauvegarde après que l'intégralité des joueurs passent le menu résumant le gain d'argent avant de se réveiller le matin.
Save files are tagged with the version of the game that last saved the file (e.g., <gameVersion>1.6</gameVersion>
). An older version of the game is not able to load a newer save file, but a newer version can load an older save. Once a newer version saves over an older save file (e.g., when you save for the first time after the game itself was updated to a new version), the save file will be tagged with the newer version number.
A save file may be transferred to a different device family (e.g., from mobile to PC) as long as the game version on the receiving device is not older than the save file's version tag. For example, a save file from a mobile device running version 1.4 can be transferred to and used on a PC running 1.6, but a 1.6 PC save file will not run on a mobile device with version 1.4.
Format de sauvegarde
Les sauvegardes sont répertoriées en tant que fichiers XML sur votre ordinateur ou appareil mobile. Elles sont répertoriées séparément de votre jeu, signifiant que vous pouvez réinstaller ou mettre à jour le jeu en toute sécurité sans perdre vos sauvegardes. Sur PC, elles sont partagées entre différentes copies du jeu (ex., Si vous l'achetez sur GOG et sur Steam).
Chaque sauvegarde à un dossier tel que JonSnow_123456789, contenant deux fichiers principaux: JonSnow_123456789 and SaveGameInfo. Les deux fichiers sont nécessaires afin de charger la sauvegarde.
Find your save files
Note: in multiplayer, the save is only on the main player's computer.
Windows
- Press Windows + R to show a 'run' dialogue box.
- Paste this exact text:
platform path Steam or GOG %appdata%\StardewValley\Saves
Xbox app %localappdata%\Packages\ConcernedApe.StardewValleyPC_0c8vynj4cqe4e\LocalCache\Roaming\StardewValley\Saves
Note: if you also own the game on Steam or GOG, saves may be stored in their save folder instead. - Click 'OK' to open the folder.
Linux
The root directory for save files is specified by the XDG_CONFIG_HOME environment variable, which defaults to ~/.config/
- From Files, click Go » Enter Location.
- Enter this exact text:
~/.config/StardewValley/Saves
- Submit to open the folder.
Mac
- From Finder, click Go » Go to Folder.
- Enter this exact text:
~/.config/StardewValley/Saves
- Submit to open the folder.
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.
- Select the StardewValley folder.
- Each subfolder inside with a name in the format of JonSnow_123456789 is a save slot.
Mobile (iOS)
- Open the Files app.
- On iPhone, tap the Browse button on the bottom-right side of the screen. On iPad, tap the top-left button if needed to show the left sidebar menu.
- Under the Locations section, tap On My iPhone/iPad.
- Select the Stardew Valley folder.
- Each subfolder inside with a name like JonSnow_123456789 is a save slot.
- On iOS 12 or earlier:
Devices still on iOS 12 or earlier will need to be connected to a Mac or Windows computer to access your save files.
- On Mac, Open the Finder. On Windows, download iTunes and open it. (If your device is on macOS 10.14 or earlier, open iTunes instead of the Finder.)
- Attach your iOS device via USB.
- In the Finder/iTunes, click on the device icon in the top toolbar. (If the icon isn't shown, try disconnecting and reconnecting the USB cable.) The device's page should appear.
- Click File Sharing in the menu on the left.
- Click Stardew Valley in the app list that appears.
- The Stardew Valley Documents panel shows which save files are already on your iOS device. (They appear as folders, but you can't navigate into the folders directly.)
PS Vita
Note: Access to the Vita filesystem requires custom firmware (CFW)
- Navigate to
ux0:/user/00/savedata/
in Vita Shell. - Highlight the PCSE01235 folder and press triangle.
- Select "Open decrypted" at the top of the list.
Nintendo Switch
Note: Access to a Switch's saves requires custom firmware (CFW)
- Download and install JKSV
- Open JKSV and navigate to Stardew Valley.
- Select New, and call it whatever you want.
- In either the Hekate SD card access tool or an FTP server, copy over
sd:/JKSV/Stardew Valley/NameOfTheSaveYouSaved.zip
.
Transfer a save
Back up or transfer between two PCs
- Find your save files.
- Zip the entire folder that looks like JonSnow_123456789.
- Share or back up that zip file.
Android
- Android to PC
- Connect the device to your PC.
- Browse to internal shared storage > StardewValley.
- Copy the entire save folder (the one that looks like JonSnow_123456789) into your computer's saves folder.
- Remove the
.bin
file extension from all of the files in the transferred folder.
- PC to Android
- If you use mods, remove any custom content before transferring to mobile.
- Find the save folder on your computer.
- Connect the device to your PC.
- Browse to internal shared storage > StardewValley.
- 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 JonSnow_123456789) into the saves folder on your device.
iOS
Note: On macOS 10.15 and later this iTunes feature has been moved to the Finder.
- iOS to PC
- Find the saves in iTunes.
- Choose the save folder in iTunes and click the 'save' button.
- That will save a folder containing two files (both required for the save to work).
- Copy the whole folder to your computer's save location.
- PC to iOS
- If you use mods, remove any custom content before transferring to mobile.
- Find the save folder on your computer.
- Find the iOS saves in iTunes.
- Copy the entire save folder (the one that looks like JonSnow_123456789) into the 'Stardew Valley Documents' panel in iTunes.
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.
PS Vita
Note: Development on the Vita release of the game has been abandoned, leaving the final Vita version as equivalent to PC version 1.2.33 (2017). As such, a Vita save may be transferred to PC/mobile, but a modern PC/mobile save file is incompatible with Vita.
- Vita to PC/Android
- Navigate to your Vita's save folder
- Press triangle on your save folder (the one that looks like JonSnow_123456789) and select Copy.
- Navigate to
ux0:/data/
. - Press triangle and select Paste.
- Transfer the save folder to your PC/Android device save folder via FTP or USB with Vita Shell.
- PC/Android to Vita
- If you use mods, remove any custom content before transferring to Vita.
- Find the save folder on your PC/Android device (the one that looks like JonSnow_123456789).
- Transfer your save folder to
ux0:/data/
via FTP or USB with Vita Shell.- Android: Remove the
.bin
file extension from all of the files in the transferred folder by pressing triangle and selecting Rename.
- Android: Remove the
- Press triangle on your save folder and select Copy.
- Navigate to your Vita's save folder
- Press triangle and select Paste.
Nintendo Switch
- Switch to PC/Android
- Open JKSV and navigate to Stardew Valley.
- Select New, and call it whatever you want.
- In either Hekate SD card access tool or an FTP server, copy over
sd:/JKSV/Stardew Valley/NameOfTheSaveYouSaved.zip
.
- PC/Android to Switch
- Place the PC/Android saves folder in a zip in
sd:/JKSV/Stardew Valley/
. - Open JKSV and navigate to Stardew Valley.
- It is advised to create a backup (above) before the next step.
- Press Y on the save you just copied over and hold A.
- Place the PC/Android saves folder in a zip in
Troubleshooting
Save disappeared or doesn't load
Here's how to recover your save in most cases. (Note that save issues are almost always caused by the game itself, not mods.)
- Find your save files.
- If the files are still there, here are some common fixes (try one at a time):
- If some of the files have
_STARDEWVALLEYSAVETMP
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 FarmName_0123456789.
- Try undoing the last save.
- If you are on PC, ensure that the game files do not have an extension like
.bin
. If you are on Android, you may need to add the file extension.bin
. - Modded saves may not be able to load in the vanilla game, depending on the mods that were used. If you previously played with mods but are trying to launch the game in vanilla, try reinstalling SMAPI and playing a day. SMAPI will automatically clean up any custom content from your save. Note that if you still have custom items in your inventory, they will turn into blank error items and may cause issues.
- If some of the files have
- If the files are missing but you have SMAPI installed, here's how to recover a backup:
- Find your game folder.
- Open the save-backups subfolder.
- Unzip the latest backup which has your save, and copy the save folder back into Saves.
- If the files are still there, here are some common fixes (try one at a time):
- If the above fixes didn't help, see this guide or ask for help; we might be able to recover the save for you.
Note: don't keep backup folders in the saves folder, since the game will try to load them. Either move those into a different folder, or delete them.
Undo the last save
If something went wrong, you can undo the last save.
For a save from Linux/Mac/Windows/Android:
- Find your save files.
You should see two files with an _old suffix in the name; if not, ask for help instead! - Back up your save folder just in case.
- Delete SaveGameInfo and the file that looks like FarmName_123456789.
- Remove the _old suffix from SaveGameInfo_old and the file that looks like FarmName_123456789_old.
- Find your save files.
For a save from iOS:
- Find your save files.
You should see a file with an _SVBAK suffix in the name; if not, ask for help instead! - Back up your save folder just in case.
- Delete the files that look like YourName_123456789 and YourName_123456789_SVEMERG.
- Remove the _SVBAK suffix from the file that looks like YourName_123456789_SVBAK.
- Find your save files.
Advanced
Edit a save
You can edit your save to fix some common issues or change your choices. This can permanently break your save if you make a mistake; don't forget to create a backup first. You should also avoid automatic save editor tools, since they often break the save.
- Install 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 Package Control extension for Sublime Text.
- Use the Package Control extension to install the Indent XML and XPath plugins (see how to add plugins).
- Make a backup of your save file just in case something goes wrong.
- Open your save file (the file that looks like Name_0123456789) in Sublime Text.
- Click Selection > Format > Indent XML.
- Make any changes you want and save. (See the sections below, this guide for changing the host of a co-op save, and this guide for other changes.)
Tips:
- Click an element, and press CTRL + SHIFT + [ 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:
<ArrayOfInt> <int>1981</int> <int>0</int> <int>0</int> <int>0</int> <int>0</int> <int>0</int> </ArrayOfInt>
Click on one of the <int> fields and press those keys, and it will collapse into this:
<ArrayOfInt> […] </ArrayOfInt>
- Click any element, and look in the status bar to see the path to where you are in the save format (like /SaveGame/player/friendships/item[32]).
Duplicate a save
You can duplicate a save for testing purposes, or to explore different options without starting over.
- 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 (or apply the following steps to, if you want the backup as well) any file whose name ends with _old or .back.*.
- Rename the file that looks like Name_0123456789 to match your new folder name.
- Edit the save metadata:
- Open the SaveGameInfo file in a text editor like Notepad.
- Look for
<name>
or<farmName>
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 Name_0123456789 in a text editor like Notepad.
- Look for
<name>
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 (
<uniqueIDForThisGame>
, the number from the old filename). Change it to your new number.
That's it! Launch the game and check the load menu; you'll see both saves now.
Change farm type
- If you use SMAPI (mods):
You can change farm type by loading your save in-game, then entering
set_farm_type FARM_ID_HERE
in the SMAPI console window. (You can enterset_farm_type list
to see a list of farm type IDs.)That will change the farm map, but everything placed on the farm will stay where it is. You may have things in an invalid position, like trees in a lake. You can either install Noclip Mode to reach things that are out of bounds, or run one of these console commands:
command effect world_clear farm debris
remove stones, branches, weeds, and dead crops. world_clear farm trees
remove non-fruit trees. world_clear farm fruit-trees
remove fruit trees. world_clear farm grass
remove tall grass. world_clear farm everything
remove everything, including placed objects. - If you play without mods:
- You can change farm type by editing your save file:
- Open your save file for editing.
- Search for <whichFarm>. The number after that open tag is the farm type.
- Change the number to the one you want:
Code Farm Type 0 Standard Farm 1 Riverland Farm 2 Forest Farm 3 Hilltop Farm 4 Wilderness Farm 5 Four Corners Farm 6 Beach Farm
That will change the farm map, but everything placed on the farm will stay where it is. You may have things in an invalid position, like trees in a lake. You can take note of what's out of bounds, then switch back to the old farm type and move them.
Remove an NPC
You can remove an NPC from your save file (e.g., to fix an NPC permanently stuck in an invalid place). If it still exists in the game data, the NPC will respawn when you reload the save file. This should be a last resort, and is unnecessary when using SMAPI versions 3.0 and up, as SMAPI will attempt to remove this data for you.
- Open your save file for editing. Make sure you format the file for readability per those instructions.
- Remove the NPC:
- Search for the NPC's default name between 'name' tags (e.g., to remove Penny: <name>Penny</name>).
- Remove the entire 'NPC' section containing the line you found, starting from the previous <NPC> line up to and including the next </NPC> line.
- (optional) Remove the NPC friendship data:
- Search for the NPC's default name between 'string' tags (e.g., to remove Penny: <string>Penny</string>).
- Remove the entire 'item' section containing the line you found, starting from the previous <item> line up to the next </item> line.