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 v0.31: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.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.31"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

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:
{{quality|Exceptional|01:58, 26 August 2010 (UTC)}}{{av}}
+
{{AV}}
 
+
{{Quality|Tattered}}
 
== Overview ==
 
== Overview ==
 
In order to configure Dwarf Fortress to your liking there are two files you can edit, init.txt and d_init.txt. The first file, init.txt, contains mostly the settings pertaining to the window, rendering and sound of Dwarf Fortress. The second file, d_init.txt, contains settings that affect game features such as saving and population controls.
 
In order to configure Dwarf Fortress to your liking there are two files you can edit, init.txt and d_init.txt. The first file, init.txt, contains mostly the settings pertaining to the window, rendering and sound of Dwarf Fortress. The second file, d_init.txt, contains settings that affect game features such as saving and population controls.
Line 8: Line 8:
  
 
== Editing the configuration file ==
 
== Editing the configuration file ==
You can edit the configuration files with any word processing software or program that can open .txt files. A good program to edit these files in Windows is Editplus or TextPad.
+
You can edit the configuration files with any word processing software or program that can open .txt files. A good program to edit these files in Windows is notepad.
 
All data in these files is contained in what are called tokens. Each token is defined by the text between an opening square bracket, '[', and the first closing square bracket, ']'. Arguments to the various tokens are separated from a token identifier by a colon, ':'.
 
All data in these files is contained in what are called tokens. Each token is defined by the text between an opening square bracket, '[', and the first closing square bracket, ']'. Arguments to the various tokens are separated from a token identifier by a colon, ':'.
  
Line 33: Line 33:
 
*[WINDOWEDY:25]
 
*[WINDOWEDY:25]
 
If this is below 256, this specifies the height of the grid used by Dwarf Fortress with a minimum of 25. As such, the height of the window used will be the product of this value and the height of the font use. If this value is 256 or above, it specifies the height of the window used directly.
 
If this is below 256, this specifies the height of the grid used by Dwarf Fortress with a minimum of 25. As such, the height of the window used will be the product of this value and the height of the font use. If this value is 256 or above, it specifies the height of the window used directly.
 
[WINDOWEDX:98][WINDOWEDY:98] will make window big enough to display whole 2x2 [[embark]] [[site]] with 8x8 [[tileset]].
 
  
 
*[FONT:curses_640x300.png]
 
*[FONT:curses_640x300.png]
Line 62: Line 60:
 
=== Graphics ===
 
=== Graphics ===
 
*[GRAPHICS:NO]
 
*[GRAPHICS:NO]
Can be "YES" or "NO". If this is "YES", Dwarf Fortress will use the raw/graphics folder for certain tile graphics. Currently this is limited to [[Graphics set repository|creature graphics]].
+
Can be "YES" or "NO". If this is "YES", Dwarf Fortress will use the raw/graphics folder for certain tile graphics. Currently this is limited to creature graphics.
  
 
*[GRAPHICS_WINDOWEDX:0]
 
*[GRAPHICS_WINDOWEDX:0]
Line 71: Line 69:
  
 
*[GRAPHICS_FONT:curses_square_16x16.png]
 
*[GRAPHICS_FONT:curses_square_16x16.png]
The [[Main:Tileset repository|font]] used by Dwarf Fortress when in windowed mode and [GRAPHICS:YES/NO] is "YES".
+
The font used by Dwarf Fortress when in windowed mode and [GRAPHICS:YES/NO] is "YES".
  
 
*[GRAPHICS_FULLSCREENX:0]
 
*[GRAPHICS_FULLSCREENX:0]
Line 88: Line 86:
  
 
*[PRINT_MODE:2D]
 
