“存档”的版本间的差异

来自Stardew Valley Wiki
跳到导航 跳到搜索
→‎回到上一次的存档点 add new text from English wiki
→‎编辑存档 add new text
第128行: 第128行:
 
:# Remove the <tt>_SVBAK</tt> suffix from the file that looks like <tt>YourName_123456789_SVBAK</tt>.
 
:# Remove the <tt>_SVBAK</tt> suffix from the file that looks like <tt>YourName_123456789_SVBAK</tt>.
  
==编辑存档==
+
==高级==
你可以编辑存档,用于修复一些常见问题或更改选择(参加[http://community.playstarbound.com/threads/save-file-editing-guide-for-solving-some-common-issues.110762/ 这篇教程]),但在那之前请务必先备份好存档。小心使用存档编辑工具,因为有存档损坏的风险。
+
===编辑存档===
 +
[[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 if you make a mistake; don't forget to [[#Back up or transfer between two PCs|create a backup first]].''' You should also avoid automatic save editor tools, since they often break the save.
  
{{collapse| 存档编辑指南(发布于2016年3月19日)- 翻译版|content=
+
# 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.)
-{{quote|有几个已知问题只能通过编辑存档来解决。我正在努力解决这些问题,在这之前请参考这篇指南来解决问题。|ConcernedApe}}
+
# Install the [https://packagecontrol.io/installation Package Control extension for Sublime Text].
 +
# Use the Package Control extension to install the ''Indent XML'' and ''XPath'' plugins (see [https://packagecontrol.io/docs/usage how to add plugins]).
 +
# 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 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].)
  
===基本信息===
+
'''Tips:'''
 +
<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:
 +
<source lang="xml">
 +
<ArrayOfInt>
 +
   <int>1981</int>
 +
   <int>0</int>
 +
   <int>0</int>
 +
   <int>0</int>
 +
   <int>0</int>
 +
   <int>0</int>
 +
</ArrayOfInt>
 +
</source>
 +
Click on one of the <tt><int></tt> fields and press those keys, and it will collapse into this:
 +
<source lang="xml">
 +
<ArrayOfInt> […]
 +
</ArrayOfInt>
 +
</source>
 +
</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>
 +
</ul>
  
[[#游戏 存档 位置|首先找到 存档 文件夹]]
+
===复制 存档===
 +
你可以复制一个 存档 来测试一些有特定目的的活动,而不必担心这些实验性活动更改了你的存档,并避免了为了测试一些选项而重开一个新存档的麻烦事。
  
在编辑任何保存文件之前,我强烈建议你做备份,以防出现问题。记事本是一个很好的编辑软件。
+
# [[#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.
  
=== 事件无法触发===
+
=== 更改农场类型===
  能是在同时触发多个事件时引起的。你只会看到一个事件,但 游戏 会认为你已经看到了所有的事件所以阻止了其他事 发生(应该在下一个补丁中修复)。要解决这个问题, 需要在存档里“忘记”发生过 事件。
+
  以通过更改 游戏 存档文 来变更 你的[[农场地图|农场类型]]:
 +
<ol>
 +
<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>Change the number to the one you want:
 +
{| class="wikitable"
 +
|-
 +
! code
 +
! farm type
 +
|-
 +
| 0
 +
| standard farm
 +
|-
 +
| 1
 +
| riverland farm
 +
|-
 +
| 2
 +
| forest farm
 +
|-
 +
| 3
 +
| hilltop farm
 +
|-
 +
| 4
 +
| wilderness farm
 +
|-
 +
| 5
 +
| four corners farm
 +
|}
 +
</li>
 +
</ol>
  
'''注意''': 某些事件要求在发生之前收到NPC的邀请(例如山姆,潘妮和亚历克斯的10心事件)。这些邀请通常由“隐形”事件触发。如果你从未收到过触发事件的邀请,则需要删除隐形的邀请触发事件ID。可以在下面的“农场”部分查找这些ID。
+
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:
  
# 在记事本中打开存档。
+
<ul>
# 搜索(ctrl + f)“eventsSeen”。你会看到一个<int></int> 的列表,中间的数字就是游戏认为你已经触发事件的“事件ID”。
+
<li>Take note of what's out of bounds, then switch back to the old farm type and move them.</li>
# 找到你无法触发事件的ID(见下文),并将其连着两边的<int></int> 一起删除。
+
<li>If you [[Modding:Player Guide/Getting Started|use SMAPI]], install the {{nexus mod|3900|Noclip Mode}} mod to reach things that are out of bounds, so you can remove or move them.</li>
# 保存文件。
+
<li>If you [[Modding:Player Guide/Getting Started|use SMAPI]], enter one of these commands in the SMAPI console:
# 现在你成功触发事件了(请注意有的事件只能在特定时间/ 地点/ 季节等触发)。
+
{| class="wikitable"
 +
|-
 +
! command
 +
! effect
 +
|-
 +
| <code>world_clear farm debris</code>
 +
| remove stones, branches, weeds, and dead crops.
 +
|-
 +
| <code>world_clear farm trees</code>
 +
| remove non-fruit trees.
 +
|-
 +
| <code>world_clear farm fruit-trees</code>
 +
| remove fruit trees.
 +
|-
 +
| <code>world_clear farm grass</code>
 +
| remove tall grass.
 +
|-
 +
| <code>world_clear farm everything</code>
 +
| remove ''everything'', including placed objects.
 +
|}</li>
 +
</ul>
  
大多数事件及其对应的ID。常见丢失的事件为粗体:
+
===移除一个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.
  
*玛妮的店:
+
# [[#Edit a save|Open your save file for editing]]. Make sure you format the file for readability per those instructions.
**92 -- 玛妮在她的家里收到你送的山洞萝卜。
+
# 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>).
 +
## 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.
 +
# ''(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>).
 +
## 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.
  
*图书馆:
+
[[Category:Gameplay]]
**1848481 -- 艾利欧特的8心事件(在图书馆读书)。
 
**0 -- 冈瑟要求你帮他找文物/矿物的事件。
 
 
 
*浴室:
 
**38 -- 潘妮的10心事件(浴室)
 
 
 
*海滩:
 
**13 -- 海莉的6心事件(在海滩丢失项链)。
 
**20 -- 亚历克斯的2心事件(在沙滩上玩足球)。
 
**288847 -- 亚历克斯的8心事件(在海滩看妈妈的音乐盒)。
 
**29 -- 塞巴斯蒂安的8心事件(雨中的撑伞)
 
**43 -- 艾利欧特的10心事件(乘船)
 
**733330 -- 山姆3心事件(与文森特在海滩)
 
**739330 -- 威利给你他的旧鱼竿
 
 
 
*巴士站:
 
**4081148 - 山姆的8心事件2(乐队表演)
 
 
 
*艾利欧特的小屋:
 
**39 - 艾利欧特的2心事件
 
**423502 - 艾利欧特的6心事件(钢琴)
 
 
 
*农场:
 
**47 -- 山姆的8心事件1(乐队表演)
 
**55 -- 莉亚的8心事件1(艺术展)
 
**992553 -- 克林特给你熔炉的蓝图
 
**992253 -- 莉亚6心事件,给你雕像
 
**'''65''' -- 德米特里厄斯帮你设置,蝙蝠或蘑菇的洞穴
 
**66 -- 冈瑟感谢你为博物馆做出的贡献(并给你一个礼物)
 
**690006 -- 马龙与你谈论史莱姆屋
 
**1590166 -- 玛妮送给你猫
 
**897405 -- 玛妮送给你狗
 
**91 -- 玛妮3心事件,要求你带来山洞萝卜
 
**93 -- 乔迪4心事件,邀请你去吃晚餐
 
**102 -- 皮埃尔告诉你关于种子的情报
 
**63 -- 肯特登门自我介绍
 
**2346091 -- 亚历克斯10心事件(不会触发这个事件,而是让你收到亚历克斯的晚餐邀请)
 
**2346092 -- 山姆10心事件(同上)
 
**2346093 -- 哈维10心事件(同上,邀请坐热气球)
 
**2346096 -- 潘妮10心事件(同上,邀请泡温泉)
 
**2346095 -- 艾利欧特10心事件(同上,邀请读书)
 
 
 
*森林:
 
**14 -- 海莉8心事件(照相)
 
**52 -- 莉亚6心事件(摘树上的水果)
 
**54 -- 莉亚10心事件(野餐)
 
**181928 -- 潘妮8心事件(户外教学)
 
**318560 -- 贾斯和文森特在下水管附近聊天
 
**611944 -- 谢恩2心事件(湖边码头)
 
 
 
*海莉的家:
 
**11 -- 海莉的2心事件(清洁)
 
**12 -- 海莉的4心事件(腌菜罐)
 
**15 -- 海莉的10心事件(暗室)
 
**99 -- 艾米丽的6心事件(秘密舞蹈)
 
 
 
*医院:
 
**7 -- 玛鲁的4心事件(烧杯)
 
**57 -- 哈维的4心事件(健康检查)
 
**571102 -- 哈维8心事件(卧室)
 
 
 
*亚历克斯的家:
 
**18 -- 乔治6心事件(告诉你关于他的腿的故事)
 
**19 -- 艾芙琳4心事件(食谱)
 
**21 -- 亚历克斯5心事件(不读书)
 
**2119820 -- 亚历克斯6心活动(锻炼)
 
**56 -- 哈维2心事件(给乔治健康检查)
 
 
 
*莉亚的小屋:
 
**50 -- 莉亚2心事件(做雕刻)
 
**51 -- 莉亚4心事件(前任电话)
 
**584059 -- 莉亚8心事件(如果你在8心事件时选的是“网上销售艺术品”)
 
 
 
*矿井:
 
**901756 -- 阿比盖尔的10心事件
 
**100162 -- 马龙给你剑
 
 
 
*深山:
 
**2 -- 阿比盖尔的4心事件(吹长笛)
 
**8 -- 玛鲁的6心事件(望远镜)
 
**26 -- 莱纳斯的4心事件(鱼饵)
 
**384883 -- 塞巴斯蒂安的4心事件(修理摩托车)
 
**384882 -- 塞巴斯蒂安的10心事件(骑摩托车)
 
**'''404798''' -- 威利给你淘盘
 
 
 
*星之果实餐吧:
 
**40 -- 艾利欧特的4心事件(请你喝一杯)
 
**96 -- 格斯的4心事件(潘姆赊账)
 
**97 -- 克林特3心事件(约会建议)
 
**911526 -- 亚历克斯的10心事件(晚餐约会)
 
 
 
*山姆的家:
 
**95 -- 与乔迪一家一同晚餐(肯特也在)
 
**94 -- 与乔迪一家一同晚餐(肯特不在)
 
**44 -- 山姆的2心事件(乐队音乐类型)
 
**46 -- 山姆的4心事件(鸡蛋掉了)
 
**100 -- 肯特的3心事件(爆米花)
 
 
 
*木匠店/玛鲁的家:
 
**6 -- 玛鲁的2心事件(实验室)
 
**9 -- 玛鲁的8心事件(触电)
 
**25 -- 德米特里厄斯6心事件(番茄)
 
**33 -- 罗宾6心事件(制作蓝图)
 
**10 -- 玛鲁的10心事件(秘密工程)
 
 
 
*塞巴斯蒂安的房间:
 
**2794460 -- 塞巴斯蒂安的2心事件(使用电脑)
 
**27 -- 塞巴斯蒂安的6心事件(游戏之夜)
 
 
 
*皮埃尔的店/阿比盖尔的家:
 
**1 -- 阿比盖尔的2心事件(玩游戏机)
 
**3 -- 阿比盖尔的8心事件(通灵板)
 
**16 -- 皮埃尔的6心事件(秘密收藏)
 
**17 -- 卡洛琳的6心事件(与阿比盖尔争吵)
 
**58 -- 哈维6心事件(有氧运动)
 
**3102768 - 莫里斯提供50%的优惠券
 
 
 
*城镇:
 
**'''611439''' -- 刘易斯解锁社区中心
 
**4 -- 阿比盖尔的6心事件(墓地)
 
**831125 -- 谢恩的7心事件(广告视频比赛)
 
**2481135 -- 亚历克斯4心事件(与小灰说话)
 
**34 -- 潘妮的2心事件(帮助乔治)
 
**45 -- 山姆6心事件(滑板)
 
**53 -- 莉亚的8心事件(艺术展)
 
**63 -- 与刘易斯和玛妮都为6心时的谈话事件
 
**101 -- 克林特6心事件(与艾米丽谈话)
 
**233104 -- 山姆的10心事件(潜入房间)
 
**'''191393''' -- 庆祝场景(完成社区中心后的第二天)
 
**502261 -- Joja的庆祝场景(完成所有joja项目后的第二天)
 
**502969 -- 莱纳斯翻垃圾桶
 
 
 
*拖车:
 
**35 -- 潘妮的4心事件(打扫房间)
 
**36 -- 潘妮的6心事件(做菜)
 
 
 
===我丢失了美人鱼吊坠而且不能买第二个了===
 
 
 
# 在记事本中打开存档。
 
# 搜索(ctrl + f)"specialItems"
 
# 找到并删除<int>460</int>
 
# 保存文件,现在老水手会再次向你出售吊坠。
 
 
 
===我选错专精了===
 
 
 
# 在记事本中打开存档。
 
# 搜索(ctrl + f)"professions"。你会看到一个中间有数字的<int></int>的列表。
 
# 参考下面的列表来查找要更改的专精ID。
 
# 找到你想更改的专精ID,并将其替换为所需专精ID。
 
# 保存文件,现在你的专精已经改变了。
 
 
 
专精ID列表:
 
*农场主 = 0
 
*农夫 = 1
 
*家禽大师 = 2
 
*牧羊人 = 3
 
*工匠 = 4
 
*农业家 = 5
 
*渔夫 = 6
 
*捕鱼者 = 7
 
*垂钓客 = 8
 
*海盗 = 9
 
*水手 = 10
 
*引诱大师 = 11
 
*护林人 = 12
 
*收集者 = 13
 
*伐木工人 = 14
 
*萃取者 = 15
 
*植物学家 = 16
 
*追踪者 = 17
 
*矿工 = 18
 
*地质学家 = 19
 
*铁匠 = 20
 
*勘探家 = 21
 
*挖掘机 = 22
 
*宝石学家 = 23
 
*战士 = 24
 
*观察员 = 25
 
*暴君 = 26
 
*防御者 = 27
 
*特技者 = 28
 
*亡命徒 = 29
 
}}
 
 
 
[[Category: 游戏玩法]]
 
  
 
[[de:Gespeichertes Spiel]]
 
[[de:Gespeichertes Spiel]]
[[en:Saves]]
 
 
[[es:Partidas guardadas]]
 
[[es:Partidas guardadas]]
 +
[[fr:Jeux sauvegardés]]
 +
[[it:Giochi salvati]]
 
[[ja:セーブデータ]]
 
[[ja:セーブデータ]]
 +
[[ko:저장된 게임]]
 +
[[hu:Mentett játékok]]
 
[[pt:Jogos salvos]]
 
[[pt:Jogos salvos]]
 
[[ru:Сохранения]]
 
[[ru:Сохранения]]
 +
[[tr:Kayıtlı Oyunlar]]
 +
[[zh:存档]]

2020年11月28日 (六) 02:52的版本

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

不完整的翻译

本文或部分尚未完全翻译成中文。 欢迎您通过编辑帮助其建设。
最后编辑BolingH于2020-11-28 02:52:05.

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

游戏中的一天结束时会保存当前进度, 例如,主角睡觉、过于疲劳而昏倒、在凌晨2点昏倒。如果玩家在一天还未结束时退出游戏会失去这天的所有进度。

存档文件格式

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 JonSnow_123456789, with two main files inside it: JonSnow_123456789 and SaveGameInfo. Both files are needed to load the save.

游戏存档位置

存档是在你计算机上的一些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:存档