LiminaliaLiminalia
Studio guide chapters: 5. Flowchart and check

Flowchart and check

Open in Claude (new tab)

The flowchart

A diagram of how scenes connect, made automatically from the script. Each scene is a card showing the background and character images at that point, the label name and the first line of text.

The flowchart, with search, filters and "Fit all" across the top.
  • Lines from choices are labeled with the choice text. @call is shown as a dotted line.
  • Scenes where the play ends are marked “End.”
  • Click a card to go to that scene’s script.
  • Drag an empty area to move the whole diagram, and use ⌘+scroll wheel or − + to zoom out and in. You can drag cards to move them. “Reset position” in the right-click menu puts a card back where it is placed automatically.

Buttons at the top

ItemWhat it does
Find a sceneFinds scenes by label name or by the start of their text
All filesHighlights only the scenes in the chosen file (for a folder, all files under it)
All charactersHighlights only the scenes where the chosen character has dialogue
UnreachedHighlights only the scenes the all-routes test didn’t reach
EndingsHighlights only the scenes where the play ends
Endings NOpens the list of endings, including whether the all-routes test reached each one
Go to currentCenters the scene where the cursor in the script is
Fit allZooms so that everything (or, when filtered, the matching scenes) fits

When you filter, scenes and lines that don’t match fade, and the count appears as “N / M scenes.” When not all the cards fit on the screen, an overview appears at the bottom right. Click or drag in the overview to center that spot.

Build branches by drawing lines

When you draw lines or add scenes on the flowchart, the script is rewritten to match. You can undo any of these with ⌘Z.

TaskHow
Draw a lineHover over a card, and drag the handle that appears on its bottom edge to another card
Delete a lineRight-click the line and choose “Delete line.” “Open the line” goes to that line
Add a sceneRight-click an empty area and choose “Add a scene to start.lim”
The menu for a right-clicked empty area of the flowchart.

When you draw a line, lines are written to match how the scene ends. A scene that ends with choices gets one more choice, a scene that ends with @jump gets a new jump target, and a scene that runs on into the next gets an @jump. A card’s right-click menu also has “Play from Here,” “Lines Leading Here” and the scene commands.

Check

The Check screen, with the all-routes test card and the list of problems.

Each time you save, every script is checked for syntax. Narrow the problems down by category with the “Syntax,” “Commands and parameters,” “Characters,” “Jump targets,” “Assets” and “Plugins” buttons. Click a problem to go to its line. When there are no problems, it says “No problems.”

Apply suggested fixes

When there is only one way to fix a problem, such as a command or label with a similar spelling, an asset with a similar name, or doubled punctuation, “Fix” appears on the right of the line. Click it to fix the problem as suggested. In the code view, you can do the same with “Replace with ”…"" in the problem’s tooltip.

A problem with a suggested fix, and "Fix" on the right of the line.

When there are several problems of the same kind, the count and “Fix all” appear above the list.

KindWhat it is
Doubled punctuationThe same Japanese punctuation mark repeated, such as 。。 or 、、
Full-width space after ! or ?No full-width space after a Japanese ! or ? in the middle of a sentence. A half-width space is changed to a full-width one
Single … or ―An ellipsis or dash not doubled as …… or ―― (the Japanese convention)
Unneeded @cg-unlockAn @cg-unlock that isn’t needed because a nearby @bg or similar shows the same CG, which unlocks it when shown. Remove them with “Delete all”

Each fix is applied after you click “Yes” in the confirmation dialog. You can undo changes to the open file with ⌘Z, and restore other files from the change history.

The all-routes test

Click “Run the all-routes test” to play automatically from the beginning many times, picking different choices, and show the share of lines reached and the problems found along the way. While it runs, the progress appears as “Run N of M,” and “Stop” stops it.

Lines that weren’t reached appear under “Unreached” and are faded in the flowchart too. The result is saved, and if the script has changed since the run, it says “N files changed after the run.”

Find overflowing pages

Click “Find overflowing pages” to fit every page of text into a message window with the same device, text size and theme as the current preview, and measure it. Pages that don’t fit are listed with the warning “Overflows the message window.”

Measure performance and visual check

ItemWhat it does
Measure performanceOpens the game without showing it and pages through it, measuring the frame rate, memory and the assets loaded
Visual checkTakes a screenshot of the first page of each scene and compares it with a baseline image. Scenes that changed are listed with the differences painted red. “Use current look as baseline” retakes the baseline

Character counts, spelling variants and progress are covered in Text counts and spelling.