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.

Utility:Dwarf Therapist/Addons Repository

From Dwarf Fortress Wiki
Jump to navigation Jump to search

Recent versions of Dwarf Therapist include a very large set of customizable tools for managing your dwarves, namely custom roles, custom professions, custom grid views, filter scripts, and optimization plans, which greatly enhance the user's ability to manage their fort in a well-optimized, pain-free manner. This page serves as a repository for packaged exports of custom definitions for these tools, created by other players and made available for other users here. This page is only meant to serve Splinterz's current fork of Dwarf Therapist; earlier versions of the utility did not yet implement many of the features described here. If you need help understanding what's documented on this page, or would like to learn how to write Dwarf Therapist customizations yourself, refer to the Dwarf Therapist User Guide. All exports should be hosted at the Dwarf Fortress File Depot.

You are encouraged to standardize the upload format to "Dwarf Therapist Export---<Package Name>".


Export packages are ZIP or other archive files containing a set of differing customizations all meant for a single purpose.

Military Starter Kit[edit]

Download: DFFD File # 9232
Type: Packaged Export
Author: ResMar
Current Version: {{{current version}}}
Installation: {{{installation}}}
This ZIP file contains the customizations created over the course of the "Putting it all Together" section of the Dwarf Therapist User Guide: a set of tools that makes military drafting into a much easier and more elegant process.

Custom Professions[edit]

Chesh05's Professions[edit]

Download: Chesh05 Custom Professions
Type: Custom Profession
Author: Chesh05
Current Version: {{{current version}}}
Installation: {{{installation}}}
Last Updated Nov 11, 2014

A collection of basic custom professions

Grid Views[edit]

Grid views are the main list view in Dwarf Fortress they are accessible via the tabs at the top of the list view (Labors, Military, Social, etc.).

Compact Labors View[edit]

Download: DFFD File # 9233
Type: Grid View
Author: ResMar
Current Version: {{{current version}}}
Installation: {{{installation}}}
An even smaller version of the default Labor view which merges all of the hauling sublabors into one "Hauling" column. This view is recommended for 21-inch screens, as it allows you to use the labor view with left or right-mounted docks without resorting to a horizontal scrollbar.

Masterwork Dwarf Therapist[edit]

Highly customized version of Dwarf Therapist for use with Masterwork dwarf fortress. It uses the same binary build as Splinterminds, just uses a new .dtg (default grid view) as well as a .ini file that covers name changes for Masterwork. http://www.bay12forums.com/smf/index.php?topic=132010.0

Filter Scripts[edit]

Filter scripts are simple commands that determine what dwarves to show in the main DT window. For example, a "military only" filter script would hide all the non-military dwarves. It is like a "search" for your dwarves.

Pending Changes[edit]

Displays only those dwarves with pending changes.

Ramblurr's Filter Pack[edit]

A small collection of filter scripts useful when using the labor optimizer.

Tofof's Unhandicapped Filter[edit]

Excludes dwarves based on blindness and usability (not just absence) of limbs.

To do the inverse and show only handicapped dwarves, remove the first and last lines: "!(" and ")".

Thistleknot's Filter Pack[edit]

I pretty much use the 1st three every migrant wave. I use an optimization plan to single out militia dwarves (ranged and melee) to weaving (weapon, melee) and alchemy (archers, i.e. crossbowdwarves).

Then I run the second script to see who rates high for noble roles, and pick them

Then I run the 3rd to apply a labor optimization plan.

ResMar's "Working Class Dwarves" / Military Recruitment Availability Filter[edit]

This is the large filter from the Dwarf Therapist User Guide by ResMar. It is explained in Chapter IV's "Writing Complex Scripts" section.

Here is an explanation of the characteristics it selects for:

This filter is designed to show dwarves that are available for full-time assignment to useful tasks, such as military recruitment. These so-called "working class dwarves" will meet the following requirements:

  1. They have all hauling labors enabled. This is one of the most apparent indicators of a “working class” dwarf, but it’s nowhere near exclusive.
  2. They don’t have a nickname. Assuming you follow the advice given in “Assigning Nicknames”, nicked dwarves have already been dedicated to something.
  3. They have the masonry and/or stone detailing labors enabled, but are never above “adequate” skill in the former (since actually building stone blocks is assigned to dedicated masons), and never above “competent“ in the latter (I consider “skilled” the breaking point for when an engraver is actually worth his salt, and should be taken out of the working-class pool).
  4. They are not enlisted in the military (at least, not permanently). At least in my fortress, once a crossbowdwarf, always a crossbowdwarf slash hunter.
  5. They don't have certain “key” labors that are handled by dedicated dwarves enabled (mining, carpentry, woodcutting, stonecrafting, cooking, brewing, any of the metalsmithing tasks, either of the jewelry tasks, and clothesmaking). The precise composition of this list may vary somewhat for you, but most players learn to dedicate certain tasks to certain dwarves to maximize results very quickly.
  6. If they are skilled in certain useless or niche tasks (animal caretaking, small animal dissection, fish dissection, bee keeping, wax working, soap making) they have those tasks enabled. No one creates extra work for themselves by actually turning these off, at least not until you want this dwarf doing something for you.

