Debug Menu and Scenario Testing Commands
The debug menu and the console commands for testing scenarios: reload PDA, dialogue, trader and config files, spawn AI and base attacks, and work on terrain.
These tools are mainly for testing and for scenario creators. The level after each command is what it needs: Player, GameMaster, Moderator or Admin. In single player, and as the host of a co-op game, every command works for you; on a server your role must reach that level. The levels are fixed in the game itself, so a server cannot change them. How to open the console: How Do I Use Console Commands?.
Debug menu (Moderator)
debugmenu or dm switches the debug menu on or off. The game menu that opens with Esc then has a Debug Options button, and its window offers:
- sliders for the time of day and for how fast time passes,
- a teleport to another playfield in the sector, to coordinates, or to a planet's surface or orbit,
- a Kill Me button and an Enable AI switch,
- a spawning section, with a level, a group and spawning in space.
The time sliders and the AI switch only work in single player or for the host. In a Creative game the button is there without dm, but the window then leaves out teleporting, Kill Me, Enable AI and spawning. In a game on your own computer, dm also enables F9 for debug data and the number pad: Enter pauses the game, plus and minus change its speed.
Reloading scenario files
- pda rd (Admin) reads the PDA files from the scenario folder into your save again; pda rd f also resets the chapter that is active. pda ls lists all chapters with their numbers, hidden ones included.
- With those numbers: pda clr number clears a chapter's progress (0 clears all), pda rwdchap number grants its reward (a minus sign takes it back), pda brief shows its briefing and pda msg its completion dialog, and pda spndrp number task or chap spawns the drop box reward of the active task or chapter.
- pda script runs commands for a scenario's C# script (PDA.cs) instead of PDA.yaml: run compiles and starts it, kill stops it, rc id runs a chapter and rt id a task, ct completes the active task, and ps prints its status.
- dialoguesystem or ds (GameMaster): ds reload reads the dialogue file again without a restart, ds state starts a dialogue in the console, ds a number picks an answer, and ds alone lists the states. Its help gives ds number for an answer, but only ds a works. ds dump writes the generated code to a file, so that line numbers in error messages can be traced.
- traders (GameMaster) lists every trader, and traders reload reads the trader config again. tokenconfig or tc (GameMaster) lists or reloads the tokens.
- reloaddata or rd (GameMaster) reloads one config without a restart: blocks, items, materials, dm (damage modifiers), blockgroups, bp (blueprint headers) or lsd (the loading screen texts). GlobalDefConfig.ecf is always reloaded with it, so after changing a global, reload the config that uses it too.
- loadcommands or lc file (GameMaster) runs the console commands listed in a file. script file (Admin) runs a C# mod script, named without .cs. gamescenario or gsm (Admin): gsm start starts the game rules for a scenario in development, and gsm tn triggers the NPC core placement event.
Spawning AI and attacks
- aimanager or aim (GameMaster): aim av vessel spawns a vessel in space, and on a planet aim av ground base vessel one for that ground base; aim af name spawns a freighter, aim asf type a ship fighter, aim aa a creature, aim afb a fighter bay, and aim att a base with a troop transport that attacks you at once.
- aim adb blueprint places a drone base some distance in front of you, a random one without a name (aim adb l lists them); aim tdw base ID sends the next drone wave at that player base, aim ws shows the wave state, aim aga creates an area guarded by drones around you, and aim info prints what the AI is doing. Its help names pdatroopTransport, but only the short form pdatt works.
- ai on and ai off (Moderator) switch the AI on or off, and ai on entity ID one AI. ai fb shows feedback from the AI within 200 m, or from one entity ID, and ai fb alloff switches it off.
- baseattack or ba (GameMaster) starts an attack on a nearby powered base: ba z count sends Zirax troops (5 without a count), ba w scenario price faction a wave from FactionWarfare.ecf, and ba s group level faction the best wave for that level, Zirax unless you name a faction. ba wd and ba sd only test the file and write to the log. ba list shows the player bases with their attack value, and ba reset and ba clear end the attacks; help ba lists the rest.
- df (GameMaster) works with the Dark Faction: df gdf reads the Dark Field where you stand, df dfe tells whether the Dark Faction exists in the galaxy, df ap and df rp add or remove the pillars on all pillar bases (an optional delay in seconds), and df fv seconds freezes the vessel you are in, for 10 seconds without a number.
- AdditionalPoiSpawning or aps center spread min max (GameMaster) tests the values for random POI spawning, for example aps 5 5 1 3.
Terrain and looks
- terraineditor or te (Admin) opens the terrain editor on a planet with splat-map terrain. It does not work in multiplayer, in space or with EAC switched on; see Is EAC Required in Single Player?.
- deco (GameMaster) works on the terrain decoration: deco r reloads it, only in Edit mode and not in multiplayer; deco off switches decoration and grass off, and there is no deco on; deco s switches dynamic tree shadows. The other options (all, splat, biome, temp, hum, slopes, height, water, debug) are debug views. Its usage line also names normal and wip, which do nothing.
- grass r (Moderator) refreshes the grass, and grass auto seconds repeats that. combiner on or off (GameMaster) switches the terrain's mesh combiner. decals (Moderator) reloads the decals in the current POI, lightmap or lm (Moderator) is a lightmap test, and ag (Moderator) shows the land claims as an overlay on the terrain.
Developer tools
- dt (Admin): dt locakeys shows localization keys instead of the texts, and dt rocketDamage debugs rocket damage. debugentity or de (GameMaster) hands an entity ID to the debug tools, and database or db (GameMaster) on writes every database query to a file in the game folder, off stops it.
- network or net (Admin) simulates packet loss, latency and bandwidth limits (net off clears them), and shipcrtl or sc (Admin) changes the flight controller: cruise levels, pilot mode, maximum speed, drag and lift, boosters, RCS, auto thrust, the pilot HUD and the hover bike settings. profiling (Player) records Unity profiling data for a while, and loadscene or lsc (Admin) loads a test scene; its own help warns to use it only if you know what you are doing.
- bpyaml export and bpyaml import (GameMaster) turn blueprints into YAML files and back, blockvoxels (GameMaster) writes the voxels of all blocks and shapes to BlocksVoxels.yaml, bpcoll (GameMaster) shows the blueprint parts collection window (its short description is copied from di), and shapeswdw r or shw r (Player) reloads BlockShapesWindow.ecf.
Updated 2026-11-30