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.

23a:Technical tricks

From Dwarf Fortress Wiki
Jump to navigation Jump to search
This article is about an older version of DF.

Overview[edit]

In order to configure Dwarf Fortress to your liking you need to edit a text-file containing the settings, namely init.txt, or the init file.

Locating your configuration file[edit]

Your configuration file is called init.txt and is stored in the [installation folder]\data\init folder ([installation folder] is the folder where you installed Dwarf Fortress).

Editing the configuration file[edit]

You can edit the file with any text editor of your choice, Notepad works very well.

Settings[edit]

There are a number of settings in Dwarf Fortress that you can alter to your liking:

Sound[edit]

  • [SOUND:ON]

Change this to OFF in order to turn off the sound and music.

(Note: This will completely disable the sound/music, you won't be able to adjust the volume through the esc menu. It might give you a slight FPS boost, though.)

Intro[edit]

  • [INTRO:ON]

Change this to OFF in order to skip the intro movies.

Windowed/Fullscreen[edit]

[WINDOWED:PROMPT] Can be YES, NO or PROMPT. YES sets the game to Windowed mode.

The game window[edit]

  • [WINDOWEDX:640]
  • [WINDOWEDY:300]
  • [FONT:curses_640x300.bmp]

This is the size and font for windowed mode. You can alter this however you want but please note that changing these values does not change the number of tiles displayed at once. The actual number of tiles displayed is hardcoded to 80x25 and cannot be changed by any means.

In order to keep aspect ratio, multiply the value of WINDOWEDY with 2.133333333 to get the correct WINDOWEDX. You can also multiply WINDOWEDX with 0.46875 to get the correct WINDOWEDY value.

You should change the font to curses_800x600.bmp if you increase the windowed size considerably. Despite the name, the font works both with 800x600 and 800x300 aspect ratios.

Running in a 1280x600 window, using the 'curses_640x300.bmp' font, will give an evenly stretched font, and an almost square aspect ratio. For an even more square aspect ratio, try 1600x600 (or 800x300) with the 'curses_800x600.bmp' font.

  • [FULLSCREENX:800]
  • [FULLSCREENY:600]
  • [FULLFONT:curses_800x600.bmp]

The same as above, only for fullscreen mode. Be sure you only use modes supported by your monitor!

There are also several custom tilesets available on the wiki.

The look of the game[edit]

  • [BLACK_SPACE:NO]

Set this to YES and the tiles will not be stretched, but will instead be centralized and then surrounded by black space.

  • [VARIED_GROUND_TILES:YES]

Set this to NO in order to only have periods (.) as ground tiles. If set to YES the game will randomly use ,.`' to represent ground.

  • [GRAPHICS:NO]
  • [GRAPHICS_WINDOWEDX:1280]
  • [GRAPHICS_WINDOWEDY:400]
  • [GRAPHICS_FONT:curses_square_16x16.bmp]
  • [GRAPHICS_FULLSCREENX:1280]
  • [GRAPHICS_FULLSCREENY:800]
  • [GRAPHICS_FULLFONT:curses_square_16x16.bmp]
  • [GRAPHICS_BLACK_SPACE:YES]

Graphics info, most of it as above. Set GRAPHICS to YES to turn it all on. This will use the "raw/graphics" folder for tile information. Currently this is limited to whatever creature graphics you have downloaded. The game comes with a few pictures to demonstrate.

  • [NICKNAME_DWARF:CENTRALIZE]
  • [NICKNAME_ADVENTURE:CENTRALIZE]
  • [NICKNAME_LEGENDS:CENTRALIZE]

Use these settings to configure how nicknames are displayed in each mode of the game. REPLACE_FIRST replaces the first name of the dwarf with its nickname, CENTRALIZE puts the nickname between the first and last name of the dwarf and REPLACE_ALL replaces the original name completely with the nickname.

  • [ENGRAVINGS_START_OBSCURED:NO]

If you'd like your engravings to start off looking the same (you can toggle them on individual later), set this to YES.

  • [FPS:NO]

Change this to YES if you want to see an FPS counter.

Colors[edit]

All the color values at the end of the init.txt file is used to control how the game represents that particular color. If you for instance alter [BLACK_R], [BLACK_G] and [BLACK_B] to 255 the color black will be represented by white in the game.

You can replace your colors with any scheme you would like. There are a variety of pre-made schemes available on the color schemes page.

Input[edit]

  • [KEY_HOLD_MS:150]

This controls the number of milliseconds that must pass before a held key sends a repeat press to the game. Increase this if the game seems to repeat your instructions even if you only (intended to) press the key once.

If you do need to adjust this, do so in small increments. A change of 25-50 should be more than enough. Any more and you slow down your scrolling considerably.

  • [MORE:YES]
  • [DISPLAY_LENGTH:23]

This controls "more" in adventure mode. If MORE is set to NO, all announcements will be skipped. DISPLAY_LENGTH controls how many lines are printed before it gives you the "more" prompt.

  • [MOUSE:YES]

Change this to NO if you don't want to have the mouse involved at all.

  • [MOUSE_PICTURE:NO]

Change this to YES to use a custom mouse cursor in-game. Be warned that the mouse cursor will only update when the screen is redrawn, so if your fortress is noticeably laggy, the mouse cursor will lag along with it.

Game Changers and Performance Enhancers[edit]

For more detail on how to boost game speed through editing init.txt, see Maximizing framerate.

  • [TEMPERATURE:YES]
  • [WEATHER:YES]

Do exactly what they say, turn on or off temperature and weather. Turning off Temperature and Weather can increase performance noticeably.

  • [FPS_CAP:100]

Sets the maximum frame refresh rate for the game.

  • [POPULATION_CAP:200]

Sets the maximum population of your fortress with regards to migrants - children can and will exceed this cap.

  • [ADVENTURER_TRAPS:NO]

Controls whether or not your adventurer is affected by traps. Enabling this is not recommended, as there is no way to disarm traps, and stepping onto a cage trap will leave you permanently stuck and unable to escape.

Editing Creatures[edit]

Check the raws for further information.