更改

跳到导航 跳到搜索
删除1,838字节 、 2020年11月28日 (六) 02:52
→‎编辑存档 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:存档]]
962

个编辑

导航菜单