Game Debugger

From Ardenfall Wiki
Jump to navigation Jump to search

The game debugger is a UI available in the game.

Getting Started

To enable debug tools, edit the buildsettings.txt file alongside your installation. Set "enableDebugTools":true.

To open the debugger, load up a game (the debugger is not available in the main menu), and press F1.

Utilities Tab

This tab is for lots of miscellaneous debug features.

Dead Body Revival

If you look at a dead body, a special menu will appear at the top of the utility debugger. This will let you revive

Player Editor

Enable/Disable God Mode: Make the player unable to die. (You will lose health, but not die)

Heal Player: Fully heal yourself

Enable/Disable Fly: Fly into the heavens. You can also press F to toggle this

Enable/Disable Speed Boost: Move very quickly

Add all Traits to Player: Give yourself all traits. Used to test dialog!

Time Editor

Morning/Day/Evening/Night: Set the time to a preset

Freeze Time: Makes time stop moving forward Hour, Minute: Add hours and minutes to the current time.

Weather Editor

Random (Instant): Will randomly change the weather instantly Random (Transition): Will randomly change the weather, but will slowly transition. Pressing this while already transitioning can cause bugs Enable Region Weathers: Select a specific weather to switch to

Spawn NPC

Spawn a specific npc where the mouse is pointing

Spawn Item

Spawns a specific item. Pressing Spawn Pickup will spawn the item on the ground, and Add to Inventory will add it to your inventory with a specific count. Tip: If you are looking at an NPC, there is an option to add it to their inventory.

Player Preset

Switch to a handful of player presets. Switch To will only switch the race / gender, and Switch To + Inventory will also give the player the preset inventory and equipment

Teleport To Location

Teleport to a map location or a certain cell.

NPC Cheats

Kill X Characters: Kill all of the loaded NPC’s

Destroy X Characters: Destroy (leave no bodies) all of the loaded NPC’s

Destroy X Enemies: Destroy (leave no bodies) all of the loaded Enemy NPC’s

Random Spawning: Will toggle random monster spawning

AI Cheats

AI: Toggles npc AI

AI Navigation: Toggles npcs being able to move around

Force Stealth UI Display: Toggles making the Stealth UI to always enabled, regardless of sneak

AI Logging: Toggles verbose logging of NPC AI

NPC Viz: Toggles showing NPC info Gizmos at a distance

NPC State Viz: Toggles showing NPC AI state Gizmos

Viz Brightness: Toggles showing the brightness calculation Gizmos for the AI

Viz Random Spawning NPCs: Toggles showing the position Gizmos of all of the random spawners

Steam Cheats

Add 1 to Stat [test]: tests a specific steam stat

Trigger [ESCAPED_STARTING_DUNGEON] achievement  tests a specific steam achievement

Wipe Achievements: Erases the achievements of the player

Item Cheats

Add a lot of items to your inventory

Misc Cheats

Refresh Avatars: Forces all avatars to regenerate their meshes

Audio Gizmos: Toggles gizmos for audio sources

Player Collisions: Doesn’t work

Recalculate ALL Character’s Items: Recalculate all spawned characters item stats

Recalculate ALL Character’s Stats: Recalculate all spawned characters stats

Disable Dialog Conditions: Will force dialog topics and multiple choices to always be enabled

Freeze Timescale: Freezes game time. Stops animations, movement, and so on.

Cinematic Mode: Makes shooting arrows and fireballs shoot from the hands, not the camera

Ambient Lighting: Toggles ambient lighting

Player Creation Menu: Toggles the player creation menu from opening

Clear Tutorial Messages: Clear what tutorial messages have been seen by the player

Level Up: Force the player to level up

Log Lookup Table: Only usable in build. Will log the entire lookup table

Mockup Overlays: Lets you mockup HUD elements

World Streaming Toggle world loading. This can be used to stop world loading freezing in editor in particular.

Dialog Debug Text: Don’t know

Test Popup: tests popup UI

Quest Debugger

Lets you debug quests. There are two sections: Enabled and Disabled quests.

Current State: The current state

Current Phase: The current phase

Phases: The list of phases. You can also see the objectives and their state.

Objects: The list of objects. If it is a character object, you can teleport to that character.

Variables: The list of variables, and their value

Entry Points: A list of entry points. More info here.

Character Debugger

The Character Debugger lets you debug and modify a certain character.

Dropdown: Select a spawned character by name

Select Targeted: Select the character you are looking at

Select Player: Select the player

Select Nearest: Select the nearest NPC

Enable Gizmos: Will force Gizmos to be enabled even when this window is closed

Heal: Fully heals this character

Stats

Lists all of the characters stats. Attributes, Skills, and other stats.

Stat Editor

Modify Level: Lets you set the level of the character

Update Range Stats: Force the ranged stats (health, mana, etc) to be recalculated

Modify Attributes: Set all attributes to a certain value

Modify Skills: Set all skills to a certain value

Full Editor: Here you can edit the attributes and skills. Press “Load From Character” to update the editor with the current character’s stats, then you can edit and then press “Save to Character”

Factions

Displays the factions the character is in.

Inventory

Displays all of the items the character has in their inventory

Avatar Meshes

Displays info on the visible and invisible avatar meshes

Hand State Handler

Displays state of the current hand state handler

Visibility

Displays state of what characters are attacking them, and what characters the npc can see

Blackboard

The list of saved blackboard variables to this character

AI

Player Visibility (Aware): What visibility the player would be at if the character was aware

Player Visibility: What visibility the player is at right now

Player Light Visibility: The light visibility of the player

Player Sound Strength: The strength of the last sound the player made

Player Last Sound: How long ago the last sound the player made

Blackboard: The AI blackboard values

Targeter: Information related to the AI’s targeting system

Awareness: Values related to detection of player

Current State: The current AI state

Package List: The list of packages for the current state, and which current package.

Show info related to the navigator

Test Path to Player

Debug whether the character could path to the player

Dialog Graphs

Displays the list of dialog graphs attached to this character

Utilities

Add .25 Reputation: Adds a bit of rep towards the player

Remove .25 Reputation: Removes a bit of rep towards the player

Teleport Player to Character: Teleport yourself to the character’s position

Teleport Character to Player: Teleport the character to your own position

Teleport Camera to Character: Teleport the free camera to the character’s position

Teleport Character to Camera: Teleport the character to the free camera’s position

Disable AI: Disable AI for this character

Enable AI: Enable AI for this character

Kill: Kill the character

Clear ‘Has Interacted With’: Clear the value that stops dialog from appearing multiple times

Force NPC to path to Player: Doesn’t work

Fill Health: Heal character

Clear Health: Set health to 1

Select Character: Select character in editor

Select Avatar: Select avatar in editor

Mod Debugger

The Mod Debugger allows you to reload mods while playing (very useful), as well as view information about mods.