Nucleus handler tools › Docs › Checks

The wrong kind of value

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

Why it matters

Nucleus expects another type here (a number, true/false, a list…). Some values are converted, others make Nucleus fail to load the handler or ignore the option.

Example

✗ Wrong

Game.MaxPlayers = "4";

✓ Right

Game.MaxPlayers = 4;

How to fix it

Write the value the way the option's docs show it: numbers and true/false without quotes, lists in [ ]. The quick fix converts it when it can.

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