# Writing scenarios

### What it checks

The main checks, by category.

**Syntax**

| code | Severity | Contents |
|---|---|---|
| `bad-encoding` | Error | A script can't be read as UTF-8 (saved in Shift_JIS and so on; it isn't read garbled. Save it again as UTF-8). `lim check` gives no other diagnostics for that file, and `lim trace` and `lim coverage` stop at that file |
| `bad-label` | Error | A malformed label: written without a space as in `#name` (correctly `# name`), or a name with characters other than letters, digits, `_` and `-` |
| `bad-command-name` | Error | A command name with characters other than lowercase letters, digits and `-` (`@Bg`, `{@ bg}` and so on) |
| `bad-define` `bad-param` | Error | A malformed `@define` (not `@define name(parameter: type = default, …)`), a malformed parameter |
| `nested-define` `nested-use` | Error | `@define` and `@use` not at the outermost level of the file |
| `bad-set` `bad-set-target` `bad-let` | Error | Not in the form `@set variable = expression`, the left side of `@set` isn't a variable, not in the form `@let name = expression` (both can use `=` `+=` `-=` `*=` `/=`) |
| `bad-guard` | Error | `if=` on lines with words that open blocks (`@if` `@while` `@for` `@with` `@choice` `@define` and so on) and in `{@…}` in text, and `if=` not written in `(…)` (`if=game.x` is fixed to `if=(game.x)`; chapter 8) |
| `bad-for` | Error | Not in the form `@for name in expression`, the first part of a variable name such as `game` used as the `@for` name, or looping over a value that is neither an array nor a dictionary, such as a literal number or string (chapter 8) |
| `bad-function` `nested-function` `duplicate-function` | Error | Not in the form `@function name(argument, …) = expression` (the block form up to `@end` is reported once, and if its body is a single `@return`, the one-line form is the suggested fix), not at the outermost level of the file, the same name as a built-in function or another `@function` (chapter 8) |
| `bad-use` | Error | Not in the form `@use file` |
| `bad-option` `empty-option` | Error | A line inside `@choice` that isn't `- text -> target`, a choice without text (except one with `image=`, which makes an image button, or with `width=` and `height=`, which make a click area) |
| `bad-target` | Error | A jump target that's none of `#label`, `file` and `file#label`, or something other than `to=` after a jump target written as an expression |
| `missing-expression` | Error | An empty expression in `@if` and so on |
| `unclosed-string` `unclosed-paren` `missing-value` `unexpected-argument` | Error | An unclosed `"…"` or `(…)` in a parameter, no value after `name=`, a parameter written on a command that takes none |
| `bad-color` `bad-size` `bad-speed` `bad-image` `bad-fx` | Error | A mistake in `{c #color …}` `{mark #color …}`, `{size 32 …}`, `{speed 600ms …}`, `{img path}` or `{fx wave …}` in text (chapter 3) |
| `duplicate-label` | Error | The same label twice in the same file |
| `unclosed-block` `orphan-end` `orphan-branch` `branch-after-else` | Error | An unclosed block such as `@if` `@while` `@with` `@choice` `@define`, or an `@end` `@elif` `@else` without a matching block |
| `bad-with` `bad-content` `bad-return` | Error | A malformed `@with`, `@content` outside `@define`, or a `@return (expression)` that can't return a value (chapter 8) |
| `with-without-content` | Warning | A macro without `@content` called with `@with` (chapter 8) |
| `label-in-if` | Error | A label inside `@if` (chapter 8) |
| `stray-brace` `unclosed-inline` `unknown-inline` `dangling-escape` | Error | Unmatched `{…}` in text, unknown syntax, `\` at the end of a line |
| `noclick-not-last` `noclick-in-option` | Error | `{noclick}` that isn't at the end of a line, `{noclick}` in choice text (chapter 3) |
| `bad-speaker-name` | Error | A mistake in a display name `{name …}` (empty, something other than characters and `{= expression}`, no dialogue bracket or quotation mark right after it; chapter 2) |
| `empty-ruby` `bad-ruby` | Error | Empty base text or reading in ruby, or no `\|` separating the reading, or a full-width `｜` (chapter 3) |
| `aozora-ruby` `tyrano-tag` | Warning | 《》 ruby and TyranoScript tags (`[p]` `[l]` `[r]` `[cm]` `[er]`) left in the text. They're shown as is |
| `unknown-speaker` | Warning | A line shaped like dialogue that became narration (including `ユイ：「…」` `【ユイ】「…」`, `{name …}` on a name that isn't a speaker, and `Nora: "…"` on two or more lines of the same file; chapter 2) |
| `fullwidth-symbol` `option-outside-choice` | Warning | A full-width `＠` `＃` `／／` at the start of a line, a full-width `＝`, a choice line outside `@choice` (chapter 2) |
| `trailing-comment` | Error, warning | `//` at the end of a line (an error on command and choice lines, a warning on dialogue and narration; chapter 2) |
| `duplicate-line-id` `bad-line-id` | Error, warning | A fixed line ID used twice in the same file, a `#line:` with characters other than letters, digits, `_` and `-` (chapter 2; a `#line:` that isn't a line ID is shown as text) |
| `invisible-space` | Warning | Invisible characters (see below) |

**Commands and parameters**

| code | Severity | Contents |
|---|---|---|
| `unknown-command` | Error | An unknown command. If it's a macro in another file, `@use` appears in the suggested fix |
| `renamed-command` | Error | A command with a name from an earlier version (`@scene` is now `@scene-change`). The suggested fix replaces it with the current name, and `lim migrate` fixes the whole project ("Script format versions" in chapter 10). Not reported if there's a macro with the same name |
| `renamed-param` | Warning | A parameter with a name from an earlier version (`@bg x.jpg fade=1s` is now `time=1s`). It keeps working under the old name. The suggested fix replaces it with the current name, and `lim migrate` fixes the whole project ("Script format versions" in chapter 10). Parameters of a macro with the same name aren't reported |
| `legacy-ending` | Warning | In a project with script format 2 or earlier, wording written in `ending=` of a command that ends the playthrough (`ending="BAD END"`), the earlier way. The suggested fix splits it into the kind and `title=`, and `lim migrate` moves the whole project ("The end of a playthrough" in chapter 2) |
| `unknown-ending-kind` | Error | An ending kind that doesn't exist (from script format 3; the suggested fix is the closest kind name, or for wording, the kind and `title=`). A kind in `playtest.avoidEndings` or `endings()` in an expression that matches nothing is a warning |
| `unknown-param` `missing-param` `too-many-positional` | Error | An unknown parameter, a missing required parameter, too many unnamed parameters |
| `ambiguous-bool-shorthand` | Error | A boolean written as just its name could also be read as the value of an unnamed parameter. Write the boolean as `name=true` |
| `positional-by-name` | Error | An unnamed parameter written with a name |
| `duplicate-param` | Error | The same parameter written twice |
| `bad-effect-mask` | Error | The `mask=` of `@filter` or `@effect` can't be read (`"radial x y width height"` or `"radial-out x y width height soft"`, all in px) |
| `flipbook-frames` `flipbook-data` | Error | A mistake in how the frames of `@flipbook` are written (neither `image` nor `data`, `{n}` in `image` but no `frames`, and so on), the JSON of `data=` doesn't exist |
| `flipbook-missing` | Warning | Frame images of `@flipbook` aren't in the asset folder |
| `flipbook-loop-wait` `flipbook-off-unknown` | Warning | `wait=true` written on `loop=0` (repeat until stopped; it moves on without waiting), no `@flipbook loop=0` has the name of `@flipbook-off` in its `name=` |
| `effect-mask-ignored` | Warning | `mask=` on a `@effect` type that can't be limited to an area (`wave`, `glitch`, `chromatic`; it covers the whole screen. Choose where it applies with `layer=`) |
| `flash-rate` | Warning | A `@flash` that flashes more than 3 times a second (counted from `count`, `time`, `gap` and the project defaults; flashing light can cause seizures) |
| `hide-name-unknown` | Warning | No `@cutin stay=true`, `@hud-text` or `@hud-button` shows the name given to `@cutin-hide`, `@hud-text-off` or `@hud-button-off` (nothing is hidden). Not checked for a kind whose names are given as expressions |
| `bad-value` | Error | A value of the wrong type (a duration without a unit and so on). The suggested fix is the line with only the value fixed |
| `redundant-param` | Error | A parameter that isn't used when written together with another (`at` when both `x` and `y` are written, and so on) |
| `same-as-default` | Info | A parameter with the same value as the project default (`commandDefaults` in liminalia.json; `500ms` and `0.5s` are the same). With a fix that removes it. Values equal to a command's built-in default aren't reported |
| `scene-change-candidate` | Info | A block from `@mask` to `@mask-off` that does the same as one `@scene-change` (see "Merging into a scene change" below). With a fix that turns the block into one line |
| `scene-change-sprite-overlap` | Warning | The previous sprites haven't finished disappearing when the fade-in starts, so they may be seen faintly. The suggested fix is a `@scene-change` that finishes hiding them while the screen is covered and then fades in (fixing it changes how they disappear) |
| `chara-replace-conflict` | Error | `replace` on `@chara` conflicts with a position or with hiding everyone |
| `chara-replace-unknown` | Error | The character written in `replace` isn't in cast.json |
| `chara-replace-target` | Error | The character to replace isn't on screen, there's more than one character at that position, or the character to show is already on screen |
| `bad-expression` `unknown-variable` `unknown-function` `bad-arguments` | Error | A mistake in an expression, an undefined variable, an unknown function (if it's a `@function` in another file, `@use` appears in the suggested fix), the wrong number of function arguments |
| `unset-variable` `undeclared-variable` | Warning | A variable that's read but never given a value anywhere, when a variable that is given a value has a similar spelling (it's taken as a misspelling, and that name is the suggested fix), a variable not written in `variables` when `check.variables` is `"declared"` (chapter 8) |
| `uninitialized-variable` | Warning | Reads a variable with no initial value that is only calculated from its previous value with `+=` and the like (reaching that line before it's added to reads it with no value; chapter 8). The fix is an initial value in `variables` (for `temp.`, set a value with `=` first). Also a line that calculates a local variable from its previous value with `@let x += 1` and the like before any value is set (the fix is `@let x = 0` on the line before) |
| `forbidden-property` | Error | `__proto__` or similar used in a variable name and so on |
| `shadows-param` `duplicate-define` | Error | A `@let` with the same name as a macro parameter, two macros with the same name |
| `define-shadows-command` | Warning, error | A macro with the same name as a built-in command (the project's macro is used; warning), a macro with the same name as a syntax word (error) |
| `unknown-type` | Error | An unknown type for a `@define` parameter |
| `plugin-replaces-command` | Warning | A plugin command overrides a built-in command, or a command with the same name from a plugin loaded earlier (such as the standard commands), without declaring it (`replaces: true`) |
| `script-not-allowed` `script-skipped` | Error, warning | `@script` in a project without `allowScript` (error). Even in a project with it, the contents of `@script` don't run (warning; rewrite them as plugin commands) |
| `staff-roll-empty` | Warning | A `@staff-roll` with no content (chapter 5) |
| `html-tag-not-allowed` `html-attribute-not-allowed` `html-event-attribute` `html-dynamic-attribute` | Error | A tag that can't be used in `@html` (`<script>` and so on), an attribute that can't be used, an `on…` attribute, `{= expression}` in an attribute that can't take expressions (chapter 5) |
| `html-external-url` `html-empty-src` | Error | An external URL in `@html`, an empty `src=` |
| `html-unclosed-tag` `html-bad-nesting` | Error | An unclosed tag in `@html`, badly nested tags |
| `html-inline` | Error | `{@html …}` in text (`@html` is written on the lines up to `@end`) |
| `html-empty` `html-wait-without-jump` `html-jump-without-wait` | Warning | An `@html` with no content, `wait=true` without any element that jumps when pressed, `data-jump` without `wait=true` |

**Jump targets**

| code | Severity | Contents |
|---|---|---|
| `unknown-label` `unknown-file` | Error | An unknown label, an unknown file |
| `unknown-targets` | Warning | The candidates of a jump target decided by an expression can't be read, and there is no `to=` (chapter 8) |
| `all-options-conditional` | Warning | Every choice has `if=`, so none might be shown and the game might stop (chapter 8) |
| `unknown-option` | Warning | The choice with the text in `chosen("text")` isn't in any scenario (it's always false; chapter 8) |
| `call-without-return` | Warning | `@return` can't be reached from where `@call` goes (it stops at the end of the file and doesn't return to the caller). Not reported when it moves elsewhere with `@jump` or a choice on the way |
| `unreachable-line` | Warning, info | Lines without a label after `@jump`, `@return`, `@stop` or a command that ends the playthrough (they can't be reached from anywhere). A warning if the unreachable lines include dialogue, narration or choices, info if they're only commands |
| `unused-label` | Info | A label that's never jumped to and isn't continued into from the line before (the scene can't be reached). `"#label"` in expressions, `entry` and replays in liminalia.json, and targets in plugin data also count as jumps |
| `scene-start-no-bg` | Info | A scene (a label or the start of a file) reached from another file by `@jump` or a choice doesn't set the background (`@scene-change` or `@bg` with a background image, or a solid-color background) before its first text. It starts on the previous file's screen, which differs from playing it from that point. A `@scene-change` without an image (the template for scenes made in the Studio) doesn't count as setting the background. Not reported when every jump into it sets the background just before jumping (before the `@if` too, when jumping from inside one), or for `@call`, `call=true` choices, expression targets, and scenes that start with `@if` or a macro, draft files, and works that use no backgrounds |
| `unused-define` `unused-speaker` | Info | A macro that's never called, a speaker not used in any dialogue (shown on that speaker's line in `speakers` in cast.json; speakers listed in `check.unusedSpeakers` in liminalia.json are left out) |
| `draft-target` | Warning | A file that isn't a draft goes to a draft file (`// lim: draft`, chapter 10). Drafts aren't exported, so the check before `lim build` treats it as an error |
| `draft-use` | Error | A file that isn't a draft uses a draft file with `@use` (the exported game doesn't have that file's macros and functions) |
| `draft-entry` | Error | `entry` (New Game), `afterLoad`, or the `target` of a replay or chapter in extras in liminalia.json points to a draft file (the exported game stops there) |

**Characters**

| code | Severity | Contents |
|---|---|---|
| `unknown-cast` `unknown-appearance` `unknown-variant` `unknown-position` | Error | A character, sprite set, variant or position that isn't in cast.json |
| `unknown-tone` | Error | An unknown color tone |
| `bad-cast` | Error | A malformed cast.json (including a character's `side` other than `left` or `right`; chapter 6) |
| `cast-ambiguous` | Warning | The base variant or default sprite set falls to the order they're listed in (chapter 6) |
| `model-plugin-missing` | Warning | The plugin that draws a `model` type in cast.json (`live2d`, `spine`) isn't loaded and isn't in `plugins` in liminalia.json, or a close misspelling of a type (`Live2D`). The game shows the image sprite ([live2d-spine.md](../../live2d-spine.md)) |
| `chara-reshow` | Warning | The same character is shown again after their sprite was hidden, with no text in between (it disappears and appears again, so it flickers). When hiding everyone and the show right after can be made one `@chara … clear=…` with the same effect, that's the suggested fix. Depending on the case, such as hiding a single character, a suggested fix that deletes the line that hid it is also given. Not reported when the sprite set changes, when the character moves in or out with `enter` `exit`, or with a background change, a fade to black, a movie or `@wait` between hiding and showing again (chapter 6) |
| `chara-hide-per-line` | Warning | Hiding everyone with `@chara-hide-all` and showing them again within every 2 lines of dialogue, 3 or more times in a row (chapter 6) |
| `chara-solo` | Info | `@chara` on the line right after an `@chara-hide-all` while someone is on stage. Comes with a suggested fix that makes them one line, `@chara … solo=true` (for fixing the one-at-a-time style all at once; `lim check --fix chara-solo`). Not reported when the hide-all has anything other than `time`, when the character moves in, when a character on stage is shown again with the position or variant left out, or when it can't tell whether the character is on stage (chapter 6) |

**Assets and project settings**

| code | Severity | Contents |
|---|---|---|
| `missing-asset` | Error | An asset file that doesn't exist |
| `asset-not-exported` | Warning | A reference to a kind of file that isn't exported (an extension not in the table of assets) |
| `redundant-cg-unlock` `unshown-cg` | Info, warning | A `@cg-unlock` that isn't needed because showing the CG unlocks it, a CG that no scenario shows or unlocks (it can't be seen in the extras) |
| `font-no-vertical-metrics` | Warning | The font for vertical text has no vertical advance widths (vmtx) |
| `asset-case-mismatch` | Error | An asset name differs from the file name only in upper and lower case (it opens on Mac and Windows but can't be read on Linux servers or phones). It's compared against the real names in the folder, and the suggested fix replaces it with that name |
| `lfs-pointer` | Error | A referenced asset is still a Git LFS pointer (its content hasn't been fetched, so it can't be shown or played). Reported at the first reference of each asset. The fix is `git lfs pull` (in CI, `lfs: true` on `actions/checkout`) |
| `missing-voice` | Warning | A voice file that doesn't exist (only for speakers with a single `@voice-auto` pattern) |
| `bad-config` | Error, warning | liminalia.json or cast.json can't be read as JSON (the line and column are shown), a mistake in a `variables` name or in the value of `saves.location` (that item isn't used; chapter 10), a malformed `check.sound` (a scene in `quiet` that doesn't exist is a warning; "Gaps in sound" below) |
| `unknown-config-key` | Warning | An item not in the schema in liminalia.json, cast.json or a translation file (it isn't used). The suggested fix is an item with a similar spelling (chapter 10) |
| `newer-format` | Warning | `format` in liminalia.json (the version of the script format) is newer than this engine's format version (a script written with a newer engine; "Script format versions" in chapter 10) |
| `bad-ui` `bad-items` `bad-extra` `bad-after-load` | Error | A malformed `ui` `items` `extra` `afterLoad` in liminalia.json |
| `unknown-nvl-style` | Error | The look name in `@nvl on style=` isn't in `ui.nvlStyles` in liminalia.json (chapter 4) |
| `bad-command-defaults` | Error | A mistake in `commandDefaults` in liminalia.json (an unknown command or parameter, a value of the wrong type; that value isn't used; chapter 5) |
| `bad-chapters` `chapter-files` | Error, warning | Malformed `chapters` in liminalia.json, a file pattern that matches no scenario, or a file in two chapters (chapter 10) |
| `bad-auto-layout` | Error | Malformed `autoLayout` in liminalia.json (a number of positions that doesn't match the number of characters, an unknown `enter` or `exit`, a `byCount` key that isn't a headcount or an empty name), or a position name that isn't in any sprite frame (the written side of `byCount` too; chapter 6) |
| `chapter-card-empty` | Warning | A `@chapter-card` or `@chapter-end` with no number or title in a script file that isn't in any chapter (a blank card appears; chapter 10) |
| `not-in-chapter` | Info | In a project that uses chapters, a script file reached from the start with text that isn't in any chapter (the chapter heading in save slots and `chapter()` are empty; chapter 10) |
| `unknown-item` | Error | An item that isn't in `items` |
| `not-in-extra` | Warning | A command that unlocks a name that isn't in the `extra` lists |
| `missing-translation` `bad-translation` | Warning, error | A translation file doesn't exist, or can't be read as JSON (the line and column are shown) |
| `translation-lost-command` `unused-translation` `stale-translation` | Warning, info | An inline command in the original text is missing from a translation, a translation is unused, translations of original text that's no longer in the scenario are left in `stale` |
| `untranslated` | Info | The number of untranslated items (items with an empty translation and items not yet in the translation file: text lines, choices, command text, project settings text) |
| `outdated-translation` | Info | The number of items whose original changed after translation (lines with a fixed line ID; the translation of the earlier original is shown). `lim i18n --export xliff --changed` exports them (chapter 10) |
| `voice-unlocked` `voice-lock-outdated` `voice-lock-duplicate` | Warning, error | Mistakes in locked voice numbers: a line with no number (it doesn't play), a number for a line that's no longer in the scenario, the same number given to more than one line (chapter 10) |
| `bad-voice-lock` | Error | voice-lock.json can't be read as JSON |
| `ui-css-missing` | Error | A file listed in `ui.css` (the work's CSS) in liminalia.json doesn't exist (shown on that line of `ui.css`) |
| `ui-css-syntax` | Error | The work's CSS can't be read (an unclosed comment, quote or bracket; shown on that line of that file) |
| `ui-css-asset` | Error | A file that a `url()` or `@import` in the work's CSS points to doesn't exist (looked up relative to the CSS file) |
| `ui-css-outside` | Error | A `url()` or `@import` in the work's CSS points outside the work (an absolute URL like `http:`, a path starting with `/`, or above the work's folder; it isn't exported and can't be read in the exported game) |
| `bad-rules` `bad-scenes` | Error, warning | Malformed `check.rules` and `scenes` in liminalia.json (see below) |

**Screen templates (`ui.templates`)**

Standard screen templates that a project copied and edited ([screen-templates.md](../screen-templates.md)) are checked against the standard template and the rules of that screen (the part names, the values of `data-role` and `data-field`, and the `data-role` values the screen needs).
Problems in liminalia.json go on the line of that screen in `ui.templates`, and problems inside a template go on the line of that file.

| code | Severity | Contents |
|---|---|---|
| `template-missing` | Error | A file registered in `ui.templates` doesn't exist or can't be read (the standard screen is shown as is) |
| `template-unknown-screen` | Warning | A screen name in `ui.templates` isn't a screen that can be made with a template (it isn't used). Shows a name with a similar spelling, or the screens that can be made |
| `template-overridden` | Warning | A plugin's `screens.*` (also `system`, and the `screens.*` of the chosen theme) replaces the same screen, so the template isn't used. Only what can be read from how the plugin's `./web` is written is checked |
| `template-unknown-part` | Warning | A part name (`data-part`) in the template isn't in that screen, a `<template>` has no `data-part`, or the file has no parts and no `<style>` (it isn't used) |
| `template-unknown-value` | Warning | A value of `data-role`, `data-field`, `data-text` or `data-setting` does nothing in that screen (pressing does nothing, no text goes in). Shows a value with a similar spelling |
| `template-missing-role` | Error | A `data-role` the screen needs is missing (none of `close`, `cancel` and `ok` to close it, no `ok` in the confirmation screen, and so on). Checked on the whole screen, with the project's parts placed over the standard parts |
| `template-list-item` | Error | A `data-list` in a part has no `data-item`, or the `data-item` part doesn't exist (the rows of the list can't be made) |
| `template-unsafe` | Warning | The template has something the game removes at run time (elements such as `script`, attributes starting with `on`, outside URLs, links to other pages, `@import`), so it doesn't work |
| `template-outdated` | Warning | The version a part was copied from (its `data-version`) is older than the standard's current version, or has no version (the standard template changed). Shows the part name and the standard's current version, and points to `lim screens diff <screen>` |
| `template-script-export` | Warning | The screen JS (the `.js` next to the template with the same name; `ui/screens/<screen>/<screen>.js` when no template is registered) has no `export default` (it does nothing when loaded) |
| `template-script-unknown` | Warning | The screen JS uses something the screen `api` doesn't have (such as `api.answer`), or an `api.press` value that does nothing in that screen. Only checked when the parameter is named `api`. Shows a similar name |

**Project data (data declared by plugins)**

Project data whose shape a plugin declares (the .json files in `paths.data`; docs/plugins.md) is checked against the declaration.

| code | Severity | Contents |
|---|---|---|
| `data-missing` `data-type` `data-duplicate` | Error | A required item is missing, a value has the wrong type, the same id appears twice |
| `data-bad-expr` | Error | A condition expression in the data can't be read |
| `data-missing-asset` `data-unknown-cast` `data-unknown-scene` `data-unknown-ref` | Error, warning | An asset, character, scene or other item referred to in the data doesn't exist |
| `data-flag-unset` `data-flag-unread` | Warning, info | No script or data sets a flag the data reads, nothing reads a flag the data sets |
| `unknown-data-key` | Error | The value of a plugin command's data-name parameter (`t.dataKey`) isn't in the project's data (also when the data file doesn't exist, or when the path the parameter reads isn't in the file) |
| `unknown-investigation` `unknown-codex-entry` | Error | The name for a standard investigation (`@investigate`) or codex (`@codex-unlock` and so on) isn't in the project's data (`data/investigation.json`, `data/codex.json`). Also when a view or section name doesn't exist. Found while running, it's a runtime diagnostic (a warning for the codex) |
| `map-spot-hidden` | Warning | The middle of a spot's press area on a map choice screen (`@map-choice`) is under the details panel (`panel`), so it can't be pressed. Move the spot out from under the panel, or put `panel` on a side that doesn't cover it |

**Plugins**

| code | Severity | Contents |
|---|---|---|
| `plugin-load` | Error | A project plugin can't be loaded (the package doesn't exist, a syntax error and so on; the reason is given). Studio and `lim studio` open without that plugin, and reports that its commands are undefined are gathered into the hint of this diagnostic |
| `plugin-check-failed` `plugin-check-invalid` | Error | A plugin's `check` threw, or returned something that isn't an array of diagnostics or diagnostics with the wrong shape (the other checks run to the end) |
| `plugin-api-version` `plugin-engine-version` | Warning | A plugin uses a newer interface version than this engine (`apiVersion` of `defineCommandPlugin`, and `liminalia.api` and `engines.liminalia` in `package.json`; "Declaring compatible engines" in [plugins.md](../../plugins.md)) |
| `theme-engine-version` | Warning | `engines.liminalia` of a theme in the project (`themes/<id>/theme.json`) doesn't match this engine's interface version (some of the look may not show) |
| `engine-version` | Warning | `engines.liminalia` in `liminalia.json` (the engine interface versions the game or template works with) doesn't match this engine |
| `plugin-function-clash` | Warning | A plugin's expression function has the same name as a built-in function, so it isn't used |
