Errors

General

While working on the 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.

Example

Let's assume you created the following configuration:

local function config(statusEffects, augments, locations, contents)
  local initialSteps = 100.00
  local recurringSteps = 50.00
  local statusEffects = {}
  local dialogId = 103
  local augmentId = augments.essentials
  local soundEffectId = 65
  local castingState = true
  local targetedState = true
  local fleeingState = true
  local findings = {
    --{location, {content0, count0, chance0}, {...}, {contentX, countX, chanceX}}
    {locations.sandSweptNaze, {contents.potion, 1, 2.00}}
  }

  return initialSteps, recurringSteps, statusEffects, dialogId, augmentId, soundEffectId, castingState, targetedState, fleeingState, findings
end

return config

As you probably noticed, the content type (items) is missing in contents.potion. That's why an error will be thrown once this configuration file is loaded.

Last updated