ck3-save-updater

Troubleshooting

What the common messages mean and what to do about them. The exit codes are listed in Checking a save.

“ck3update is not recognized”

'ck3update' is not recognized as an internal or external command

pip installed the command, but into a folder your shell does not search. This is common on Windows after pip install --user ck3-save-updater: the command lands in a per-user Scripts folder that Windows never adds to PATH, and pip warns about it only once. Run:

python -m ck3_save_migrator setup

This works whatever PATH holds, because it starts the tool through Python itself. It says where the command was installed and whether that folder is on PATH. On Windows it offers to add the folder to your user PATH (a backup of the old value is kept), and you then open a new terminal. With --dry-run it prints what it would do and changes nothing in PATH or the registry; on some terminals it still writes small helper scripts (ck3update-path.cmd, .ps1, .sh) to your temp folder. With --yes it changes PATH without asking. Inside a virtual environment it tells you to activate the environment instead; on Linux and macOS it prints the line to add to your shell’s profile. Until then, python -m ck3_save_migrator <command> ... runs any command, python -m ck3_save_migrator update "My_Old_Campaign" included.

“output already exists”

ERROR: output already exists: My_Old_Campaign.migrated.ck3 (use --force to overwrite)

An earlier run already wrote this output (exit code 2). Delete or rename it, choose another name with -o, or pass --force to overwrite it.

--force only lifts this refusal. The tool never overwrites the save it reads, also when the output path is a second name for it (a hard link, a junction or a mapped drive); that is refused with “refusing to write over the input file” (exit code 2) whatever the flags.

“nothing to write”

nothing to write: 15 rules ran and edited 0 (matched 2); the save is already migrated, or nothing in it matched

No selected rule changed anything, so no file was written (exit code 0). This is what updating an already updated save gives, and it is safe: the save is left as it is. --force does not change it. If you expected changes, check that you gave the old save, not an updated one, and read each rule’s line: a rule that could not run says why there (for example “no reference save (–reference)”).

“rule prerequisites missing”

ERROR: rule prerequisites missing: R14 needs R8 (add them, or use --rules all,R14,R15,R16 for the full migration with the transplant)

Some rules use what an earlier rule did, and a selection without those rules is refused before the save is read (exit code 1). Add the rules named, or start from all: --rules all,R15,R14,R16 is never refused for this reason. The table of what each rule needs is in Rules.

“lint found … error(s)” (exit code 4)

ERROR: lint found 3 error(s) in the output; it was written so it can be inspected (see the lint lines above)

The checks run on every output found something the game reads by number that is broken. The output was still written, so it can be inspected, but treat it as not ready to load. The ERROR lines above the message name each failed check with examples, and the same findings are in <output>.lint.json. An update that runs its rules to the end should not produce errors; an error usually means a rule did not finish its job, which is worth reporting with the .lint.json attached. See Checking a save.

The game shows generic faces

Faces are stored in the save as portrait data (DNA), in the gene layout of the game version and portrait mods that wrote it. The game makes up a new face for a string in another layout; lint reports it as “Unexpected DNA string length”. R19 carries every face into the layout you load with (Faces).

What helps: turn on, in the launcher, the portrait mods you will play with before you run update (R19 reads them from dlc_load.json), or name them with --portrait-mods. status shows the layouts it will use in its FACES block. You do not need the old game or the old portrait-mod builds for the common cases: built-in tables stand in for the old game’s genes and for the 2022-2023 builds of Community Flavor Pack and Ethnicities and Portraits Expanded. For anything else, give --old-game-dir for the old game’s own genes, and --old-portrait-mods for the old builds of the portrait mods the save used (NOTES says “the source layout is probably not the save’s” when the faces do not fit it). A save stores faces only for some characters, so not every face can be carried over from it.

Faces carry every gene the portrait mods you load define. A gene none of them define cannot be drawn by the game, so it is dropped, and the notes and the report name it with the build it came from. When an installed mod you have not turned on defines it, the notes say so, and turning that mod on brings it back. When no installed mod defines it, a later build of the portrait mod removed it, and no playset can bring it back.

The Way of Scarcity, or another custom faith, is missing

A custom faith is carried by R10, which needs the religion rules and so a reference save (--reference); without one, R8 to R12 do nothing and say so. With a reference, the custom faith is carried in the shape --custom-faith-as chooses: as a faith of its own (faith), or as a rite of the faith its template now belongs to (rite). The default, both, writes two outputs, <name>__wos-faith.migrated.ck3 and <name>__wos-rite.migrated.ck3; load the one you want. In the rite shape you find the custom faith as a rite, under the faith its template now belongs to. See Rules.

R15 “needs the old game’s map”

R15 dead-titles  needs the old game's map: no built-in old map covers a 1.9 save; give --old-game-dir (the save's own version's game folder)

R15 finds what the 1.20 map calls the land of your save’s removed or moved titles by reading two maps: the current game’s and the one of the version your save was made with. For a 1.8 save the tool carries the old map itself (the titles of 1.8.2, names only), and the plan’s NOTES say “R15’s old map: built-in table”. For a save from another version, pass --old-game-dir with the game folder of that older version (and --game-dir if the current game is not found by itself). The rest of the update still runs without it. See New-map regions.

The game crashes when you save

Saving an updated campaign while the game is running can crash it. Pause the game first, then save. Saves made while paused have not crashed in any of our tests.

The crash happens while the game writes your character’s hint icons (the “important actions” along the top of the screen). We think the save reads that list while the game is rebuilding it in the background. In updated campaigns one of those hints is very slow, so the two overlap far more often than in a new game. The fix is being worked on.

The reference save is from a different date

The new-map rules copy the new regions’ world from the reference as it is on the reference’s date. A reference from another date brings rulers and families from the wrong moment into your campaign. Nothing refuses it, because the tool cannot tell which date you meant. Make a reference at your campaign’s own date: The reference save explains how, with ck3update reference-mod.