Skip to content
Lethosor edited this page Jul 20, 2018 · 2 revisions

DF-AI has several console commands available.

Using the console

To use any of the following console commands, simply enter them in the DFHack console window

Console Commands

  • enable df-ai - Enables DF-AI. For best results, enter this from the title screen or at the start of a fresh embark. Note: DF-AI does not handle already established forts, but can resume from previous df-ai saves. Check dfhack-config/df-ai.json for additional embark & fort settings.
  • ai - Shows the status of the AI.
  • ai version - Shows information that uniquely identifies this build of df-ai.
  • ai report - Writes a more detailed status report to df-ai-report.log.
  • ai enable events - Write events in JSON format to df-ai-events.json.
  • ai disable events - Stop writing events to df-ai-events.json.
  • ai enable lockstep - Runs Dwarf Fortress as fast as possible, locking animations to the frame rate instead of real time. May cause crashes; use at your own risk.
  • ai disable lockstep - Undoes ai enable lockstep, returning Dwarf Fortress back to configured frame rate.
  • ai enable camera - Allows the AI to control of the camera, automatically focusing on different tasks and events. Note, the player may still move the camera at any time, but the AI will retake control. Zoom-level is unaffected.
  • ai disable camera - Undoes ai enable camera, returning the camera control to just the player.
  • ai abandon - Abandons the current fortress and returns to the title screen.
  • ai validate - Verifies that df-ai-blueprints is set up correctly.

Console history

The DFHack console maintains a history of previously entered commands.

Use the up and down arrow keys to scroll through the console's history.

Use the left and right arrow keys to move the cursor through the currently displayed command.

Clone this wiki locally