Nucleus handler tools › Docs › Checks
A call with the wrong number of values
Why it matters
Jint only finds a Nucleus method when you pass exactly as many values as one of its versions takes (default values in C# don't count). Otherwise it throws "No public methods with the specified arguments were found" and the session ends.
Example
✗ Wrong
Game.Play = function () {
var folder = Context.GetFolder();
};✓ Right
Game.Play = function () {
var folder = Context.GetFolder(Nucleus.Folder.InstancedGameFolder);
};How to fix it
Check the signature in the hover or the docs and pass every value, even ones that look optional.
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": { "wrong-arguments": "off" } in your settings. Notepad++: Plugins › Nucleus Co-op handlers › Settings. Command line: ncdev lint --rule wrong-arguments=off. Other editors: the lint.rules setting of ncdev lsp.
Is this right?
Tell us what's wrong