From a4ae1714140d218f34fb864dcf9e523a20ecb909 Mon Sep 17 00:00:00 2001 From: Daniel McCoy Stephenson Date: Sat, 3 Oct 2026 21:56:00 -0600 Subject: [PATCH] Cloud saves: pin tak 9b539d8 (/tak/cloud.js) and turn cloudSaves on Overwinter joins Night Ferry under RFC 0016. A signed-in player can turn on cloud backup from the Saves panel on overwinter.play.danielstephenson.dev; until then nothing changes and no /v1/saves request is made. The old alias host never loads cloud.js (tak's onArcadeHost), so its saves stay in that browser and move over with Download/Load as before. Co-Authored-By: Claude Opus 5.5 --- requirements.txt | 2 +- tests/test_web_build.py | 2 ++ web/index.html | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 67d9a4a..0883440 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -tak @ git+https://github.com/Stephenson-Software/tak@1bac386777d4b2468faeda00b31e960af8d57164 +tak @ git+https://github.com/Stephenson-Software/tak@9b539d8760e2c02cc262a7dcff6d0c541572ab71 jsonschema diff --git a/tests/test_web_build.py b/tests/test_web_build.py index 250a149..fc2bcc2 100644 --- a/tests/test_web_build.py +++ b/tests/test_web_build.py @@ -14,6 +14,8 @@ def test_the_page_uses_the_kits_assets_and_names_the_game(): assert asset in page, asset assert 'idbName: "overwinter-saves"' in page assert 'saveDirEnv: "OVERWINTER_SAVE_DIR"' in page + # Cloud saves (RFC 0016), only on arcade and only once a player turns them on. + assert "cloudSaves: true," in page assert 'entry: "web/pyodide_main.py"' in page diff --git a/web/index.html b/web/index.html index e42d10f..045c6a4 100644 --- a/web/index.html +++ b/web/index.html @@ -20,7 +20,7 @@

Overwinter — four people, one station, twenty days until a plane

Starting…
-

Tip: click an option or press its number key (1-9). Enter or Space continues. Your saved games live in this browser.

+

Tip: click an option or press its number key (1-9). Enter or Space continues. Your saved games live in this browser; at overwinter.play.danielstephenson.dev you can also back them up to your account once signed in.

@@ -31,6 +31,11 @@

Overwinter — four people, one station, twenty days u bundleUrl: "/web/game.zip", entry: "web/pyodide_main.py", logPrefix: "[overwinter]", + // Cloud saves on arcade (RFC 0016): a signed-in player can back these + // saves up and get them on their other devices. Off until they turn it on, + // and only on overwinter.play.danielstephenson.dev: the old alias host never + // loads cloud.js (tak's onArcadeHost), so its saves stay in its browser. + cloudSaves: true, messages: { download: "The plane is going away over the ridge…", start: "Morning watch…" }, });