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 "v0.34:D init.txt"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Tranferred text from v0.31, added bug-tag, added Bugs-section. Add bugs when you find them.)
m
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Quality|Tattered|21:27, 3 April 2012 (UTC)}}
+
{{quality|Fine|23:52, 12 May 2012 (UTC)}}
 +
{{file|DF/data/init/d_init.txt}}
 
{{av}}
 
{{av}}
 
{{buggy}}
 
{{buggy}}
The '''d_init.txt''' file can be used to make many adjustments to the game's behavioral logic, such as disabling the economy in fortress mode, as well as some [[Technical tricks]] such as improving framerate by deactivating features such as weather and temperature.
+
:''Many of these settings are covered in detail [[Technical_tricks#Settings_-_d_init.txt|here]].''
  
This file is located at Dwarf Fortress/data/init/d_init.txt.  
+
The '''d_init.txt''' file can be used to make many adjustments to the game's behavior, such as enabling autosave or changing the population limit, as well as some [[technical tricks]] to improve framerate by deactivating features like weather and temperature.
  
The contents of the '''d_init.txt''' file by default can be found below.
+
This file is located at '''data/init/d_init.txt''' within your ''Dwarf Fortress'' folder.  Changes made to this file take effect the next time the game is loaded, and apply to all worlds.
  
 +
The contents of the default '''d_init.txt''' file can be found below.
 +
 +
==Default settings==
 +
{{gamedata}}
  
 
== Bugs ==
 
== Bugs ==
* The value [POPULATION_CAP:X] has no effect on the number of dwarves, it will not stop migrant waves either.{{Bug|2922}}
+
* The implementation of the POPULATION_CAP is not fully understood. Many players end up with higher populations than they want.{{Bug|2922}}
 
+
* The text in the file says you need a population of 80 for a [[monarch]], but you actually need 140.
{{gamedata|1=Use these to control the automatic saving behavior in the dwarf fortress mode of game.  AUTOSAVE can be set to NONE, SEASONAL or YEARLY.  This updates your save at these intervals, so that some of your progress will be saved in case of system instability.  You can set AUTOBACKUP to YES if you want the updated save to be copied to another folder so that you'll have several copies of your world at different times.  Set AUTOSAVE_PAUSE to YES if you want the game to pause every time it autosaves.
 
 
 
[AUTOSAVE:NONE]
 
[AUTOBACKUP:NO]
 
[AUTOSAVE_PAUSE:NO]
 
 
 
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.
 
 
 
[INITIAL_SAVE:NO]
 
 
 
Set this to NO to make Dwarf Fortress remain in the saved pause state when you load an active game.
 
 
 
[PAUSE_ON_LOAD:YES]
 
 
 
Set this to YES if you want Dwarf Fortress to show the warning window on embark as a confirmation even if there are no issues.
 
 
 
[EMBARK_WARNING_ALWAYS:NO]
 
 
 
You can change these 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).
 
 
 
[SHOW_EMBARK_TUNNEL:FINDER]
 
 
 
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.
 
 
 
[TEMPERATURE:YES]
 
[WEATHER:YES]
 
[ECONOMY:YES]
 
[INVADERS:YES]
 
[CAVEINS:YES]
 
[ARTIFACTS:YES]
 
[ZERO_RENT:NO]
 
[TESTING_ARENA:YES]
 
[WALKING_SPREADS_SPATTER_DWF:NO]
 
[WALKING_SPREADS_SPATTER_ADV:YES]
 
 
 
Change this to YES to output the reasons for world map rejection into a file.
 
 
 
[LOG_MAP_REJECTS:NO]
 
 
 
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.
 
 
 
[EMBARK_RECTANGLE:4:4]
 
 
 
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>).
 
 
 
[PATH_COST:1:2:5:25]
 
 
 
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.
 
 
 
[STORE_DIST_ITEM_DECREASE:20]
 
[STORE_DIST_SEED_COMBINE:1000]
 
[STORE_DIST_BUCKET_COMBINE:1000]
 
[STORE_DIST_BARREL_COMBINE:1000]
 
[STORE_DIST_BIN_COMBINE:1000]
 
 
 
Change this to YES to disallow pets from coffin burial as the default option.
 
 
 
[COFFIN_NO_PETS_DEFAULT:NO]
 
 
 
Use these to set the color of wounded body parts.  The format is <foreground color>:<background color>:<brightness>.
 
 
 
[WOUND_COLOR_NONE:7:0:1]  No recorded active wounds on the part.  Default = white
 
[WOUND_COLOR_MINOR:6:0:0]  Any damage that doesn't have functional/structural consequences (might be heavy bleeding though).  Default = brown
 
[WOUND_COLOR_INHIBITED:6:0:1]  Any muscular, structural or functional damage without total loss.  Default = yellow
 
[WOUND_COLOR_FUNCTION_LOSS:3:0:1]  An important function of the part is completely lost, but the part is structurally sound (or at least partially intact).  Default = bright cyan
 
[WOUND_COLOR_BROKEN:4:0:1]  The part has lost all structural integrity or muscular ability.  Default = bright red
 
[WOUND_COLOR_MISSING:0:0:1]  The part is completely gone.  Default = dark gray
 
 
 
This controls the display of areas that are far below outside.  The format is SKY:<character>:<foreground color>:<background color>:<brightness>.  The <character> can be either an ASCII tile number or a character in quotes, like '#'.
 
 
 
[SKY:178:3:0:0]
 
 
 
As above, for inside/subterranean areas.
 
 
 
[CHASM:250:0:0:1]
 
 
 
Pillar tile, <character> as above.
 
 
 
[PILLAR_TILE:'O']
 
 
 
This controls the "IDLERS: <number>" that is displayed in dwarf mode.  You can set it to TOP, BOTTOM or OFF.
 
 
 
[IDLERS:TOP]
 
 
 
You can have your dwarves start/arrive without any labor types enabled here by setting this to NO.  You can also set it to SKILLS to make the labor list set by skill, or BY_UNIT_TYPE to have it done by overall unit type.
 
 
 
[SET_LABOR_LISTS:SKILLS]
 
 
 
You can set the maximum population of your fortress here.  Keep in mind that your population must be at least 80 to get a king and 100 to obtain the current game features.
 
 
 
[POPULATION_CAP:200]
 
 
 
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 pregancies, 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.
 
 
 
[BABY_CHILD_CAP:100:1000]
 
 
 
If you don't like the ,.`' ground, try setting this to NO.  The ground will turn into periods only.
 
 
 
[VARIED_GROUND_TILES:YES]
 
 
 
If you'd like your engravings to start off looking the same (you can toggle them on individual later), set this to YES.
 
 
 
[ENGRAVINGS_START_OBSCURED:NO]
 
 
 
If you get annoyed by seeing items like *<*sword*>* you can
 
get rid of the outside ** by setting this to NO.
 
 
 
[SHOW_IMP_QUALITY:YES]
 
 
 
Set this to YES to display fluids as numbers indicating depth.
 
 
 
[SHOW_FLOW_AMOUNTS:NO]
 
 
 
If you'd prefer to leave the history behind every engraving for your adventurers to discover, then set this to NO.
 
 
 
[SHOW_ALL_HISTORY_IN_DWARF_MODE:YES]
 
 
 
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.
 
 
 
[MORE:YES]
 
[DISPLAY_LENGTH:23]
 
 
 
Set this to NO if you do not want traps to affect you in adventure mode.  Cage traps are always disabled for now.
 
 
 
[ADVENTURER_TRAPS:YES]
 
 
 
Set this to NO if you want the game to recenter on your adventurer only when you've gotten close to the edge of the view.
 
 
 
[ADVENTURER_ALWAYS_CENTER:YES]
 
 
 
This controls the up/down views in adventure mode.  The first parameter can be OFF, UNHIDDEN, CREATURE or ON. UNHIDDEN makes the view appear when it contains any unhidden square.  CREATURE makes the view appear when it contains a creature.  The second parameter is the size of the view.  It can be 3, 5, 7 or 9.  A smaller view lets it stack more of them in the column (3 at size 5, and 5 at size 3).
 
 
 
[ADVENTURER_Z_VIEWS:UNHIDDEN:9]
 
  
You can use these to say how nicknames are displayed in each mode
+
{{files}}
Options are REPLACE_FIRST, CENTRALIZE (between first and last), REPLACE_ALL
 
[NICKNAME_DWARF:REPLACE_FIRST]
 
[NICKNAME_ADVENTURE:REPLACE_FIRST]
 
[NICKNAME_LEGENDS:REPLACE_FIRST]}}
 

Latest revision as of 07:40, 1 June 2019

File

Folder-orange.svg Dwarf Fortress

Folder.svg data

Folder.svg init

Text-x-generic.svg d_init.txt

This article is about an older version of DF.
Many of these settings are covered in detail here.

The d_init.txt file can be used to make many adjustments to the game's behavior, such as enabling autosave or changing the population limit, as well as some technical tricks to improve framerate by deactivating features like weather and temperature.

This file is located at data/init/d_init.txt within your Dwarf Fortress folder. Changes made to this file take effect the next time the game is loaded, and apply to all worlds.

The contents of the default d_init.txt file can be found below.

Default settings[edit]

Bugs[edit]

  • The implementation of the POPULATION_CAP is not fully understood. Many players end up with higher populations than they want.Bug:2922
  • The text in the file says you need a population of 80 for a monarch, but you actually need 140.
Settings
Gameplay settings
Other