“存档”的版本间的差异

来自Stardew Valley Wiki
跳到导航 跳到搜索
第109行: 第109行:
 
#*# 尝试 [[#Undo the last save|撤销上一次存档]].
 
#*# 尝试 [[#Undo the last save|撤销上一次存档]].
 
#* 如果存档文件不存在,但是你已安装了 SMAPI, 可通过下面的方式恢复备份:
 
#* 如果存档文件不存在,但是你已安装了 SMAPI, 可通过下面的方式恢复备份:
#*# Find your [[Modding:Player Guide/Getting Started#Find your game folder|game folder]].
+
#*# 找到你的 [[Modding:Player Guide/Getting Started#Find your game folder| 游戏文件夹]].
 
#*# 打开 <tt>save-backups</tt> 子文件夹.
 
#*# 打开 <tt>save-backups</tt> 子文件夹.
 
#*# 解压最新的包含了你的存档的备份文件,并且复制存档文件夹然后粘贴到 <tt>Saves</tt>。
 
#*# 解压最新的包含了你的存档的备份文件,并且复制存档文件夹然后粘贴到 <tt>Saves</tt>。

2021年8月2日 (一) 07:16的版本

数据是无价的,当你打开本页面及其相关页面准备对存档或者游戏本身进行任何修改操作的时候,请记得备份相应文件。

Robin building.png
“我这里还有很多事情需要处理。”
— 罗宾

不完整的翻译

本文或部分尚未完全翻译成中文。 欢迎您通过编辑帮助其建设。
最后编辑EliGre于2021-08-02 07:16:11.

有关移动端游戏的保存机制,参见:手机存档

游戏中的一天结束时会保存当前进度,例如:主角睡觉、过于疲劳而昏倒、在凌晨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. 打开文件管理器。如果你的设备没有文件管理器,你得有一个具有设备存储空间读写权限的软件。
  2. 找到并选中名为 StardewValley 的文件夹。
  3. 每一个带有类似于 JonSnow_123456789 的子文件是一个存档卡槽。

手机 (iOS系统)(针对于简体中文版本的iOS)

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

  1. 打开 文件应用。
  2. 点击屏幕上的的浏览按钮。
  3. 在位置部分下,点击 我的iPhone/iPad.
  4. 选择 Stardew Valley 文件夹.
  5. 里面的每个子文件夹名称格式为JonSnow_123456789是一个存档。

iOS 12 或者更早的iOS系统版本:
提示: 在 macOS 10.15 上,此 iTunes 功能已移至Finder(查找器)。

  1. 打开电脑上的iTunes。
  2. 使用数据线将手机连接到电脑上的USB接口上。
  3. 当 iTunes 打开时,单击顶部工具栏中的设备图标(如果该图标未出现,请尝试断开并重新连接设备 USB 接口)。 设备的页面应该出现。
  4. 单击左侧菜单中的“文件共享”。
  5. 在出现的“应用程序”列表中单击 Stardew Valley。
  6. “Stardew Valley Documents”面板显示您的 iOS 设备上已经存在哪些保存文件。 (它们显示为文件夹,但您无法直接导航到文件夹中。)

传输你的存档

在两台电脑间进行备份或者传递存档

  1. 找到你的存档文件夹
  2. 将例如 JonSnow_123456789 这样的文件夹整个压缩打包成一个单独的文件。
  3. 分享或者备份存储这个压缩包文件。

注意:

  • 上述方法不是唯一解;
  • 压缩包文件某种程度上可以保证文件在传递过程中不会出现文件丢失的情况。

Android

Android手机传递到电脑
  1. 通过网络云盘、USB、蓝牙、WiFi、FTP或NSA等任意一种途径将你的设备和电脑连接起来。
  2. 浏览手机内部存储,找到并发送 StardewValley 至电脑。
  3. 将整个存档文件(StardewValley 的子文件中类似 JonSnow_123456789 这样的子文件) 复制到电脑游戏存档路径中。
电脑传递到Android手机
  1. 如果你使用了mod,在传输前你必须把自定义内容(mod、材质包、替换文件等非官方编译的游戏运行文件)全部移除。
  2. 打开电脑端存档路径
  3. 通过网络云盘、USB、蓝牙、WiFi、FTP或NSA等任意一种途径将你的设备和手机连接起来。
  4. 浏览手机内部储存,找到 StardewValley 。(这个文件夹在你第一次游玩之前是不会出现在存储空间的根目录之中的。)
  5. 在电脑端把整个存档文件(类似 JonSnow_123456789 这样的子文件)复制到手机上对应的文件夹路径中。

iOS

提示: 在 macOS 10.15 上,此 iTunes 功能已移至Finder(查找器)。

iOS 传递到电脑
  1. 在iTunes查找保存.
  2. 在 iTunes 中选择保存文件夹,然后单击“保存”按钮。
  3. 这将保存一个包含两个文件的文件夹(两个文件都是保存工作所必需的)。
  4. 将整个文件夹复制到 您计算机的保存位置.
电脑传送到iOS
  1. 如果您使用模组,请在转移到移动设备之前删除任何自定义内容。
  2. 查找您计算机上的保存文件夹
  3. 在 iTunes 中查找 iOS 保存
  4. 将整个存档文件夹(类似于 JonSnow_123456789 的文件夹)复制到 iTunes 的“Stardew Valley Documents”面板中。
    注意:每次存档都有一个文件夹。 您需要将这些文件夹中的每一个拖到 iTunes 中,以便各个保存文件夹都在“Stardew Valley Documents”面板的“root”中。 您不能将包含所有保存游戏的文件夹拖到 iTunes 中。”
  5. 单击 iTunes 中的“同步”按钮将您的 iOS 设备与您的计算机同步。 保存现在应该出现在您设备上游戏的加载游戏菜单中。

疑难解答

存档消失或者无法加载

大多数情况下可以通过一下方法恢复的你的存档。(注意:这些存档问题一般是由游戏本身导致的,而非MOD。)

  1. 找到你的存档文件.
    • 如果存档文件还在,可通过下面的办法进行修复。(请一次只尝试一种办法):
      1. 如果有些文件的文件名中包含 _STARDEWVALLEYSAVETMP , 将其从文件名中移除并重启游戏。
      2. 如果你最近重命名或者创建了一个文件夹,(例如:恢复了一个备份), 确保文件夹的名称与相应的文件完全匹配。
      3. 尝试 撤销上一次存档.
    • 如果存档文件不存在,但是你已安装了 SMAPI, 可通过下面的方式恢复备份:
      1. 找到你的 游戏文件夹.
      2. 打开 save-backups 子文件夹.
      3. 解压最新的包含了你的存档的备份文件,并且复制存档文件夹然后粘贴到 Saves
  2. 如果以上方法无效,通过see this guideask for help; 我们可能会找到方法帮你恢复你的存档。

注意: 不要在游戏启动之前,将备份文件夹置于存档文件夹中。要么将其置于不同的文件夹内,要么删除他们。

回档到前一天

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.