Nucleus handler tools › Docs › Checks

The value has the wrong form

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

Why it matters

Some text options have a fixed form (CustomHotkeys, CopyFoldersTo, SteamlessPatch, BinariesFolder…). Written another way, Nucleus fails during setup or the option does nothing.

Example

✗ Wrong

Game.CustomHotkeys = ["true|Toggle HUD|H"];

✓ Right

Game.CustomHotkeys = ["true|Toggle HUD|Ctrl|H"];
Game.OnCustomHotKey_1 = function () {
};

How to fix it

Use the form from the option's docs (a hotkey is "on|name|modifier|key"); the quick fix rewrites the common cases.

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