Nucleus handler tools › Docs › Checks

Code that can't be read

Errorsyntax-errorA Nucleus check · Nucleus fails: the handler doesn't load, or the session ends.

Why it matters

The handler isn't valid JavaScript, so Nucleus can't load it at all: the game disappears from its list. Often a missing bracket, quote or comma.

Example

✗ Wrong

Game.Play = function () {
  Context.StartArguments = "-windowed";

✓ Right

Game.Play = function () {
  Context.StartArguments = "-windowed";
};

How to fix it

Look at the line the problem points to and the line before it: close the bracket or quote that is still open.

Turn it off, or change how it shows

Each check can be shown as an error, warning, info or hint, or turned off. VS Code: "splitscreenme.lint.rules": { "syntax-error": "off" } in your settings. Notepad++: Plugins › Nucleus Co-op handlers › Settings. Command line: ncdev lint --rule syntax-error=off. Other editors: the lint.rules setting of ncdev lsp.

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop