Skip to content

EN Studio Semantic Diff

wanoo edited this page Oct 23, 2026 · 1 revision

Semantic diff

Français · Type: how-to · Audience: author · Context: local Studio · Status: ready · Applies from: 4.2.3

The local Studio · contract: stable · verified by CI (support matrix of 4.4.0, 2026-10-23): Chromium end to end (the Studio's checks); Windows: the unit suite only · automated checks: jobs e2e, windows; CI plan e2e, windows; 2 test files · people's passes: studio-hero-matrix not run (#238) · known limits: local-revision-numbers

"Changes between revisions", in the Check tab, says what changed between two revisions of the game by what the game names: the rules, rooms, lines and values added, removed or changed, file by file, rather than a text diff.

What you get

For two revision numbers, the list of the files the Studio's operations between them changed, and in each one the ids added, removed and changed (with the fields that changed), or the JSON value paths, or "file changed" when it cannot say more.

Context and versions

The local Studio (npm run studio) and a hosted Studio; not the demo Studio (it has no journal). From 4.2.3. On a hosted Studio a build is a revision: compare two builds by theirs (Map and semantic diff).

Prerequisites

  • The Studio running (overview), with writes made through it (or through the MCP server, which shares the journal).

Where to run the commands

In the browser, on the Check tab, panel Changes between revisions.

What a revision is here

Every write to the game is one operation of its journal (.cache/studio-journal/), numbered: that number is the revision. A Studio write, an MCP write and an undo each make one; a change made outside (an editor, git) is recorded as an operation of its own before the next write touches that file. Revision 0 is before the first operation.

Limit · local-revision-numbers The local Studio does not display the current revision number. Asking for a revision past the last one answers no revision <n> yet (404): lower the number until it answers.

Steps

  1. Type two revisions, From and to (whole numbers, from ≤ to; at most 2,000 apart).
  1. Show the changes. For each file the operations between them wrote, compared at both ends (its content before the first of those operations, after the last):
    • a source: the ids it added, removed and changed, each changed id with the fields that changed (or "its place" when only its position moved);
    • a JSON file: the value paths added, removed and changed;
    • anything else, or a content it cannot read: "file changed";
    • a file written back to what it was: no change.
  1. To see the rooms those changes name, drawn at both revisions: Before and after captures.

Expected result, and how to check it

A list of files with what they gained and lost, or "Nothing changed between them." A list past 500 entries ends with "… and more (cut at 500)"; past 500 files, "… and more files (cut at 500)".

Common errors

Symptom Cause Fix
two revisions, as numbers A field is empty or not a whole number Type two numbers
from and to are revisions, from ≤ to From is after to Swap them
2,000 revisions at most between from and to The range is too wide Narrow it
no revision <n> yet (404) The journal has not reached that number Lower it
"file changed" for a source you know Content the local journal did not keep (a file adopted from outside) Compare with git diff

Files or data changed

None: the diff only reads the journal. The game's private/ folder is left out of it.

References


Edit the source of this page · Report an error

Home

Index (6)
Start (6)
Play (9)
Install (17)
Create a game (55)
Engine (4)
Local Studio (24)
Team Studio (21)
Clever Cloud (23)
Reality Bridge and connectors (16)
Contribute (25)
Reference (7)

Clone this wiki locally