MODDING INSTRUCTIONSCreate your first pack →

Saves and updates

Use the current SDK and declare "contentApi": 14 in new packs. The game checks the actual operations, definitions and Java signatures a pack uses when you choose Apply & reload. Keep the mod's own release version and saved-state schema separate from that API declaration.

Update a pack

  1. Keep a copy of the released pack and a test save made with it.
  2. Preserve content IDs that may already appear in saves.
  3. Validate the updated pack with its dependencies.
  4. Load the test save, exercise the changed behaviour, save again and reload.
  5. Document the tested game and dependency versions before sharing the update.

A version or content-hash difference prompts compatibility checks; it does not by itself reject a pack or save. Missing definitions, incompatible Java calls and failed state restoration do.

Changes that affect saves

Change Result
Update JSON, translations, artwork or a JAR Startup validation and saved-reference/state checks apply
Add an ordinary pack Allowed while recorded mod IDs and relative order remain intact
Add a pack with requiresNewWorld: true Start a new world
Remove or reorder a recorded pack Loading is blocked
Remove a saved resource, recipe, placeable, creature or feature Loading is blocked before discarding content
Fail to restore a mod's saved state Loading is blocked; the original file remains intact
Edit Markdown or about/ presentation The gameplay fingerprint is unchanged

Loading does not rewrite the original save. There is no generic mod content-ID migration API; keep published IDs stable. Your restore callback owns migration of your saved string map.

Recover a profile

Apply & reload writes enabled.json only after successful validation and preserves enabled.previous.json. Failed validation leaves the saved selection unchanged.

Workshop updates retain pack copies in mods/.backups/pack_id/. To restore one, close the game, preserve the current folder elsewhere and copy the chosen pack back to mods/pack_id. Reopen the game and choose Apply & reload. See install and recovery.

Persistent extensions

Give your state map a schema version. Save completed action receipts so refresh or load does not repeat spawning, purchases or other additive actions. Keep contexts and live services out of persistent state. See colony simulation.

Trade escrow and payment receipts also live in the user-data settlement-trading directory. Back it up with saves and follow settlement recovery or campaign-city recovery when restoring a town.

Forgotten Towns · Modding reference