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 "40d:Technical tricks"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(→‎Game Changers and Performance Enhancers: not upto the wiki to say it's cheating, besides the same could be said of econmoy, temprature or aritifacts really.)
Line 112: Line 112:
  
 
Do exactly what they say, turn on or off temp, weather, economy, invaders, caveins, and artifacts.  It has been suggested to turn off Temperature and Weather for increased performance, as both do have every-frame calculations (temperatures are flows!)
 
Do exactly what they say, turn on or off temp, weather, economy, invaders, caveins, and artifacts.  It has been suggested to turn off Temperature and Weather for increased performance, as both do have every-frame calculations (temperatures are flows!)
 
Disabling Caveins and Invaders would be considered cheating.
 
  
 
*[PATH_COST:1:2:5:25]
 
*[PATH_COST:1:2:5:25]

Revision as of 16:06, 15 November 2007


Overview

In order to configure Dwarf Fortress to your liking you need to edit a text-file containing the settings, namely init.txt, or the init file.

Locating your configuration file

Your configuration file is called init.txt and is stored in the [installation folder]\data\init folder ([installation folder] is the folder where you installed Dwarf Fortress).

Editing the configuration file

You can edit the file with any text editor of your choice, Notepad works very well.

Settings

There are a number of settings in Dwarf Fortress that you can alter to your liking:

Sound

  • [SOUND:ON]

Change this to OFF in order to turn off the sound and music.

Intro

  • [INTRO:ON]

Change this to OFF in order to skip the intro movies.\

Windowed/Fullscreen

[WINDOWED:PROMPT] Can be YES, NO or PROMPT. YES sets the game to Windowed mode.

Screen sizes

  • [WINDOWEDX:640]
  • [WINDOWEDY:300]
  • [FONT:curses_640x300.bmp]

This is the size and font for windowed mode. You can alter this however you want but please note that you do not change the viewport of the game, you are still limited to a fixed amount of characters on screen. All you do is increase the size of the characters.

In order to keep aspect ratio, multiply the value of WINDOWEDY with 2.133333333 to get the correct WINDOWEDX. You can also multiply WINDOWEDX with 0.46875 to get the correct WINDOWEDY value.

You should change the font to curses_800x600.bmp if you increase the windowed size considerably. Despite the name, the font works both with 800x600 and 800x300 aspect ratios.

Running in a 1280x600 window, using the 'curses_640x300.bmp' font, will give an evenly stretched font, and an almost square aspect ratio. For an even more square aspect ratio, try 1600x600 (or 800x300) with the 'curses_800x600.bmp' font.

  • [FULLSCREENX:800]
  • [FULLSCREENY:600]
  • [FULLFONT:curses_800x600.bmp]

The same as above, only for fullscreen mode. Be sure you only use modes supported by your monitor!

There are also several custom tilesets available on the wiki.

The look of the game

  • [VARIED_GROUND_TILES:YES]

Set this to NO in order to only have periods (.) as ground tiles. If set to YES the game will randomly use ,.`' to represent ground.

  • [EXTENDED_ASCII:YES]

If you turn this off, you'll see some atrocious 128 character mode crap. There is no reason to turn this off. (As of at least v0.23.130.23a, this no longer appears to do anything.)

  • [GRAPHICS:NO]
  • [GRAPHICS_WINDOWEDX:1280]
  • [GRAPHICS_WINDOWEDY:400]
  • [GRAPHICS_FONT:curses_square_16x16.bmp]
  • [GRAPHICS_FULLSCREENX:1280]
  • [GRAPHICS_FULLSCREENY:800]
  • [GRAPHICS_FULLFONT:curses_square_16x16.bmp]
  • [GRAPHICS_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.

  • [NICKNAME_DWARF:CENTRALIZE]
  • [NICKNAME_ADVENTURE:CENTRALIZE]
  • [NICKNAME_LEGENDS:CENTRALIZE]

Use these settings to configure how nicknames are displayed in each mode of the game. REPLACE_FIRST replaces the first name of the dwarf with its nickname, CENTRALIZE puts the nickname between the first and last name of the dwarf and REPLACE_ALL replaces the original name completely with the nickname.

  • [SKY:178:3:0:0]

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 '#'.

  • [CHASM:250:0:0:1]

As above, for inside/subterranean areas.

  • [ENGRAVINGS_START_OBSCURED:NO]

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

  • [SHOW_FLOW_AMOUNTS:NO]

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

Colors

All the color values at the end of the init.txt file is used to control how the game represents that particular color. If you for instance alter [BLACK_R], [BLACK_G] and [BLACK_B] to 255 the color black will be represented by white in the game.

You can replace your colors with any scheme you would like. There are a variety of pre-made schemes available on the color schemes page.

Input

  • [KEY_HOLD_MS:150]

This controls the number of milliseconds that must pass before a held key sends a repeat press to the game. Increase this if the game seems to repeat your instructions even if you only (intended to) press the key once.

Recent versions of the game have been tweaked to ignore repeat presses in most situations (outside of menus and scrolling), so this isn't so important now.

If you do need to adjust this, do so in small increments. A change of 25-50 should be more than enough. Any more and you slow down your scrolling considerably.

  • [MORE:YES]
  • [DISPLAY_LENGTH:23]

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.

  • [MOUSE:YES]

Change this to NO if you don't want to have the mouse involved at all.

Game Changers and Performance Enhancers

  • [TEMPERATURE:YES]
  • [WEATHER:YES]
  • [ECONOMY:YES]
  • [INVADERS:YES]
  • [CAVEINS:YES]
  • [ARTIFACTS:YES]

Do exactly what they say, turn on or off temp, weather, economy, invaders, caveins, and artifacts. It has been suggested to turn off Temperature and Weather for increased performance, as both do have every-frame calculations (temperatures are flows!)

  • [PATH_COST:1:2:5:25]

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>).

These can be changed ingame, this is just the default setting for new forts.

  • [G_FPS_CAP:50]

Determines the rate at which changes in game state are updated to screen. This does not directly effect the underlying engine's actions (governed by FPS). However, lowering this value (say, to 10) may result in improved performance, but will lead to a choppier visual appearance. Systems with older video cards are likely to be most affected by this change.

Editing Creatures

Check Creature_standard.txt for further information.