|This article was migrated from DF2014:Init.txt and may be inaccurate for the current version of DF (v50.07). See this page for more information.|
|This article is about the current version of DF.|
Note that some content may still need to be updated.
- Many of these settings are covered in detail here.
The init.txt file can be used to make many adjustments to the game presentation and feel, like changing screen size, or enabling Tilesets. Other options that would improve framerate by deactivating features are contained in d_init.txt.
This file is located at
<Dwarf Fortress>/prefs/init.txt along with the embark profiles, d_init.txt, and other useful files.
WARNING: Do NOT copy over the init.txt from an earlier version of DF.
Always read the file carefully, including the comments.
In general, you can copy savegames and mods from older DF versions, but you should not copy anything else. You should not, under any circumstances, unpack a new DF on top of an older one.
Change this to turn sound off.
The sound volume runs from 0 (off) to 255 (full). You can set the volume from the ESC options menu as well.
This lets you set the starting windowed/fullscreen setting. Can be YES, NO or PROMPT.
This is the size and font for windowed mode. Changing to the 800x600 font might make you happier.
You may disable window resizing if you wish.
Full screen info. The 0s below mean that the game will choose a resolution for you, but you can set it yourself as well.
This font is used during the initial load sequence and menus.
If this is set to YES, the game will try to enlarge the interface to the desired size if the window is large enough to accommodate it. If the window is too small, nothing will happen. The game will err on the side of making the grid larger.
If INTERFACE_SCALING_TO_DESIRED_GRID is set to NO, the game will scale the interface using a fixed percentage. The game increases the font one pixel at a time and will err on the side of making the grid larger.
For wider monitors, restrict the width of the interface-heavy screens to a percentage of the total width. Does not affect the main play area. Some elements like the elevation bar and minimap may go outside this range (rather than cut the screen in half.)
Change this to YES if you want to see an FPS counter at the top left.
Use this to set the maximum frame rate during play. The movies are always capped at 100. A frame in this case is not graphical but related to the movement speed of a creature. A healthy, unencumbered dwarven peasant takes one step every 10 frames.
You may set FPS_CAP to 0 to make it uncapped.
Use this to set the maximum graphical frame refresh rate during play.
This controls the number of milliseconds that must pass before a held key sends an initial repeat press to the game. You might need to adjust this.
This controls the number of milliseconds that must pass before a held key sends a repeat press to the game after the repeat process has begun.
If you set KEY_REPEAT_ACCEL_LIMIT above one, then after KEY_REPEAT_ACCEL_START repetitions the repetition delay will smoothly decrease until repetition is this number of times faster than at the start.
This controls the number of milliseconds between macro instructions.
This controls the number of milliseconds that must pass before input works again after the view recenters on an event in dwarf mode.
Change this to NO if you want to leave save uncompressed (you might want to do this if you are experience save corruption).
Change this to YES to start with the classic ASCII tileset.