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)
(updated for portable mode)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{migrated article}}
+
{{Quality|Fine}}
{{Quality|Unrated}}
+
{{file|DF/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]].''
 
 
''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]]
 
 
 
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.
 
  
 +
The '''init.txt''' file can be edited to make many adjustments to the game presentation and feel, like changing [[Technical tricks#Screen_sizes|screen size]], or changing [[tilesets]]. The default settings and an explanation of each can be found at <code>data/init/init_default.txt</code> (and below) and current settings at <code>prefs/init.txt</code>, the location of the <code>data</code> and <code>prefs</code> folders depends on the [[Settings#Portable_mode|portable mode setting]]. Changes made to these files take effect the next time ''Dwarf Fortress'' is run, and apply to all worlds. Files in both <code>data/init/</code> and <code>prefs/</code> are read when ''Dwarf Fortress'' starts, in that order, with the last value read for an option being used.
  
{{gamedata|title=Default init.txt|whitespace=pre-wrap}}
+
{{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}}
 
{{files}}
 
{{files}}
 
[[ru:init.txt]]
 
[[ru:init.txt]]

Latest revision as of 01:31, 23 July 2025

File

Folder-orange.svg Dwarf Fortress

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 file can be edited to make many adjustments to the game presentation and feel, like changing screen size, or changing tilesets. The default settings and 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 data and prefs folders depends on the portable mode setting. 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