Skip to content

Errors and how to fix them

Matto edited this page Dec 6, 2022 · 2 revisions

MTS-1 - InvalidCommand

  • Your code contains a command/function that does not exist.
  • In the shell: The command you entered isn't valid.

Possible fixes

  • There might be a typo somewhere. (e.g. conout instead of con.out)
  • Check the docs for all the functions that exists and try to find the one that does the thing.

MTS-2 - TooLittleArgs

  • A command/function received less arguments than it expected.

Possible fixes

  • Try checking the line the error happened and ensure the command/function is receiving the correct amount of arguments. (e.g. missing nl in con.out)

MTS-3 - FileNotFound

  • The file specified cannot be found.

Possible fixes

  • There might be a typo somewhere. (e.g. tex.txt instead of text.txt)
  • Ensure that the file exists.
  • Ensure that you're running the code in the correct directory.

MTS-4 - UnassignedVar

  • There was an attempt to use a variable that does not exist.

Possible fixes

  • There might be a typo somewhere. (e.g. $hword instead of $hworld)
  • Ensure that the variable is correctly assigned.

MTS-5 - NoValVar

  • A variable wasn't assigned any value. (e.g. var $example instead of var $example=123)

Possible fixes

  • Make sure you didn't forget an equals sign. (e.g. var $example123 instead of var $example=123)

MTS-ffffffff - InternalError

  • Something happened internally.

Possible fixes

  • Please report this ASAP with your engine version and the code you were running.
  • Fix it yourself, MattoScript is open-source after all!