*[PRINT_MODE:2D]
This value changes how Dwarf Fortress draws to the screen. As such, changing this value can significantly change the performance of Dwarf Fortress on your computer. Possible values for this are "2D", "2DSW", "2DASYNC", "STANDARD", "TEXT", "ACCUM_BUFFER", "FRAME_BUFFER", "VBO" and "PARTIAL".  A technical description of what these do can be found [http://www.bay12forums.com/smf/index.php?topic=63667.msg1478550#msg1478550 in this post].
+
This value changes how Dwarf Fortress draws to the screen. As such, changing this value can significantly change the performance of Dwarf Fortress on your computer. Possible values for this are "2D", "2DSW", "2DASYNC", "STANDARD", "TEXT", "ACCUM_BUFFER", "FRAME_BUFFER", "VBO" and "PARTIAL".
 
"PARTIAL" print mode takes an additional argument similar to how the PARTIAL_PRINT value worked in previous versions, with the number representing the number of frames a changed tile is rendered before it is skipped.
 
"PARTIAL" print mode takes an additional argument similar to how the PARTIAL_PRINT value worked in previous versions, with the number representing the number of frames a changed tile is rendered before it is skipped.
 
"TEXT" is only available on Macintosh and Linux.
 
"TEXT" is only available on Macintosh and Linux.
Line 102: Line 100:
  
 
*[TEXTURE_PARAM:LINEAR]
 
*[TEXTURE_PARAM:LINEAR]
Can be either "LINEAR" or "NEAREST". If it is "NEAREST", the texture values use the nearest pixel value without averaging. If it is "LINEAR", the texture values use the average of the adjacent pixels. In terms of what the two options do to the graphics, the "LINEAR" option will appear to blur adjacent pixels and can result in a fuzzy appearance. The "NEAREST" option will produce a sharp, pixelated look but may result in images looking clipped at some different screen resolutions.
+
Can be either "LINEAR" or "NEAREST". If it is "NEAREST", the texture values use the nearest pixel value without averaging. If it is "LINEAR", the texture values use the average of the adjacent pixels.
  
 
=== FPS ===
 
=== FPS ===
Line 165: Line 163:
 
If this is "YES", Dwarf Fortress will save the game immediately after you embark.
 
If this is "YES", Dwarf Fortress will save the game immediately after you embark.
  
=== More Game Options ===
+
=== Game Options ===
 
*[IDLERS:TOP]
 
*[IDLERS:TOP]
 
Where to display the number of idlers. The value can be either "TOP", "BOTTOM", or "OFF".
 
Where to display the number of idlers. The value can be either "TOP", "BOTTOM", or "OFF".
Line 179: Line 177:
  
 
*[ECONOMY:YES]
 
*[ECONOMY:YES]
Turns on or off the fortress mode dwarven economy. This has no effect, since the economy does not function in v0.31.
+
Turns on or off the fortress mode dwarven economy.
  
 
*[INVADERS:YES]
 
*[INVADERS:YES]
Line 191: Line 189:
  
 
*[ZERO_RENT:NO]
 
*[ZERO_RENT:NO]
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 v0.31.
+
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.
  
 
*[TESTING_ARENA:YES]
 
*[TESTING_ARENA:YES]
 
Turns on or off the testing arena.
 
Turns on or off the testing arena.
 
*[WALKING_SPREADS_SPATTER_DWF:NO]
 
Turns on or off the spread of blood spatter and other contaminants between creatures and ground tiles in [[Fortress mode]]. As contaminants are [[Blood|buggy]] and can have a major negative impact on [[FPS]] in [[Fortress mode]], it is recommended to leave this set at "NO" for now.
 
 
*[WALKING_SPREADS_SPATTER_ADV:YES]
 
Turns on or off the spread of blood spatter and other contaminants between creatures and ground tiles in [[v0.31:Adventure_mode|Adventure Mode]].
 
  
 
*[PATH_COST:1:2:5:25]
 
*[PATH_COST:1:2:5:25]
Line 206: Line 198:
  
 
*[COFFIN_NO_PETS_DEFAULT:NO]
 
*[COFFIN_NO_PETS_DEFAULT:NO]
When building a burial receptacle, the option to allow pets to be buried in it will default to NO if this is set to "YES".
+
If "YES" pets will not be able to be buried in coffins.
  
 
*[STORE_DIST_ITEM_DECREASE:20]
 
*[STORE_DIST_ITEM_DECREASE:20]
Line 228: Line 220:
 
*[DISPLAY_LENGTH:23]
 
*[DISPLAY_LENGTH:23]
 
*[ADVENTURER_TRAPS:NO]
 
*[ADVENTURER_TRAPS:NO]
If you set this to "YES" your adventurer will trigger the traps of your old fortresses
 
 
*[ADVENTURER_ALWAYS_CENTER:YES]
 
*[ADVENTURER_ALWAYS_CENTER:YES]
 
*[ADVENTURER_Z_VIEWS:UNHIDDEN:9]
 
*[ADVENTURER_Z_VIEWS:UNHIDDEN:9]
Line 239: Line 230:
 
=== Embark Options ===
 
=== Embark Options ===
 
*[EMBARK_WARNING_ALWAYS:NO]
 
*[EMBARK_WARNING_ALWAYS:NO]
If this value is YES, then it will always pop up a warning screen when you embark (Like you get when you have [[v0.31:Water#Salt Water|Salt Water]] or an [[v0.31:Aquifer|Aquifer]] on-site)
 
 
*[SHOW_EMBARK_TUNNEL:FINDER]
 
*[SHOW_EMBARK_TUNNEL:FINDER]
 
*[EMBARK_RECTANGLE:4:4]
 
*[EMBARK_RECTANGLE:4:4]
The size of the default embark site.
 
  
 
=== Wounds ===
 
=== Wounds ===

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)