Repository navigation
Errors and how to fix them
Matto edited this page Dec 6, 2022
·
2 revisions
- Your code contains a command/function that does not exist.
- In the shell: The command you entered isn't valid.
- There might be a typo somewhere. (e.g.
conoutinstead ofcon.out) - Check the docs for all the functions that exists and try to find the one that does the thing.
- A command/function received less arguments than it expected.
- Try checking the line the error happened and ensure the command/function is receiving the correct amount of arguments. (e.g. missing
nlincon.out)
- The file specified cannot be found.
- There might be a typo somewhere. (e.g.
tex.txtinstead oftext.txt) - Ensure that the file exists.
- Ensure that you're running the code in the correct directory.
- There was an attempt to use a variable that does not exist.
- There might be a typo somewhere. (e.g.
$hwordinstead of$hworld) - Ensure that the variable is correctly assigned.
- A variable wasn't assigned any value. (e.g.
var $exampleinstead ofvar $example=123)
- Make sure you didn't forget an equals sign. (e.g.
var $example123instead ofvar $example=123)
- Something happened internally.
- Please report this ASAP with your engine version and the code you were running.
- Fix it yourself, MattoScript is open-source after all!