A downloadable tool

Download NowName your own price

You've just finished a new update for your Ren'Py game. Before you post it, run this.

Example output: python3 save_safe_check.py v1.0/ v1.1/ lists save-breaking changes with where, why and fix

Save-Safe reads your old version's scripts and your new version's scripts, then tells you in plain English which changes will break your players' existing saves, and exactly how to fix each one.

It's made for episodic visual novels that ship updates regularly. It's free, from Moar Kit, the Ren'Py toolkit by Moar Interactive.

How it works

  1. Keep a copy of your last release: the project folder, a git tag, or the old zip.
  2. Run one command:
    python3 save_safe_check.py path/to/OLD-version path/to/NEW-version
    (On Windows, use py instead of python3.)
  3. Read the report. Every finding shows Where (file:line), Why it matters, and a Fix you can copy: a stub label, an after_load migration, or an image alias.

You only need Python 3.8 or newer. There's nothing else to install.

What it catches

Breaks old saves: labels renamed or removed, jumps to missing labels, default renamed or retyped, new variables with no default, Python classes removed. Risky: call without from, removed .rpy files, default changed to define, Python random, removed screens or persistent fields. Good to know: harmless notes.

Does it actually work?

Caught 17 of 17 planted mistakes. Ren'Py lint caught 1 of 17. Zero findings on the fixed build.

We made a tiny, safe-for-work sample game ("closing shift at a bookshop") and an update with 7 save-breaking and 10 risky mistakes in it. Save-Safe catches all 17. Ren'Py's own lint caught one.

Then we loaded real saves from the old version in the new one on Ren'Py 8.3.7. The breakages really happen: failed loads, NameError and TypeError crashes, lost values. The fixed version loads and plays to the end. The samples are included, so you can try it yourself:

python3 save_safe_check.py samples/v1 samples/v2        # finds 7 save-breakers
python3 save_safe_check.py samples/v1 samples/v2-fixed  # finds 0

Flags and exit codes

  • --quiet shows only problems
  • --strict makes "risky" findings fail too
  • --output report.txt also saves the report to a file
  • Exit codes: 0 nothing breaks saves, 1 something will, 2 wrong usage

Licence, in short

Free to use on as many games as you like, commercial games included. Change it and keep it in your project; just don't resell the tool itself. Credit is welcome but not required. No warranty: always test a few saves by hand before you release. The full text is in LICENSE.txt.

More Moar Kit tools moarinteractive.com

Get back to writing. Moar Kit, Ren'Py tools from the studio behind Signed in Secret. Not affiliated with or endorsed by Ren'Py.

Download

Download NowName your own price

Click download now to get access to the following files:

moar-kit-save-safe-checker-lite.zip 29 kB

Leave a comment

Log in with itch.io to leave a comment.