第36行: |
第36行: |
| | | |
| # [[Modding:Player Guide/Getting Started|安装 SMAPI]] | | # [[Modding:Player Guide/Getting Started|安装 SMAPI]] |
− | # {{github|Pathoschild/StardewXnbHack/releases|下载 StardewXnbHack}} <br> | + | # {{github|Pathoschild/StardewXnbHack/releases|下载 StardewXnbHack}}(确保你下载的文件适合你的系统,例如文件名: StardewXnbHack-*-for-windows.zip 而不是 source code!) |
− | (确保你下载的文件适合你的系统,例如文件名: StardewXnbHack-*-for-windows.zip 而不是 source code!) | |
| # 解压缩并放进 [[Modding:Game folder|你的游戏文件夹]], 也就是 <tt>StardewXnbHack.exe</tt> 文件位于与 <tt>StardewValley.exe</tt> 相同的目录下. | | # 解压缩并放进 [[Modding:Game folder|你的游戏文件夹]], 也就是 <tt>StardewXnbHack.exe</tt> 文件位于与 <tt>StardewValley.exe</tt> 相同的目录下. |
| # 双击运行 <tt>StardewXnbHack.exe</tt> (Windows)、<tt>StardewXnbHack.sh</tt> (Linux)、 <tt>StardewXnbHack.command</tt> (MacOS) 来解包游戏文件夹中 <tt>Content</tt> 文件夹下的所有 XNB 文件。 | | # 双击运行 <tt>StardewXnbHack.exe</tt> (Windows)、<tt>StardewXnbHack.sh</tt> (Linux)、 <tt>StardewXnbHack.command</tt> (MacOS) 来解包游戏文件夹中 <tt>Content</tt> 文件夹下的所有 XNB 文件。 |
| | | |
− | 就是这样!它将会把解包的内容放入游戏文件夹下的 <tt>Content (unpacked)</tt> 文件夹。解包出的文件 适 用于创建 [[Modding:Content Patcher|Content Patcher]] 的内容包。 | + | 就是这样!它将会把解包的内容放入游戏文件夹下的 <tt>Content (unpacked)</tt> 文件夹。解包出的文件 可 用于创建 [[Modding:Content Patcher|Content Patcher]] 的内容包。 |
| | | |
− | ::* '''[https://www.winehq.org/download Wine 1.7 or later]''' to run Windows programs like XNB Extract.
| + | ===xnbcli=== |
− | ::* '''[https://www.dropbox.com/s/oj5tch8np74nk4d/XNBExtract0.2.2.zip?dl=0 XNB Extract 0.2.2 for Linux/Mac]''' to unpack and pack the game's XNB files.
| + | {{github|LeonBlade/xnbcli#readme|xnbcli}} 是用于打包和解包 XNB 文件的开源且跨平台的工具。它无法解包带有数据模型的 XNB 文件 (例如 <tt>Data\FishPondData</tt> 或者 <tt>Data\Movies</tt>) ,并且需要手动编辑数据文件才能与 Content Patcher 等模组一起使用。 |
− | ::* '''[https://www.gimp.org/downloads/ GIMP]''' to edit image files (or use your favourite image editor).
| |
| | | |
| You should also back up your game's <tt>Content</tt> folder, so you can recover the original files if you make a mistake. | | You should also back up your game's <tt>Content</tt> folder, so you can recover the original files if you make a mistake. |