Nucleus handler tools › Docs › Checks

A name that doesn't exist

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

Why it matters

Nothing declares this name and Nucleus doesn't provide it: a typo, a stray word or a variable from another handler. Reading it throws "<name> is not defined": at the top level the handler fails to load, in Game.Play the session ends.

Example

✗ Wrong

Game.Play = function () {
  var args = "-w " + widht;
};

✓ Right

Game.Play = function () {
  var width = Context.Width;
  var args = "-w " + width;
};

How to fix it

Fix the spelling (the problem suggests the closest name) or declare the variable first.

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": { "undefined-name": "off" } in your settings. Notepad++: Plugins › Nucleus Co-op handlers › Settings. Command line: ncdev lint --rule undefined-name=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