|This article is about an older version of DF.|
This article needs advice on what to do with the different PRINT MODES
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 is now contained in D_init.txt.
This file is located at Dwarf Fortress/data/init/init.txt.
The contents of the init.txt file by default can be found below:
Content is from version 0.31.08
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 tilesets 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. [SOUND:YES] The sound volume runs from 0 (off) to 255 (full). You can set the volume from the ESC options menu as well. [VOLUME:255] Change this to skip the wonderful intro movies. [INTRO:YES] This lets you set the starting windowed/fullscreen setting. Can be YES, NO or PROMPT. [WINDOWED:YES] This is the size and font for windowed mode. Changing to the 800x600 font might make you happier. If set below 256x256 it specifies the grid size instead, with a minimum of 80x25. [WINDOWEDX:80] [WINDOWEDY:25] [FONT:curses_640x300.png] You may disable window resizing if you wish. [RESIZABLE:YES] Full screen info. The 0s below mean that the game will choose a resolution for you, but you can set it yourself as well. [FULLSCREENX:0] [FULLSCREENY:0] [FULLFONT:curses_800x600.png] If this is set to NO, tiles will be stretched to fit the screen if there is a resolution mismatch. If this is set to YES, the tiles will not be stretched, but rather the game view will be centralized, surrounded by black space. Tiles that are too large will always be compressed rather than running off the screen. [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. As of September 2008, the Dwarf Fortress Wiki has graphical tilesets available at http://www.dwarffortresswiki.net/index.php/List_of_user_graphics_sets. [GRAPHICS:NO] [GRAPHICS_WINDOWEDX:0] [GRAPHICS_WINDOWEDY:0] [GRAPHICS_FONT:curses_square_16x16.png] [GRAPHICS_FULLSCREENX:0] [GRAPHICS_FULLSCREENY:0] [GRAPHICS_FULLFONT:curses_square_16x16.png] [GRAPHICS_BLACK_SPACE:YES] These settings can have a significant impact on frame rate, especially for people that have slow frame rates on the title screen. Available modes are 2D, 2DSW, 2DASYNC, STANDARD, PARTIAL:<number>, ACCUM_BUFFER, FRAME_BUFFER and VBO. The number after PARTIAL refers to how many frames it will redo a printed tile before skipping it, so you might try increasing it a bit if you have flickering when PARTIAL is set. Please note that any of these combinations might cause frame rates to drop significantly or cause unpleasant side effects like flickering. By and large, 2D should be the most reliable, while STANDARD has a good combination of speed and reliability. However, all 2D modes are normally far slower than even STANDARD, which may be the slowest OpenGL mode. 2DASYNC may be slightly more responsive than 2D on a multi-core machine, but this has recently become doubtful due to improvements to the other modes. Linux/OS X users may also use PRINT_MODE:TEXT for primitive ncurses output. [PRINT_MODE:2D] Mode examples: PRINT_MODE:2D PRINT_MODE:TEXT PRINT_MODE:FRAME_BUFFER PRINT_MODE:PARTIAL:0 [SINGLE_BUFFER:NO] Change this to YES to keep the DF window on top of your other windows. [TOPMOST:NO] Change this to YES if you want to see an FPS counter at the top left. [FPS:NO] 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. [FPS_CAP:100] Use this to set the maximum graphical frame refresh rate during play. [G_FPS_CAP:50] On cards that support the OpenGL ARB_sync extension, turning this on can improve framerates in GPU overload conditions. It defaults to NO, as many cards that claim to support this will crash if asked to do so. [ARB_SYNC:NO] This sets the applications vertical synchronization behavior. Changing this to YES can impact your FPS if your G_FPS is high. ARB_SYNC is a better option, if your system supports it. [VSYNC:NO] Change this to NEAREST if you want the texture values to use the nearest pixel without averaging. Change this to LINEAR if you want the texture values to be averaged over the adjacent pixels. [TEXTURE_PARAM:LINEAR] Change this to make the dwarfort.exe process have a different priority. From highest to lowest, the options are REALTIME, HIGH, ABOVE_NORMAL, NORMAL, BELOW_NORMAL and IDLE. [PRIORITY:NORMAL] Use this to set how fast the game zooms. The default corresponds to increasing grid size by 10 units each time you zoom. [ZOOM_SPEED:10] Change this to NO if you don't want to have the mouse involved at all. [MOUSE:YES] Change this to YES if you'd like to use a BMP for the mouse cursor. The image currently lags when the game is lagging however. [MOUSE_PICTURE:NO] 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. [KEY_HOLD_MS:250] 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. [KEY_REPEAT_MS:150] 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. [KEY_REPEAT_ACCEL_LIMIT:8] [KEY_REPEAT_ACCEL_START:10] This controls the number of milliseconds between macro instructions. [MACRO_MS:150] This controls the number of milliseconds that must pass before input works again after the view recenters on an event in dwarf mode. [RECENTER_INTERFACE_SHUTDOWN_MS:0] Change this to NO if you want to leave save uncompressed (you might want to do this if you are experience save corruption). [COMPRESSED_SAVES:YES]