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.

Game folders and files

From Dwarf Fortress Wiki
(Redirected from Files)
Jump to navigation Jump to search
This article is about the current version of DF.
Note that some content may still need to be updated.

The location of Dwarf Fortress's game folders depends on the game version, preferences, and operating system. It is also possible for users to change the install drive or directory, like in Steam settings, thus these locations may vary.

Non-portable, user specific data folders were added in version 52.01, and allow different users to maintain their own settings and saves.

Game installation folder[edit]

The game's installation folder is where all the game's content is stored. You might want to go to this folder to browse raw files, or to check logs.

  • Dwarf Fortress Classic is distributed in a zip archive. Depending on the operating system, the game folder is either df_##_##_win (with the version number, or the name chosen for the folder during extraction), df_osx or df_linux and will be located where you choose to extract it. This is where the game is run from. For example: C:\Games\Dwarf Fortress\
  • Steam: The default locations are listed below. You can also find it through Steam by right-clicking "Dwarf Fortress" in your library and choosing Properties, then go to the Local files tab and click Browse local files. If you set a custom library location in Steam, it will end up there instead.
    • Windows: C:\Program Files (x86)\Steam\steamapps\common\Dwarf Fortress\
    • Linux: ~/.steam/debian-installation/steamapps/common/Dwarf Fortress/
  • Itch.io: is also distributed as an archive file, so where you chose to extract it.

Game user data folder[edit]

The game's user data folder contains the saved games, preferences, and mods for the game. The location of this depends on the settings, defaulting to non-portablev52.01. Adding portable.txt to \(gamefolder)\prefs\ (or setting the corresponding option in-game) makes the game store files in the above installation directory.

  • Non-Portable:
    • Windows: C:\Users\(Your username)\AppData\Roaming\Bay 12 Games\Dwarf Fortress\
    • Linux: /home/(Your username)/.local/share/Bay 12 Games/Dwarf Fortress/.
  • Portable:
    • All folders are located within the Dwarf Fortress game installation folder above.

Note: On Windows, %APPDATA% is an environment variable that points to C:\Users\(Username)\AppData\Roaming. You can use winkey+R and type '%appdata%' to quickly jump there.

Saves folder[edit]

Main article: Saved game folder

Saves are stored in the save folder in the above user data folder, each folder in that folder is a save (except current which is used by the game and should be left alone). All the files in each folder are part of the save. The saves list for each world in game has a Files button that opens a menu that allows you to delete the save or open the folder location.v52.03

Mods folders[edit]

Further information: Modding

There are two folders where mods are stored, both in the above user data folder.

  • Downloaded mods are stored in mods
  • Mods actually used in saves are stored in data\installed_mods

When sharing modded saves, you probably want to include the installed mods folder.

Settings folder[edit]

Main article: Settings

Called settings in game, user preferences are stored in the prefs folder in the above user data folder. Many of the defaults are stored in the data\init folder in the installation folder.

Key[edit]

Folder-orange.svg Dwarf Fortress : Game folder
 ● Folder.svg data : Contains game content.
   ● Folder.svg art : Any images not loaded from vanilla graphics modules, for the main menu and classic ASCII mode.
   ● Folder.svg init : Default game settings.
   ● Folder.svg installed_mods : Folder of mod copies used when loading a world.
   ● Folder.svg sound : Contains all audio and music files used in the game.
   ● Folder.svg vanilla : Contains all the vanilla modules and raw files.
 ● Folder.svg mods : Folder for downloaded mods before being used.
   ● Folder.svg mod_upload : Folder for uploading mods to Steam.
 ● Folder.svg prefs : Contains current game settings files.
 ● Folder.svg save : Contains all save game files.
[hide]
Settings
Gameplay settings
Log files
Other
CancelHideAbout

Rating Game folders and files