Menu ▾ ▴

Console commands

Rufus Pearce

Commands can be entered directly into the debug console or invoked through the I/O system using a logic_command entity.

General

Command Description
help Display available console commands

Entities

Command Description
list List entities
entities Alias for list
ents Alias for list
ls Alias for list
ent <name> Show information about an entity
info <name> Alias for ent
spawn ... Spawn an entity
delete <name> Delete an entity
kill <name> Alias for delete
hide <name> Hide an entity
show <name> Show a hidden entity
tint <name> <R> <G> <B> Apply a tint
tint <name> clear Clear an entity's tint

Entity Properties

Command Description
setprop <name> <property> <value> Set an entity property
set <name> <property> <value> Alias for setprop
getprop <name> <property> Read an entity property
get <name> <property> Alias for getprop

I/O

Command Description
fire <entity> <output> Fire an entity output
ent_fire ... Alias for fire
trigger <entity> Trigger an entity
send <entity> <input> ... Send an input to an entity
toggle <entity> <property> Toggle an entity property
outputs <entity> List available entity outputs
inputs <entity> List available entity inputs
connect ... Create an I/O connection
disconnect ... Remove an I/O connection
list_connections List I/O connections
connections Alias for list_connections

Monsters

Command Description
monster_kill <name> Kill a named monster
kill_monster <name> Alias for monster_kill
monster_revive <name> Revive a named monster
monster_revive_all Revive all monsters

Play Mode

Command Description
physics ... Control physics debugging/state
setpos ... Set the player position
teleport ... Alias for setpos
ss ... Control split-screen
cam ... Control the camera
camera ... Alias for cam
message "text" Display a temporary message directly in the 3D play view
noclip Toggle noclip movement
god Toggle god mode
buddha Toggle Buddha mode
notarget Toggle whether monsters target the player

message

message "text" displays text directly in the QtGameView play screen.

The message:

  • Is limited to 50 characters.
  • Appears one line above the row used for held items/keys.
  • Fades in over 1 second.
  • Remains fully visible for 5 seconds.
  • Fades out over 1 second.
  • Remains on screen for 7 seconds in total.

Only one message is displayed at a time. If another message command arrives while a message is already being displayed, the new message is placed in a FIFO queue and is shown automatically after the current message has completely faded out.

For example:

message "You found the blue key"

Level and Save Games

Command Description
map ... Load/change the current map
save ... Save the current play session
savegame ... Alias for save
load ... Load a saved play session
loadgame ... Alias for load
quicksave Create a quicksave
qs Alias for quicksave
quickload Load the quicksave
ql Alias for quickload
saves List available saves
listsaves Alias for saves

Rendering

Command Description
r_list List renderer information/settings
r_wireframe Toggle wireframe rendering
r_shadows Toggle shadow rendering
r_fog Toggle fog
fog Alias for r_fog
disablefog Explicitly disable distance fog
enablefog Explicitly enable distance fog
nofog Alias for disablefog
r_disablefog Alias for disablefog
r_enablefog Alias for enablefog
r_viewdistance <distance> Set the renderer far-plane/view distance
r_water Toggle water rendering
r_glass Toggle glass rendering
r_lighting Toggle lighting
r_deferred Toggle deferred rendering
r_vsync Toggle VSync
r_clearcolor Set the renderer clear colour
r_reloadshaders Reload shaders
r_info Display renderer information

View Distance and Fog

r_viewdistance controls the maximum rendering distance. Fio also performs distance-based geometry culling, preventing objects beyond the configured distance from being submitted for rendering.

Distance fog can be used to hide the transition to the far-plane boundary. Fog and view distance are independent: disabling fog does not change the configured view distance.

For example:

r_viewdistance 4096
enablefog

sets a 4096-unit rendering horizon with distance fog enabled.

r_viewdistance 6000
disablefog

sets a 6000-unit rendering horizon while leaving fog disabled. The far-plane boundary will therefore remain visible.

disablefog and enablefog explicitly set the fog state rather than toggling it, making them safe to invoke repeatedly through bindings or the I/O system.

Rendering aliases

The following shorter aliases are provided:

Alias Equivalent
wireframe r_wireframe
shadows r_shadows
fog r_fog
nofog disablefog
water r_water
glass r_glass
lighting r_lighting
deferred r_deferred
vsync r_vsync
reloadshaders r_reloadshaders

Debugging

Command Description
sg Toggle spatial-grid debugging
showcollision Show collision geometry
collisionvis Alias for showcollision
collision Alias for showcollision
fps Toggle/display FPS information
clear Clear the debug console

Portals

Command Description
portal_list List portals
portal_create Create a portal
portal_link Link portals
portal_color Set portal colour
portal_enable Enable a portal
portal_disable Disable a portal
portal_delete Delete a portal

Plugin Commands

The native command handler also provides an extension point for plugins.

Plugins can register their own console commands through the Fio plugin API. When the console receives an unknown command, it checks the plugin manager before reporting the command as unknown.

Therefore:

The list above is the complete built-in command set, but not necessarily the complete command set of a Fio installation.

Installed plugins may add additional commands at runtime.