Dwarf Fortress

From ArchWiki
Jump to navigation Jump to search

Dwarf Fortress is a single-player fantasy game. You can control a dwarven outpost or an adventurer in a randomly generated, persistent world. It is renowned for its highly customizable, complex indepth gameplay.

The game is played with keyboard only, though there exist mods which enable mouse support via plugins. Without any graphic mods (also known as tilesets) the game is displayed in a terminal-like window with ASCII characters (screenshots).


Install the dwarffortress package.

Alternatively there are some AUR packages coming with bitmap tilesets:


Dwarf Therapist

Dwarf Therapist (dwarftherapist-gitAUR in AUR) is an almost essential mod to tune dwarvish behaviour (makes life a lot easier). For it to work on current kernels you will need to disable a kernel security feature, since dwarf therapist directly accesses and modifies the memory of a running dwarf fortress instance. This setting is called kernel.yama.ptrace_scope and defaults to 1. You need to set it to 0 for dwarf therapist to work:

# sysctl -w kernel.yama.ptrace_scope=0

and then

# sysctl -w kernel.yama.ptrace_scope=1

when you're done playing and have closed dwarf fortress and dwarf therapist.

For more information see sysctl.

Warning: You should not set this to 0 in /etc/sysctl.d/ by default since it is an important security feature in the kernel! It is best to set it manually whenever you play dwarf fortress and reset it back to 1 when you are done playing.

Alternatively, you can just give that permission to dwarftherapist:

# setcap cap_sys_ptrace=eip /usr/bin/dwarftherapist
Note: The permissions will reset after an update to Dwarf Therapist. Consider using pacman hooks to automatically configure the permissions after an update.


Manipulator is an in-game alternative to Dwarf Therapist with most of its functionality, which does not require extra permissions. It is enabled by default in the dfhackAUR package.


SoundSense (soundsenseAUR in AUR) adds various sound effects and music via analysing the gamelog.txt.


Quickfort[dead link 2020-03-29 ⓘ] is a utility for Dwarf Fortress that helps you build fortresses from "blueprint" .CSV, .XLS, and .XLSX files.


StoneSense is an isometric world visualizer for Dwarf Fortress, and can be installed with the dfhackAUR package.