Patches (differences from a previous export)
lim patch [project] --base <previous export> (and “Make a patch…” on Studio’s export screen, which does the same) compares something you exported before
(a browser version, a desktop version’s folder, a Mac app, or a zip of one of these) with the current project, and makes a pack (a patch) containing only what changed.
- What’s compared is the export’s content (scenarios, data, characters, translations, assets). The current project is exported as a browser version to a working location for the comparison. Packs can also replace characters (cast.json) and translations (lang/)
- If the game itself (the player program, and settings such as ui, extra and items in liminalia.json) has changed, it stops. When you’ve updated the engine or changed
settings, distribute the full game again. With
--force(on the export screen, press the button again), the patch is made from the content only - The version (
version) isn’t embedded in the program but stored in the export’sproject/build.json, so you can make a patch even after raising the version. The pack’srequiresis the previous export’s version (so it only goes into that version of the game), andorderis the time it was made (patches made later take precedence) - Files you deleted can’t be deleted by a patch (they stay in the game; they’re listed)
- If the previous export encrypted its content (
build.encrypt,build.browser.encrypt), it’s decrypted with the key inside that export (game.json in the app,lm-sw.jsin the browser version) for the comparison, and the patch is encrypted with the same key - The zip that’s made matches the previous export (a Windows one for the Windows version, a browser one for the browser version; for the Mac version, only the pack folder)
- If the previous export is a test build (
lim build --feedback), it stops. Add--allow-testto make a patch for the test build
What’s made in dist/patches/:
| Item | How to distribute it |
|---|---|
<id>/ | Distribute it through the desktop version’s update check with lim update-manifest --pack dist/patches/<id> (use this for Mac, because changing the inside of the app breaks its signature) |
<id>-windows.zip, <id>-linux.zip (when the previous export was the Windows or Linux version) | Extract it over the game folder (it goes into resources/packs/<id>/) |
<id>-browser.zip (when the previous export was the browser version) | Extract it over the place where the browser version is hosted (packs/<id>/, and packs/index.json with the pack added) |