Docs · For server owners
Upgrade notes
docs/upgrades/README.mdEdit on GitHub
Every release has one upgrade page. It answers one question for a server owner: what do I change, and in what order, to move from the last release to this one. The page lists the config changes, the save version changes, any migrations, and the manual steps.
The convention
-
One file per release:
docs/upgrades/<x.y.z>.md, from TEMPLATE.md. The version is the onetools\cli releasestamps. -
Write it in the release prep, in the same change as the release notes. A release without its upgrade page is not ready to promote.
-
Add one line to
website/scripts/build-content.mjs(anaddRepoDoccall next to the others under "For server owners") so the page reaches the site under/docs. The website reads only the files it lists. -
Link the page from this index, newest first:
Release Upgrade page 0.1.0 0.1.0.md, the first release (no earlier release to upgrade from)
Where each fact comes from
Work from the diff between the previous v* tag and the new one. The
commands below work because tags sit on release commits.
| Section | Source |
|---|---|
| Summary and PR list | tmp/release/notes-<x.y.z>.md from tools\cli release. |
| Manual steps | The ## Manual testing section of each PR, listed by tools\cli promote. |
| Config changes | git diff <prev> <new> -- docs/config/config.schema.json. A new or renamed field is a config change. Check the value a pack changed with tools\cli pack explain <section.key> --config <config.json>. |
| Config problems | tools\cli config-check <config.json> on the owner's file, after the change. |
| Save version changes | git diff <prev> <new> -- docs/persistence.md. Look for new "save version N" items and the "Save reset" section. The build stamp (save version 32) is the reference point. |
| Game build | docs/ops/game-updates.md changelog table: the game build the release was tested on. |
| Migrations | tools\cli config-check <old-config.json> --no-loops prints the Migrations: lines (steps in order, fields renamed, dropped or defaulted; from docs/config/config.migrations.json). Paste them. At schema 1 none ship, so the section says "none". |
The generator
tools\cli upgrade-page <fromRef> [<toRef>] [--version x.y.z] [--out <file>]
prints the page filled in from the template. toRef defaults to HEAD. It runs
offline: it only calls git show on the two refs. Start every release page from it:
tools\cli upgrade-page v0.1.0 v0.2.0 --version 0.2.0 --out docs/upgrades/0.2.0.md
0.1.0 had no earlier tag, so its page was written by hand from the same sources, with the generator run from the first commit that had the config schema as a cross-check.
It fills these sections from the two refs:
| Section | Read from | Lists |
|---|---|---|
| Config changes | docs/config/config.schema.json |
sections and fields added or removed; type changes; changed defaults; changed min, max or allowed values |
| Save version changes | tools/validation/record-shapes.json (the lock validate-persistence-version and validate-record-shapes keep) |
the save version before and after, payloads added, removed or given another record class |
| Migrations | docs/config/config.migrations.json |
migrations that exist now and did not at fromRef, with each rename, drop or default |
| Summary | each pack's Configs/LF_PackManifest.conf |
a pack whose core range (m_sCoreMin, m_sCoreBelow) moved, appeared or went |
It cannot know why a value changed or whether an old save loads. Every such
spot is a TODO: for you to fill; the Summary, Manual steps and the game build
stay yours too. Search the output for TODO before you commit it. A fromRef
from before the record-shapes lock existed prints the new save version alone.
tools/validation/upgrade-page-selftest.mjs proves the diff on two fixture
schemas.
Rules for the page
- Say what changed and what the owner does, in that order. Do not explain how the change was built.
- Every config change names the key in the owner file (
shops.defaultBuyPrice), not the class field. - A save version change says whether the old save loads, and whether a preflight or a reset is needed. A reset is announced here, once, at a release boundary (D6).
- A step that cannot be automated is marked manual, with the exact command or the exact click.
- Use plain words. No dates or promises that the release does not keep.