Nucleus handler tools › Docs › Checks

A callback Nucleus never runs

Warningcallback-misuseA Nucleus check · Probably wrong: Nucleus runs it, but not the way you meant.

Why it matters

Some callbacks never run (Game.SetupSse), or run under conditions that can't happen (Game.Play with both GamePlayBeforeGameSetup and GamePlayAfterLaunch on).

Example

✗ Wrong

Game.SetupSse = function () {
};

✓ Right

Game.Play = function () {
};

How to fix it

Move the code to a callback Nucleus runs (usually Game.Play), or remove it.

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