YAML Adapter for Content Patcher is a framework that allows creating Content Patcher content packs using human-friendly YAML instead of JSON.
- Install the latest version of SMAPI.
- Install the latest version of Content Patcher.
- Install this mod from Nexus Mods.
- Unzip any YACP content packs into
Modsto install them. - Run the game using SMAPI.
YACP works exactly the same as Content Patcher. The only things that change
are the use of content.yaml files instead of content.json, and the YAML syntax.
For details on using Content Patcher, refer to the Content Patcher Author Guide.
For details on using YAML with Content Patcher, refer to the example content.yaml file.
An existing content.json file can quickly be converted to a content.yaml file
using YACP's online JSON converter.
Example mod file structure:
📁 Mods/
📁 [YACP] YourModName/
🗎 content.yaml
🗎 manifest.json
📁 assets/
🗎 example.png
Example content.yaml file:
Format: 2.3.0
Changes:
- Action: Load
Target: Portraits/Abigail
FromFile: "assets/example.png"