Q: How do I download DFHack?
A: Either add to your Steam library from our Steam page or scroll to the latest release on our GitHub releases page, expand the "Assets" list, and download the file for your platform (e.g. dfhack-XX.XX-rX-Windows-64bit.zip
. If you are on Windows and are manually installing from the zip file, please remember to right click on the file after downloading, open the file properties, and select the "Unblock" checkbox. This will prevent issues with Windows antivirus programs.
This BETA release is compatible with all distributions of Dwarf Fortress: Steam, Itch, and Classic.
Please report any issues (or feature requests) on the DFHack GitHub issue tracker. When reporting issues, please upload a zip file of your savegame and a zip file of your mods
directory to the cloud and add links to the GitHub issue. Make sure your files are downloadable by "everyone with the link". We need your savegame to reproduce the problem and test the fix, and we need your active mods so we can load your savegame. Issues with savegames and mods attached get fixed first!
New features in need of feedback and testing
gui/control-panel, gui/autobutcher, confirm, uniform-unstick, gui/mass-remove
gui/control-panel layout overhaul
The control panel received a significant overhaul. Tools are now categorized into subtabs, gathering the automation, bugfix, and gameplay tools into sublists. The file format for storing control panel configuration has changed as well. When you load this release of DFHack, your previous control panel settings should be seamlessly migrated to the new format.
What do you think of the new layout and tab structure? Is it easier to find the tools you're looking for? Do you feel more confident about enabling new things?
gui/autobutcher mousification
gui/autobutcher finally got updated with modern widgets and mouse gestures. You can now select fields to edit by double clicking on them. The list of livestock now also shows you the total counts per race, and the list of race targets is sortable and filterable. What do you think? Is it easier to use than the previous version? Pro tip: to unmark the slaughter tag from all animals of a particular race, double click on the number in the "Butchering ordered" column.
confirm rewrite and new prompts
The confirm framework has been completely rewritten, and thanks to many good suggestions on Reddit, there are now a wide variety of new confirmation prompts that protect you from accidentally invoking irreversible and highly impactful UI operations (like disbanding a squad or deconstructing the trade depot while merchants are using it). Is there anything you think we've missed? What do you think of the new confirmation prompts? Is it easy to pause them when you want to (e.g. when deleting a bunch of manager orders)?
uniform-unstick uniform fixing tool
When you look at your squad equipment, there will be a new button that says "Detect conflicts". This will bring up a report of squad equipment problems, such as squad members being assigned to conflicting labors like mining or hunting, or the same piece of equipment being assigned to multiple squad members. There's a button at the top of the report that attempts to fix all the problems. Does it work for you? Do your forever-yellow equipment icons finally turn green? Remember to click "Update equipment" after running the fixer so that new equipment gets assigned to units that need it.
gui/mass-remove now easier to use
gui/mass-remove is our tool for easily removing multiple buildings and other things. It gained much more configurability, so you can now, for example, have it just remove planned buildings and ignore fully built ones. It now also has a global hotkey for quick access: Ctrl-M while on the main fort map. Give it a try and tell us if it works well for you when you need to remove a bunch of stuff.
Announcements
PSAs
PSAs
As always, remember that, just like the vanilla DF game, DFHack tools can also have bugs. It is a good idea to save often and keep backups of the forts that you care about.
Many DFHack tools that worked in previous (pre-Steam) versions of DF have not been updated yet and are marked with the "unavailable" tag in their docs. If you try to run them, they will show a warning and exit immediately. You can run the command again to override the warning (though of course the tools may not work). We make no guarantees of reliability for the tools that are marked as "unavailable".
The in-game interface for running DFHack commands (gui/launcher
) will not show "unavailable" tools by default. You can still run them if you know their names, or you can turn on dev mode by hitting Ctrl-D while in gui/launcher
and they will be added to the autocomplete list. Some tools do not compile yet and are not available at all, even when in dev mode.
If you see a tool complaining about the lack of a cursor, know that it's referring to the keyboard cursor (which used to be the only real option in Dwarf Fortress). You can enable the keyboard cursor by entering mining mode or selecting the dump/forbid tool and hitting Alt-K (the DFHack keybinding for toggle-kbd-cursor
). We're working on making DFHack tools more mouse-aware and accessible so this step isn't necessary in the future.
Changelog
New tools, fixes, and improvements
New Tools
control-panel
: new commandline interface for control panel functionsuniform-unstick
: (reinstated) force squad members to drop items that they picked up in the wrong order so they can get everything equipped properly
New Features
gui/mass-remove
: new global keybinding: Ctrl-M while on the fort mapsort
: search and sort for the "choose unit to elevate to the barony" screen. units are sorted by the number of item preferences they have and the units are annotated with the items that they have preferences foruniform-unstick
: add overlay to the squad equipment screen to show a equipment conflict report and give you a one-click button to fix
Fixes
ban-cooking
: fix banning creature alcohols resulting in errorconfirm
: properly detect clicks on the remove zone button even when the unit selection screen is also open (e.g. the vanilla assign animal to pasture panel)misery
: fix error when changing the misery factorreveal
: now avoids revealing blocks that contain divine treasures, encased horrors, and deep vein hollows (so the surprise triggers are not triggered prematurely)sort
:- fix mouse clicks falling through the squad assignment overlay panel when clicking on the panel but not on a clickable widget
- fix potential crash when removing jobs directly from the Tasks info screen
warn-stranded
:- Automatically ignore citizens who are gathering plants or digging to avoid issues with gathering fruit via stepladders and weird issues with digging
- Update onZoom to use df's centering functionality
Misc Improvements
- wherever units are listed in DFHack tools, properties like "agitated" or (-trained-) are now shown
autochop
: better error output when target burrows are not specified on the commandlineconfirm
:- updated confirmation dialogs to use clickable widgets and draggable windows
- added confirmation prompt for right clicking out of the trade agreement screen (so your trade agreement selections aren't lost)
- added confirmation prompts for irreversible actions on the trade screen
- added confirmation prompt for deleting a uniform
- added confirmation prompt for convicting a criminal
- added confirmation prompt for re-running the embark site finder
- added confirmation prompt for reassigning or clearing zoom hotkeys
- added confirmation prompt for exiting the uniform customization page without saving
gui/autobutcher
: interface redesigned to better support mouse controlgui/control-panel
:- reduce frequency for
warn-stranded
check to once every 2 days - tools are now organized by type: automation, bugfix, and gameplay
- reduce frequency for
gui/launcher
: now persists the most recent 32KB of command output even if you close it and bring it back upgui/mass-remove
:- can now differentiate planned constructions, stockpiles, and regular buildings
- can now remove zones
gui/quickcmd
: clickable buttons for command add/remove/edit operationswork-now
: now saves its enabled status with the fort
Structures
alert_button_announcement_id
: now int32_t vector (contains report ids)announcement_alertst
: definedannouncement_alert_type
: enum definedannouncement_type
: addedalert_type
enum attributemarkup_text_boxst
: updated based on information from Bay12markup_text_linkst
,markup_text_wordst
,script_environmentst
: definedplotinfost
:unk23c8_flags
renamed toflags
, updated based on information from Bay12soundst
: definedworld_raws
:unk_v50_1
,unk_v50_2
,unk_v50_3
renamed totext_set
,music
,sound
Documentation
- UTF-8 text in tool docs is now properly displayed in-game in
gui/launcher
(assuming that it can be converted to cp-437) installing
: Add installation instructions for winskin on Macmodding-guide
: Add examples for script-only and blueprint-only mods that you can upload to DF's Steam Workshop