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.

Difference between revisions of "Init.txt"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(rough update, per rational on talk)
m (replaced old now gone screen size link)
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{migrated article}}
+
{{Quality|Fine}}
{{Quality|Unrated}}
+
{{file|prefs/init.txt}}
 
{{av}}
 
{{av}}
:''Many of these settings are covered in detail [[Technical_tricks#Settings_-_init.txt|here]].''
+
:''Most of these settings are covered in detail at [[Settings]].''
 +
The '''init.txt''' files store the settings of much of the presentation and feel of the game, like [[Settings#Video|screen size]], or [[tilesets]]. Most of these can be changed in game, the few that are not there are described in [[Technical tricks#init.txt|technical tricks]]. The default settings with an explanation of each can be found at ``data/init/init_default.txt`` (and below) and current settings at ``prefs/init.txt``, the location of the ``prefs`` [[Game folders and files|folder]] depends on the [[Settings#Portable mode|portable mode setting]] (there is also a ``data`` folder there, but if you put a ``data/init/init_default.txt`` there it will not be read). Changes made to these files take effect the next time ''Dwarf Fortress'' is run, and apply to all worlds. Files in both ``data/init/`` and ``prefs/`` are read when ''Dwarf Fortress'' starts, in that order, with the last value read for an option being used.
  
''Dwarf fortress'' has various '''settings''' that can affect the game experience in various ways. Including adjustments to the game presentation and feel, like changing [[Technical tricks#Screen_sizes|screen size]], or enabling [[Tilesets]]. Other options that would [[Technical tricks|improve framerate]] by deactivating features are contained in [[d_init.txt]]
+
{{gamedata|{{/raw/premium}}|title=[[/raw/premium|init_default.txt (Premium)]]|whitespace=pre-wrap}}
 
+
{{gamedata|{{/raw/classic}}|title=[[/raw/classic|init_default.txt (Classic)]]|whitespace=pre-wrap}}
These can be changed via the {{DFtext|settings}} menu. You can reach it from the main menu or ingame menu by pressing the Settings button and switching to the keybindings tab. Or changed manually by editing the '''init.txt'''
 
 
 
== init.txt ==
 
{{file|DF/prefs/init.txt}}
 
 
 
Game settings are stored in <code>[[Game folder|<Dwarf Fortress>]]/prefs/init.txt</code>. Updates to settings from within the game translate to and are stored in this file, meaning you can manually edit settings with a text editor if required.
 
 
 
If the player choose to {{DFtext|restore defaults}} the game uses <code>[[Game folder|<Dwarf Fortress>]]/data/init/init_default.txt</code>.
 
 
 
== Settings ==
 
{{Under construction}}
 
 
 
In-game.
 
 
 
Difficulty akin to [[Lazy Newb Pack]] launch options.
 
 
 
 
 
{{gamedata|title=Default init.txt|whitespace=pre-wrap}}
 
 
{{files}}
 
{{files}}
 
[[ru:init.txt]]
 
[[ru:init.txt]]

Latest revision as of 20:26, 3 October 2025

File

Folder.svg prefs

Text-x-generic.svg init.txt

This article is about the current version of DF.
Note that some content may still need to be updated.

Most of these settings are covered in detail at Settings.

The init.txt files store the settings of much of the presentation and feel of the game, like screen size, or tilesets. Most of these can be changed in game, the few that are not there are described in technical tricks. The default settings with an explanation of each can be found at data/init/init_default.txt (and below) and current settings at prefs/init.txt, the location of the prefs folder depends on the portable mode setting (there is also a data folder there, but if you put a data/init/init_default.txt there it will not be read). Changes made to these files take effect the next time Dwarf Fortress is run, and apply to all worlds. Files in both data/init/ and prefs/ are read when Dwarf Fortress starts, in that order, with the last value read for an option being used.

Settings
Gameplay settings
Log files
Other