About this mod
YAML Adapter for Content Patcher is a framework that allows creating Content Patcher mods using YAML instead of JSON.
- Requirements
- Permissions and credits
YAML Adapter for Content Patcher is a framework that allows creating Content Patcher content packs using human-friendly YAML instead of JSON.
Installation
- 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 Mods to install them.
- Run the game using SMAPI.
For Mod Authors
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.
Migrating from JSON
An existing content.json file can quickly be converted to a content.yaml file
using YACP's online JSON converter.
Examples
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"
Links