存檔

於 2020年11月28日 (六) 03:50 由 BolingH對話 | 貢獻 所做的修訂 (修正语言。)

數據是無價的,當你打開本頁面及其相關頁面準備對存檔或者遊戲本身進行任何修改操作的時候,請記得備份相應文件。

Robin building.png
“我這裏還有很多事情需要處理。”
— 羅賓

不完整的翻譯

本文或部分尚未完全翻譯成中文。 歡迎您通過編輯幫助其建設。
最後編輯BolingH於2020-11-28 03:50:33.

有關移動端遊戲的保存機制,參見:手機存檔

遊戲中的一天結束時會保存當前進度, 例如,主角睡覺、過於疲勞而昏倒、在凌晨2點昏倒。如果玩家在一天還未結束時退出遊戲會失去這天的所有進度。

存檔文件格式

遊戲存檔以XML的文件格式存儲在你的設備上。存檔文件和遊戲運行文件是分開儲存在不同的文件夾中。你可以安全地重裝或卸載遊戲,而不用擔心存檔遭到刪除。在PC端,不同平台(GOG,steam)發售的星露谷的存檔是通用的(本質上不同數字遊戲發售平台發售的版本的核心遊戲文件是完全一樣的)。

注意:某些mod可能會永久性更改存檔文件,當你再次安裝遊戲並且沒有安裝相應的mod的時候,會產生存檔損壞的嚴重結果(缺乏了必須的運行文件,即mod丟失)。具體詳見各個mod開發者在mod發佈頁或者mod內含的Readme文件中所警告的內容。

每個存檔文件都有一個類似JonSnow_123456789的文件夾,文件夾內有兩個主要文件:JonSnow_123456789SaveGameInfo。這兩個文件是遊戲加載存檔時必須的重要文件。

遊戲存檔位置

存檔是在你計算機上的一些XML文件。存檔與遊戲放在不同的地方,所以你可以安全地重新安裝或更新遊戲,而不會丟失存檔。存檔在不同的遊戲版本之間共享(舉個例子,分別從GOG和Steam購買的遊戲共享同一個存檔)。

每個存檔都放在單獨的文件夾,就像這樣:角色名字_123456789, 文件夾里有兩個主要文件:角色名字_123456789SaveGameInfo。這兩個文件都是必要的。

Windows系統

以下為找到存檔的方法:

  1. 按鍵盤上的Windows + R打開'運行'窗口。
  2. 複製並粘貼此路逕到輸入框:
    %appdata%\StardewValley\Saves
  3. 點擊'確定'即可打開文件夾。

Linux系統

以下為找到存檔的方法:

  1. 打開Files,點擊 Go » Enter Location
  2. 複製並粘貼此路徑:
    ~/.config/StardewValley/Saves
  3. 提交即可打開文件夾。

Mac系統

以下為找到存檔的方法:

  1. 打開Finder,點擊Go » Go to Folder.
  2. 複製並粘貼此路徑:
    ~/.config/StardewValley/Saves
  3. 提交即可打開文件夾。

手機 (Android系統)

  1. 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.
  2. Select the StardewValley folder.
  3. Each subfolder inside with a name in the format of JonSnow_123456789 is a save slot.

手機 (iOS系統)

iOS 13 或者更新的iOS系統版本

  1. Open the Files app.
  2. Tap the Browse button on the bottom-right side of the screen.
  3. Under the Locations section, tap On My iPhone/iPad.
  4. Select the Stardew Valley folder.
  5. Each subfolder inside with a name in the format of JonSnow_123456789 is a save slot.

iOS 12 或者更早的iOS系統版本:
Note: On macOS 10.15 this iTunes feature has been moved to the Finder.

  1. Open iTunes on your computer.
  2. Attach your iOS device via USB.
  3. When iTunes opens, click on the device icon in the top toolbar (If the icon doesn't appear, try disconnecting and reconnecting the device USB cable). The device's page should appear.
  4. Click 'File Sharing' in the menu on the left.
  5. Click Stardew Valley in the 'apps' list that appears.
  6. 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.)

備份或分享你的存檔

在兩台電腦間進行備份或者傳遞存檔

  1. Find your save files.
  2. Zip the entire folder that looks like JonSnow_123456789.
  3. Share or back up that zip file.

Android

Android手機傳遞到電腦
  1. Connect the device to your PC.
  2. Browse to internal shared storage > StardewValley.
  3. Copy the entire save folder (the one that looks like JonSnow_123456789) into your computer's saves folder.
