🌱
The Insurgent's Forge
  • Home
  • Getting Started
    • Setup
    • Resources
  • Overview
    • Configuration
      • Formulas
      • Functions
      • Classes
      • Helpers
      • Assemblies
      • Middlewares
      • Dependencies
      • Options
      • Errors
    • Improvements & Additions
    • Structures & Parameters
    • Formula Workflow
      • Combo
      • Counter
      • Area of Effect
      • Reserve Party Member
      • Reflect
      • Mist
      • Trap
      • Chain Benefit
      • Summon
      • Spawn
      • Gambit
    • Limitations
      • Animations
      • Status Effects & Augments
    • Notes
      • Flags
      • Loops
      • Function in a Function
    • Helpers
      • Add Augment
      • Add Status Effect
      • Apply Knockback
      • Get Active Party Member
      • Get Action Status Effects
      • Get Augment Duration
      • Get Battle Unit Keep
      • Get Battle Unit Keep By Focus
      • Get Battle Unit Work
      • Get Character Max Hp
      • Get Character Max Mp
      • Get Character Type
      • Get Elemental Affinities Match
      • Get Equipment Status Effects
      • Get Forced Poach Rarity
      • Get Forced Steal Rarity
      • Get Formula Proc Keep
      • Get Knockback Range
      • Get Location Mist Strength
      • Get Model Evade Types
      • Get One Hit Kill State
      • Get Random Number
      • Get Reflect Target
      • Get Remedy Status Effects
      • Get Status Effect Duration
      • Get Status Effect Tick Duration
      • Get Status Effects Match
      • Get Terrain Type
      • Get Weather
      • Is Interactable
      • Modify Content
      • Modify Gil
      • Modify Hp
      • Modify Mist Charges
      • Modify Mp
      • Modify Sky Pirates Den Stats
      • Refresh Stats
      • Remove Augment
      • Remove Status Effect
      • Set Level
      • Shift Elements
      • Show Combat Log
      • Show Number Text
      • Teleport Location
  • Support & Updates
    • Changelogs
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
    • Known Issues
    • FAQ
Powered by GitBook
On this page
  • General
  • Compile Errors
  • Runtime Errors
  1. Overview
  2. Configuration

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.

PreviousOptionsNextImprovements & Additions

Last updated 1 year ago