Manage Game: offer the save as a file download, not only as copyable text #32

Closed
opened 2026-09-15 23:28:08 +00:00 by Jesse.Markowitz · 0 comments
Owner

Playtest, v0.8.0.9: "In the StartOS actions for the save game, I get a string I can copy. Most of the time, I want to go ahead and just save it as a JSON file in my Downloads folder. Can we add that option? Preferably the same game saved dialog."

Not possible in the StartOS action itself: an action result member is text only — copyable, qr and masked are the options, with nested groups; there is no file member in the installed SDK.

Doing it where it can be done instead: the play page already has a "Save replay" button that writes a JSON file from the browser, shown only in solitaire because a server-backed session has no local save to hand it. A player-authenticated route (GET /api/save?token=…, the same session token /api/stream and /api/intent use) lets a seated player download their own game, and the button is shown in multiplayer too.

Playtest, v0.8.0.9: *"In the StartOS actions for the save game, I get a string I can copy. Most of the time, I want to go ahead and just save it as a JSON file in my Downloads folder. Can we add that option? Preferably the same game saved dialog."* **Not possible in the StartOS action itself**: an action result member is text only — `copyable`, `qr` and `masked` are the options, with nested groups; there is no file member in the installed SDK. Doing it where it can be done instead: the play page already has a "Save replay" button that writes a JSON file from the browser, shown only in solitaire because a server-backed session has no local save to hand it. A player-authenticated route (`GET /api/save?token=…`, the same session token `/api/stream` and `/api/intent` use) lets a seated player download their own game, and the button is shown in multiplayer too.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Jesse.Markowitz/station-master#32