Test play and the desktop app
On this page
Test play save data
Test play saves, read text, unlocked content and the values in Settings stay in the storage of the same origin as Studio (in the desktop app, an origin whose number is fixed per project).
“Delete test play save data…” in the ”…” menu and in ⌘K deletes them after confirming (client/play-data.ts; it deletes from IndexedDB and localStorage only the keys that start with liminalia:<project ID>:,
and keeps Studio’s own settings; an open test play is told that they were deleted). In the desktop app, “Project → Delete Test Play Save Data…” in the menu deletes them too
(it closes the test play window first, then empties IndexedDB with session.clearStorageData).
Exporting (desktop app)
“Project → Export…” in the menu and “Export” in the top bar open one export window per project (packages/studio-desktop/src/main/export.ts; the window is src/pages/export.*).
- “Project settings” shows the version, the icon (red when it’s missing or can’t be found), signing for the Mac and Windows versions (only when that platform is selected;
decided the same way as
lim build, from environment variables, thenliminalia.json; red when the credentials aren’t enough), encryption, and where save data is stored and how it’s protected. Click one to open that field in the project settings - When it’s done, even if it succeeded, it shows “N warnings” and what they are (warnings from the check and the “警告: ” (warning) lines of the export)
- “Open in browser” on the row of an exported browser version serves that folder from a temporary server on 127.0.0.1 (stopped when the export window closes) and opens it in the default browser.
“Run a playthrough” plays from “New game” to the end automatically in a hidden window (the same steps and defaults as
lim playtest; if it gets stuck, it takes a screenshot to<export folder>/playtest/run-1.png) - Below what was exported, the next steps toward publishing are shown (
shared/export-guide.ts): “How to publish on the web” (/howto/export-web/ on the website) if there is a browser version, and “How to distribute” (/tutorial/publish/) if there is a Mac, Windows or Linux version. Clicking one opens that page in the default browser (the /en page when the app is in English) - The export window isn’t a child of the project window. If you close the project during an export, the window stays and keeps exporting, and reopening the project brings you back to it. Closing the export window or quitting the app during an export asks “Stop and Close” or “Stop and Quit.” A second export to the same destination doesn’t start. App updates aren’t swapped in during an export, and once swapping starts, no new export starts until it finishes
- How to check it:
npx tsx packages/studio-desktop/scripts/nav-check.ts [--shots folder]
Other things in the desktop app:
- “Test Play” (⌘R) in the menu opens after Studio’s pending saves are done (the same as “Test play” in the top bar)
- The start screen closes only once, when a project window has opened and its dev server is up (it doesn’t wait for Studio to finish loading; clicking a project window doesn’t close it along with what you were typing for a new project). Recent projects also scroll sideways with the vertical wheel
- A new project lets you choose the project ID (made from the title and shown, and editable; the same rules as
lim new) and the source language (the app’s language by default, or Japanese when importing a TyranoScript project). The sample is made from Waiting for Stars, the English sample story, when English is chosen, or from 星を待つ丘 for Japanese (the same aslim new --lang en; the character IDs are Akari and Sou). The ID is made from the letters, digits and kana of the title (kana become Hepburn romaji); kanji can’t be read, so they’re dropped (chooseProjectIdin@liminalia/project). If the title is mostly kanji, the date and time are used, and when only part of the title or the date was used, the note under the field says the ID names the export folder and the save data and that you can type your own The location is remembered from the last project you made (new-project.jsonin userData; Documents/Liminalia if it’s gone) - With the new project template “A TyranoScript or TyranoBuilder project,” choosing the folder to import from fills in the title and the screen size, and creating it imports the scripts,
copies the assets and sets “New game” all at once (the same as
lim new --from-tyrano; tyrano-import.md). After opening the new project, it reports the import counts, and “Open report” opensimport-report.mdin the default browser in a readable form. When “Open Project” is used on a TyranoScript project folder (dataordata/scenariois fine too), “Import into a new project” opens the new project form with the import source filled in - Plugins that can’t be loaded (packages that can’t be found and so on) are left out when opening, as with
lim studio(shown in the bar at the top of Studio and in the “Plugins” category of the check) - Studio is opened after the dev server’s Studio API (
/project) has finished reading the project, showing “Opening” until then (a project opened for the first time can take a while even after the dev server is up; it used to give up after 10 seconds and stay on “Not ready”;shared/studio-wait.ts). After 10 seconds, “Reopen” (which restarts the dev server) appears on “Opening”, and the dev server logs where the time went when opening takes more than 3 seconds. When starting the dev server (until it prints “開発サーバー: URL”) takes more than 3 seconds, the breakdown is logged too (reading the settings, loading the Vite config file, preparing the Vite plugins, creating the Vite server, starting the plugins, dependency scan and listening;lim studioandlim devdo the same;StartupTimesinpackages/cli/src/web.ts) - On the Mac, if the project is under Documents, Desktop, Downloads, iCloud Drive and similar places and the dev server isn’t up after 4 seconds, “Opening” says
“macOS is checking access to this folder” and asks you to check whether a confirmation dialog is hidden behind other windows; the log says so too (it goes away once the server is up.
macOS asks for access to these places per app, and anything reading them waits until the dialog is answered;
shared/mac-access.ts) When the dev server refuses (no Studio API, the project can’t be read), the “Not ready” screen shows the reason and “Reopen” - For Claude Code in “Connect an AI Assistant…,”
claudeis looked for in the login shell’s PATH and common install locations (~/.local/bin,/opt/homebrew/binand so on) (they often aren’t in the PATH of an app started from the Dock). If it isn’t found, the places searched are shown
Reopening the last project at launch (desktop app)
When the app starts without being given a project (opened from the Dock or the Start menu), it reopens the projects you had open before. If there are none to reopen, it shows the start screen as before
(packages/studio-desktop/src/main/session-store.ts; the rules are in src/shared/session.ts).
- The record is
session.jsonin userData. Each time the open projects change, it becomes the list of open projects. When all projects are closed (returning to the start screen), the previous list is kept, so even if you close the project window before quitting the app, that project opens next time. While project windows are closed one by one to quit, it isn’t rewritten - When a project is given through the launch arguments or by opening a file (such as dropping
liminalia.jsonor a folder on the icon), only that project opens - Projects that are gone (folders without
liminalia.json) are skipped - Turn it off with “File → Reopen Last Projects at Launch” in the menu (when off, it always starts from the start screen)
App updates (desktop app)
An app packaged with an update source checks for a new version shortly after launch and with “Check for Updates…” (in the app menu on the Mac, under Help on Windows), and if there is one, shows the version and the changes in a small window
(packages/studio-desktop/src/main/updater.ts; the window is src/pages/update.*; without an update source, the item isn’t shown). “Update and Restart” downloads and verifies it, finishes pending saves the same way as when closing a project window
(canceling the close cancels the update too), replaces the app and restarts. If the app is in a place that can’t be written to, it only goes as far as downloading,
and shows where it was downloaded. It doesn’t start in the middle of an export. How the release files are made and how it works: “Distributing the authoring app (Liminalia Studio)” in distribution.md.
Report a problem (desktop app)
Help → Report a Problem… (or “Report a problem” in Help on the start screen) makes a report with what happened, the app version and OS, an excerpt of the settings of the project that was in front
(title, ID, version, screen, languages, plugins, and only the names of the export settings) and the end of the log (200 lines; the home folder becomes ~)
(packages/studio-desktop/src/main/report.ts). You choose what to include and see exactly what will be sent. Besides Copy and Save…, an app with a report page set opens it
with “Open the report page” (“Where problem reports go” in distribution.md).