Nucleus handler tools › Docs › Checks

A value Nucleus sets itself

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

Why it matters

Nucleus computes this value (a player's index, the screen size…); setting it from the handler is ignored.

Example

✗ Wrong

Game.Play = function () {
  Context.Width = 1280;
};

✓ Right

Game.Play = function () {
  var width = Context.Width;
};

How to fix it

Read it instead of setting it, or store what you need in your own variable.

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