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.

D init.txt/raw

From Dwarf Fortress Wiki
< D init.txt
Revision as of 17:23, 8 August 2023 by Lethosor (talk | contribs) (update for 50.09)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WARNING: Do NOT copy over the d_init.txt from an earlier version of DF. Always read the file carefully, including the comments.

In general, you can copy savegames and mods 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.

Use these to control the automatic saving behavior in the dwarf fortress mode of game. AUTOSAVE can be set to NONE, SEASONAL, SEMIANNUALLY, or YEARLY. This updates your save at these intervals, so that some of your progress will be saved in case of system instability. Autosaves cycle through 3 slots, so be sure to use manual saves if you want to retain something more permanent. Set AUTOSAVE_PAUSE to YES if you want the game to pause every time it autosaves.


Set this to YES if you want it to save the game when you start a new fortress. If AUTOBACKUP above is set to YES, it will also create a copy of this new save.


Set this to NO to make Dwarf Fortress remain in the saved pause state when you load an active game.


Set this to YES if you want Dwarf Fortress to show the warning window for embark site selection even if there are no issues (as a way of confirming your choice).


This option controls whether or not your choice to embark has a confirmation window after you have selected any dwarves and equipment. Valid choices are ALWAYS, IF_POINTS_REMAIN and NO.


You can change the option below to ALWAYS and NO. More restrictive world parameter settings override these. ALWAYS lets you see the features in the Local view during embark, and NO stops you from looking for features in the site finder (though if you really want to stop the finder, it might be better for you to generate worlds that restrict the use of this feature completely, in which case you don't need to change the settings here).


Use these options to remove features from the game. Permitted values are YES and NO. Removal might speed the game up in the case of temperature and weather.


Change this to YES to output the reasons for world map rejection into a file.


Change these numbers to make the embark rectangle start at a different size. The format is (EMBARK_RECTANGLE:<width>:<height>). Numbers may run from 2 to 16. The map size warning message will go by these numbers.


Change these numbers to set the default weights for traffic designations. If you make the last numbers too large, pathfinding might lag. The format is (PATH_COST:<high>:<normal>:<low>:<restricted>).


Alter these options to control how aggressively your dwarves place objects in a container with like items (rather than an empty container). The default options are very aggressive. STORE_DIST_ITEM_DECREASE controls the cap on objects it will consider -- for each object it finds in a container, one tile is removed from its apparent distance to the dwarf, up to this cap. The others control how many tiles are removed for each combination type for any match at all. For instance, if ITEM_DECREASE is set to 20, and SEED_COMBINE is set to 100, a dwarf carrying seeds will see a seed bag with 15 seeds as 115 tiles closer than it actually is (and thus pass up any empties within that distance), whereas a seed bag with 30 seeds would be treated as 120 tiles closer (because it hits the ITEM_DECREASE cap). Values from 2 to 1000 are permitted. Before these init options, the behavior was roughly ITEM_DECREASE 2, SEED_COMBINE 2 and the rest at 1000.


You can set the maximum population of your fortress here. Keep in mind that your population must be at least 80 to get a monarch and 100 to obtain the current game features. The strict cap also stops fort births. Both caps can be violated by a few special cases, like the arrival of the monarch if you qualify.


This allows you to control the number of babies+children in your fortress. The first number is an absolute cap on the number of babies+children. The second is a percentage of the current number of adults in your fortress (the default is the essentially meaningless 1000% here). The lower number is used as the cap. The cap only prevents further pregnancies, so migrant children, multiple births and existing pregnancies from old saves can still push you over the cap. Setting either number to zero will disallow pregnancies in the fortress.


You can set the maximum number of visitors to your fort here. This does not include merchants, diplomats, animals or invaders, but only those either dropping by for a temporary visit to a tavern, library or temple, or those seeking permanent employment. Once you accept a petition from a visitor to stay at your fort, they no longer count against the cap, even if they never become a full citizen. Certain traveling groups (e.g. quester parties) may also push slightly over the cap.


Use the specific seed cap to set the maximum number of seeds of each kind generally allowed in the fortress. Use the fortress seed cap to control the overall number of seeds allowed. Seeds over the global cap will be periodically removed, starting with the oldest and most worthless seeds.


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


If you get annoyed by seeing items like *<*sword*>* you can get rid of the outside ** by setting this to NO.


Set this to YES to display fluids as numbers indicating depth.


Set this to YES to show up and down arrows on ramps at the current elevation.


This number (from 0 to 8) determines how many elevations will be shown below the current elevation.


If you'd prefer to leave the history behind every engraving for your adventurers to discover, then set this to NO.


You can use these to say how nicknames are displayed in each mode Options are REPLACE_FIRST, CENTRALIZE (between first and last), REPLACE_ALL


Set this number to scale how often grazing animals need to eat. Larger numbers mean less food is necessary. Metabolism is always set according to the 3/4ths power of size.


This is the maximum dimension of the embark site for fortress mode. It can be as high as 16, but you must have a lot of memory for that to work, so change this at your own risk.


During a season changeover, the game checks if there's a certain number of units in play. If it is above this amount, it removes all the unimportant dead units who died at least two years ago.