/XNB2CP

An automatic XNB to Content Patcher mod converter

Primary LanguageC#

XNB2CP

An automatic XNB mod to Content Patcher mod converter for Stadew Valley mods. XNB2CP reads in XNB mods and generates the equivalent mod in Content Patcher's format.

Discontinued

Work on this project is discontinued. The original goal was to create an automatic conversion tool, but my first efforts resulted in extremely large, unintuive content.json files. The community ended up doing conversions for most files manually, so there isn't need for such a tool anymore.

Features:

  • Automatic mapping detection between the mod's files and SDV's files that supports:
    • A single Content folder that matches SDV's Content folder
    • A collection of individual files, as long as they are unique within SDV's Content folder
  • Conversion of dictionary and image XNB files to Content Patcher's format (fonts and maps coming soon)
  • Automatic creation of manifest.json and assets folder

Known Limitations:

  • Currently images cause large content.json files due to adding only the exact pixels that changed.

Requirements:

  • xnbcli
    • Install as xnbcli/[windows/mac/linux]/[executable, dxt.node] inside the XNB2CP folder, the build process will handle copying it to where it needs to be.