Errors

General

While working on a configuration file, you might make a mistake at some point. To know that once it happens, I recommend enabling the console feature of the External File Loader by doing the following:

  1. Navigate into the game directory.

  2. Open the following file: {game}/x64/hook.ini.

  3. Scroll down to the [log] section.

  4. Set the property disableConsole to false.

Now whenever you start the game, an additional terminal window will be opened beside it. This window will be updated with information about any errors that may occur while the game is open.

Compile Errors

Compile errors are revealed whenever a function, helper, etc. is loaded from the configuration files.

Let's assume you created the following function:

local function func(formula, caster, target, functions, classes, helpers)
  print("This is a test."))
end

return func

As you probably noticed, there is an additional closing parenthesis on the 2nd line. That's why a syntax error will be thrown once this function is loaded.

Runtime Errors

Runtime errors are revealed whenever a function, helper, etc. is executed.

Let's assume you created the following function:

local function func(formula, caster, target, functions, classes, helpers)
  print(caster.experience)
end

return func

Now this code might look just fine on a first look. However, once it executed as part of a formula, it will throw an error. That's because the caster's experience is not saved in the property experience, but exp instead.

Last updated