電腦傳遞到Android手機
  1. If you use mods, remove any custom content before transferring to mobile.
  2. Find the save folder on your computer.
  3. Connect the device to your PC.
  4. Browse to internal shared storage > StardewValley. (The folder won't appear if you haven't created a save on Android yet.)
  5. 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 this iTunes feature has been moved to the Finder.

iOS 傳遞到電腦
  1. Find the saves in iTunes.
  2. Choose the save folder in iTunes and click the 'save' button.
  3. That will save a folder containing two files (both required for the save to work).
  4. Copy the whole folder to your computer's save location.
電腦傳遞到 iOS
  1. If you use mods, remove any custom content before transferring to mobile.
  2. Find the save folder on your computer.
  3. Find the iOS saves in iTunes.
  4. 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.
  5. 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.

疑難解答

存檔消失或者無法加載

Here's how to recover your save in most cases. (Note that save issues are almost always caused by the game itself, not mods.)

  1. Find your save files.
    • If the files are still there, here are some common fixes (try one at a time):
      1. If some of the files have _STARDEWVALLEYSAVETMP in the name, remove that from their name and reload the game.
      2. 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 YourName_0123456789.
      3. Try undoing the last save.
    • If the files are missing but you have SMAPI installed, here's how to recover a backup:
      1. Find your game folder.
      2. Open the save-backups subfolder.
      3. Unzip the latest backup which has your save, and copy the save folder back into Saves.
  2. 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.

取消最後一次保存進度

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

For a save from Linux/Mac/Windows/Android:

  1. Find your save files.
    You should see two files with an _old suffix in the name; if not, ask for help instead!
  2. Back up your save folder just in case.
  3. Delete SaveGameInfo and the file that looks like YourName_123456789.
  4. Remove the _old suffix from SaveGameInfo_old and the file that looks like YourName_123456789_old.

For a save from iOS:

  1. Find your save files.
    You should see a file with an _SVBAK suffix in the name; if not, ask for help instead!
  2. Back up your save folder just in case.
  3. Delete the files that look like YourName_123456789 and YourName_123456789_SVEMERG.
  4. Remove the _SVBAK suffix from the file that looks like YourName_123456789_SVBAK.

高級

編輯存檔

 
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 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.

  1. 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.)
  2. Install the Package Control extension for Sublime Text.
  3. Use the Package Control extension to install the Indent XML and XPath plugins (see how to add plugins).
  4. Open your save file (the file that looks like Name_0123456789) in Sublime Text.
  5. Click Selection > Format > Indent XML.
  6. 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]).

複製存檔

你可以複製一個存檔來測試一些有特定目的的活動,而不必擔心這些實驗性活動更改了你的存檔,並避免了為了測試一些選項而重開一個新存檔的麻煩事。

  1. Find your save files.
  2. Create the new save folder:
    1. Duplicate the target save folder.
    2. 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.
    3. Open the new folder for the next steps.
  3. Prepare the new files:
    1. Delete any file whose name ends with _old or .back.*.
    2. Rename the file that looks like Name_0123456789 to match your new folder name.
  4. Edit the save metadata:
    1. Open the SaveGameInfo file in a text editor like Notepad.
    2. Look for <name> on the first line. Your farmer's name should be right after that. Change it to your new name.
    3. Search for the 2nd mention of your name (ctrl+f to 'find') and change it to your new name.
  5. Edit the save file:
    1. Open the file that looks like Name_0123456789 in a text editor like Notepad.
    2. Look for <name> on the first line. Your farmer's name should be right after that. Change it to your new name.
    3. Search for the 2nd mention of your name (ctrl+f to 'find') and change it to your new name.
    4. 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.

更改農場類型

你可以通過更改遊戲存檔文件來變更你的農場類型

  1. Open your save file for editing.
  2. Search for <whichFarm>. The number after that open tag is the farm type.
  3. 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

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. Here are some ways to fix that:

  • Take note of what's out of bounds, then switch back to the old farm type and move them.
  • If you use SMAPI, install the Noclip Mode mod to reach things that are out of bounds, so you can remove or move them.
  • If you use SMAPI, enter one of these commands in the SMAPI console:
    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.

移除一個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.

  1. Open your save file for editing. Make sure you format the file for readability per those instructions.
  2. Remove the NPC:
    1. Search for the NPC's default name between 'name' tags (e.g. to remove Penny: <name>Penny</name>).
    2. Remove the entire 'NPC' section containing the line you found, starting from the previous <NPC> line up to and including the next </NPC> line.
  3. (optional) Remove the NPC friendship data:
    1. Search for the NPC's default name between 'string' tags (e.g. to remove Penny: <string>Penny</string>).
    2. Remove the entire 'item' section containing the line you found, starting from the previous <item> line up to the next </item> line.

zh:存檔