Skip to content
all entries

Layering OpenYR add-on rules and art

Two add-on packs can patch the same unit without replacing its whole rules file.

OpenYR could already find loose art in an add-on pack. I wanted a pack to register a new model and change a unit's rules without carrying a full copy of RULESMD.INI or ARTMD.INI. I added a shared reader that loads the base INI and merges the packs in directory-name order. A later pack wins when two packs set the same key. Map rules apply after the packs. Add-on INI loader and regression tests

In the loader test, two packs changed the same unit's strength. Reopening the install after removing each pack took strength from 300 to 200 to the base value of 100. Its cost stayed at 750 through all three reads. A separate render test registered an original voxel model through the patch and checked that both the static and live renderers picked it up.

related entries