更改

第6行: 第6行:  
==介绍==
 
==介绍==
 
===XNB模组的工作原理===
 
===XNB模组的工作原理===
The game stores data in a compressed format with the <tt>.xnb</tt> file extension inside its <tt>Content</tt> folder. For example, Abigail's portrait shown during dialogue is from <tt>Content\Portraits\Abigail.xnb</tt>. Each <tt>.xnb</tt> file contains two files: the data file (like an image), and a metadata file (information about the data file). For example, here's what's inside <tt>Content\Portraits\Abigail.xnb</tt>:
+
游戏以<tt>.xnb</tt> 的压缩格式文件把数据存储在<tt>Content</tt> 文件夹中。例如,在对话框里显示的阿比盖尔的头像来自<tt>Content\Portraits\Abigail.xnb</tt> 这个文件。每个<tt>.xnb</tt> 包含两个文件: 数据文件(如图像)和元数据文件(有关数据文件的信息)。例如,这是<tt>Content\Portraits\Abigail.xnb</tt> 里面的内容:
    
<pre>
 
<pre>
第14行: 第14行:  
</pre>
 
</pre>
   −
In the above example:
+
在上面的例子中:
   −
* <tt>Abigail.png</tt> contains Abigail's portraits. This is the file you would edit if you wanted to change her portraits in the game:<br />[[File:Modding - creating an XNB mod - example portraits.png]]
+
* <tt>Abigail.png</tt> 这个文件里包含阿比盖尔的头像。如果你想修改她在游戏中的头像,需要编辑的就是这个文件:<br />[[File:Modding - creating an XNB mod - example portraits.png]]
* <tt>Abigail.yaml</tt> contains metadata about <tt>Abigail.png</tt> (like what type of file it is). You don't need to worry about this file, since you generally won't be changing it.
+
* <tt>Abigail.yaml</tt> 这个文件里包含关于 <tt>Abigail.png</tt> 的元数据(文件类型之类的),通常情况下不用改动它。
   −
An XNB mod replaces some of the game's XNB data files, which lets you change images (like portraits, NPCs, or buildings), data (like crop information or dialogue), or maps (including map behaviour like warps and minigames). XNB mods can also add entirely new content (like new NPCs).
+
XNB 模组代替了一些游戏原本的XNB文件,可以让你更改图像(头像,NPC行走图或建筑物外形),数据(作物信息或对话), 或地图(包括地图行为,如传送或小游戏)。 XNB 模组也可以添加全新的内容(如新的NPC)。
    
===XNB vs SMAPI mods===
 
===XNB vs SMAPI mods===
1,237

个编辑