Custom Roles[edit]

Thistleknot's Melee and Ranged Roles[edit]

Download: DFFD File
Type: Custom Roles
Author: Thistleknot
Current Version: 1.0
Installation: {{{installation}}}
Last Updated Apr 29, 2013

These are the Melee and Ranged Roles seen in Thistleknot's Efficiently Assign Militia/Labors tutorial video, at least I think they are. I typed them in manually from what was visible on screen.

Optimization Plans[edit]

Slyrdvs's Optimization Plan[edit]

Download: Google Drive
Type: Optimization Plan
Author: /u//slyrdvs
Current Version: 1.0
Installation: {{{installation}}}
Last Updated Apr 29, 2013

From a reddit thread. Emphasizes trapping and hunting, which may not be to everyone's playstyle.

The author noted: When starting with the optimization plan on a new embark, set max jobs to 10. The dwarves will usually have enough skills in certain areas to get 1-2 of each of the jobs that they should be good/great at. As you get more dwarves in the fort you will if you see fit need to lower the max jobs to 7, then 5 and then fiddle with the percent total jobs to keep the workers and haulers how you would like.

I tend to use 5-10 max jobs, and a hauler percent that is less than the max jobs. You only want to have dwarves who don't have many important jobs running around hauling. I suggest fiddling with your percent jobs and hauler percent until you find something that you enjoy for your forts.

Note from SlyrDVS in a pm: I still have to sit down and plan the jobs out again, reoptimize for a new version. As for why I have so many trappers/hunters, they are the firstline defense, they can then later become the army. :P

Thistleknot's Optimization Plan[edit]

Using AutoLabor to manage hauling jobs alongside Labor Optimizer[edit]

Since I prefer Dwarf Therapist's %'s on calculating my roles to labor mappings via the Labor Optimizer, I found the dynamic ability that autolabor has missing. So to alleviate this. I still do my own labor optimizations every few migrant waves; however, I get the advantage of autolabor's hauling behaviour (I believe it doesn't enable hauling on dwarves that have a labor enabled for queued job).

Run this inside a DFHack console.

Note: To avoid manually running each line in the console, save this to a text file in your DF folder (e.g. "dtautolabor.txt") and run "script (filename)" in DFHack.

Mass Nickname Assignment for Sub-set Identification[edit]

Workshop Profiles[edit]

By mass assigning nicknames inside Dwarf Therapist to "mark" dwarves, they can be easily found in workshop profiles (if using Masterwork Mod, DFHack is included, Alt Shift N sorts alphabetically).

This is useful for workshops in various mods that train skills that you wish were limited to certain dwarves, such as dwarves who have a skill that is to be trained. (ex... train your axedwarf for your militia dwarves (these would be the dwarves that would be tagged with the nickname), via the warfare library)

Using Labors to Mark dwarf's for Custom Professions/Super Labors, or for Militia purposes[edit]

In this video (http://www.youtube.com/watch?v=gNVci8h1MkY), I actually do this method to assign my militia, but it could be extended for "super labors" as well.

What I do is assign a custom role to something I wish to assign that Dwarf Therapist doesn't currently support (such as assign militia dwarves via the labor optimizer). So I use an optimization plan to assign a specific role (such as melee dwarves) to a meaningless labor, then when the labors are assigned. I hand assign them inside the Therapist tool to the melee role.

One could use the same method to assign a dwarf to a custom profession that covers multiple labors (i.e. super labor concept).

It goes without saying that one should unassign the meaningless labor.

Ratio's & hauling labors can be used to create throughput "levers" to target jobs[edit]


A player can use hauling as a suppressor on dwarf's productivity.

Generally, assigning hauling tasks to dwarf's who have a lower # of jobs assigned to them than the other dwarf's:

 Achieves the effect of suppressing low % scores to hauling tasks.

# of Job's Per Dwarf[edit]

A player can adjust this value before the optimization plan is ran. Need more jobs accomplished overall. Lowering the # when the fortress gets larger allows a player to allow his dwarf's to focus on higher skilled tasks.

# of Jobs per Dwarf[edit]

In Dwarf Therapist, when editing an optimization plan, you can set the # of jobs each dwarf can have up to.

% Jobs to Assign[edit]

When editing an optimization plan, the % of total jobs is the target # that is set. This % is based on Dwarves Selected * Jobs per Dwarf, then there is an ~ number representing the results of our rounded ratio:job #'s.

Theory of Constraints[edit]

The concept of lever's is borrowed from business concepts that try to maximize factory output. They understand that throughput of the factory is affected by variables that you can control, things like hours worked, overtime, etc.

In our case we can

1: Unassign hauling.

1.a: Threshold to start assigning hauling (editable inside the optimization plan)

2: Assign more labors for a specific labor by increasing it's ratio.

3: Create more workshops that accept said job.

4: Adjust the # of jobs per dwarf.

5: Adjust the % total jobs to assign.

Varying these values can result in higher throughput for a specific job when compared to other jobs.