The mod lifecycle
RSMM is, at its core, a reversible install-time file applier. Knowing the lifecycle explains why mods are safe to add and remove at will.
flowchart LR
A["mods/<id>/<br/>manifest.toml + assets"] --> B["rsmm apply"]
B -->|"back up original"| K["<file>.rsmm.bak"]
B -->|"install override"| C["_Cooking/<encoded>"]
B --> S[".rsmm_state.json"]
R["rsmm restore --all"] -->|"restore from .bak"| C
R --> S
The stages
- Stage — you author a mod under
mods/<id>/(amanifest.tomlplus assets). The SDK can emit cooked assets for you; see Mods ship data, not code. - Apply —
rsmm applyresolves each decoded asset path to its encoded cooked path, backs the original up as<file>.rsmm.bak, then copies the override into place. The applier is transactional. - Track — active overrides are recorded in
<install>/DarkTalesResources/_Cooking/.rsmm_state.json. - Restore —
rsmm restore --allcopies every.rsmm.bakback and deletes the backups, returning the game to vanilla.