v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing Technical tricks

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 +
{{migrated article}}
 
{{Quality|Fine}}
 
{{Quality|Fine}}
 
{{av}}
 
{{av}}
 
{{TOC right}}
 
{{TOC right}}
''Dwarf Fortress'' has various settings that can affect the game experience. You can configure these in ''[[Settings]]'' accessed from the main menu or {{Menu icon|Esc}} menu. However, some settings can only be changed by directly editing the game configuration files, which include:
+
''Dwarf Fortress'' has various settings that can affect the game experience. You can configure these in ''[[Settings]]'' accessed from the main menu or ESC menu. However, some settings can only be changed by directly editing the game configuration files, which include:
 
* [[announcements.txt]] - contains configuration for the various game announcements.
 
* [[announcements.txt]] - contains configuration for the various game announcements.
 
* [[arena.txt]] - contains layouts of [[object testing arena]] maps.
 
* [[arena.txt]] - contains layouts of [[object testing arena]] maps.
Line 22: Line 23:
 
Most data in these files is in [[token]] form. Each token is defined by the text between an opening square bracket, <code>[</code>, and the next closing square bracket, <code>]</code>. The token identifier and any values are separated by a colons, <code>:</code>.
 
Most data in these files is in [[token]] form. Each token is defined by the text between an opening square bracket, <code>[</code>, and the next closing square bracket, <code>]</code>. The token identifier and any values are separated by a colons, <code>:</code>.
  
If anything goes wrong, you can completely reset the game's saved settings by deleting the <code>prefs\</code> folder while the game is not running, assuming the defaults have not been changed. This does not work with the files in <code>data\init\</code>, so you should make backups of them before modifying them. The game also uses the last occurrence of a token, so you could add your changes after the default values. You could then just remove the leading <code>[</code> to disable your entries and use the defaults.
+
If anything goes wrong, you can completely reset the game's saved settings by deleting the <code>prefs\</code> folder while the game is not running, assuming the defaults have not been changed. This does not work with the files in <code>data\init\</code>, so you should make backups of them before modifying them.
 
 
== d_init.txt ==
 
For settings that can be changed in game see: [[Settings]].
 
*[WALKING_SPREADS_SPATTER_ADV:YES] - Still in the files but currently has no effect, of course. Turns on or off the spread of blood spatter and other [[contaminant]]s between creatures and ground tiles in [[Adventurer mode]].
 
  
 
== init.txt ==
 
== init.txt ==
Line 34: Line 31:
 
*[WINDOWED:PROMPT] - Changes the window mode that ''Dwarf Fortress'' runs in. If this is "PROMPT" the game will ask you if you want to run in windowed or fullscreen mode. If this is "NO" the game will be fullscreen with no prompt, and if this is "YES" the game will be in windowed mode with no prompt.
 
*[WINDOWED:PROMPT] - Changes the window mode that ''Dwarf Fortress'' runs in. If this is "PROMPT" the game will ask you if you want to run in windowed or fullscreen mode. If this is "NO" the game will be fullscreen with no prompt, and if this is "YES" the game will be in windowed mode with no prompt.
  
{{TipBox|#fb0|float=center|'''The game does not save the following font options to {{tt|/prefs/init.txt}}; you can add them but they will be removed the next time you exit Settings in game.''' To make them persistent add them to {{tt|/data/init/init_default.txt}}.}}
+
{{TipBox|#fb0|float=center|'''The game currently may not render the interface correctly if the following are changed, depending on the font and render mode.'''}}
*[FONT:curses_640x300.png] - The font file that ''Dwarf Fortress'' uses in windowed mode. These values can be any .bmp or .png image in the {{tt|/data/art}} folder.
+
*[FONT:curses_640x300.png] - The font file that ''Dwarf Fortress'' uses. This value can be any .bmp or .png image in the data/art folder.
  
*[FULLFONT:curses_800x600.png] - The font file used in fullscreen mode.
+
*[FULLFONT:curses_800x600.png] - The font file that ''Dwarf Fortress'' uses. This value can be any .bmp or .png image in the data/art folder.
  
*[BASIC_FONT:curses_640x300.png] - The font used during the initial load sequence and menus.
+
*[BASIC_FONT:curses_640x300.png] - This font is used during the initial load sequence and menus.
 +
 
 +
== Settings - d_init.txt ==
 +
For settings that can be changed in game see: [[Settings]].
 +
=== Game ===
 +
*[IDLERS:TOP]{{verify|untested but seems to have been removed}} - Where to display the number of idling dwarves. The value can be either "TOP", "BOTTOM", or "OFF".
 +
 
 +
*[INVADERS:YES]{{verify|untested but seems to have been moved to difficulty}} - Turns on or off fortress mode [[siege]]s. Turning this off for your first couple of games may make the game easier to start with.
 +
 
 +
*[ZERO_RENT:NO]{{verify|untested but seems to have been removed}} - If this is "YES", when the dwarven economy kicks in all rooms will cost nothing, allowing even the poorest of haulers to have a room fit for a king. This has no effect, since the economy does not function in the current version.
 +
 
 +
*[WALKING_SPREADS_SPATTER_ADV:YES] - Still in the files but currently has no effect, of course. Turns on or off the spread of blood spatter and other [[contaminant]]s between creatures and ground tiles in [[Adventurer mode]].
  
*[FPS_CAP:0] - Setting this to zero will cause it to be uncapped, allowing simulation to happen as fast as possible. This may cause the FPS display to show negative numbers when the game is paused and in the main menu.
+
*[VARIED_GROUND_TILES:YES]{{verify|untested but seems to have been removed}} - If this is "YES" the ground will be varied randomly using the tiles ,.`'. If this is "NO", only the period will be used for ground tiles.
  
*[G_FPS_CAP:0] - Setting this to zero will still use the default of 50 rather than it being uncapped.
+
=== Adventure mode ===
 +
Not currently in the files but may return.
 +
*[MORE:YES]
 +
*[DISPLAY_LENGTH:23]
 +
*[ADVENTURER_TRAPS:NO] - If you set this to "YES" your adventurer will trigger the traps of your old fortresses.
 +
*[ADVENTURER_ALWAYS_CENTER:YES]
 +
*[ADVENTURER_Z_VIEWS:UNHIDDEN:9]
  
== Resolution to grid ratios ==
+
=== Resolution to grid ratios ===
 
Taken from [http://www.bay12forums.com/smf/index.php?topic=22302.msg241991#msg241991]
 
Taken from [http://www.bay12forums.com/smf/index.php?topic=22302.msg241991#msg241991]
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

This page is a member of 1 hidden category: