DFHack - Dwarf Fortress Modding Engine

DFHack - Dwarf Fortress Modding Engine

 This topic has been pinned, so it's probably important
Monkeys R Us Apr 21, 2023 @ 9:45am
What are some must use commands?
I hear about how useful this tool is, but can't find a tutorial with stuff that isn't situational.

What are commands I should always use/keep running, if there are any?
Originally posted by myk002:
The DFHack control panel is the central hub for enabling "background" tools. If you select the "Autostart" tab, it shows you the tools you can enable/run when you start a new fort.

What you want to run depends on what you feel makes the game most fun for yourself. The ones I have enabled on the "Autostart" tab are:

- autobutcher (butchers excess livestock)
- autochop (cuts down trees when you get low on logs)
- autofarm (manages crop selection)
- autofish (enables fishing when you get low on fish)
- autonestbox (assigns egg-laying pets to nestbox zones)
- autoslab (engraves slabs for ghosts)
- ban-cooking all (prevents dwarves from cooking ingredients that have alternate uses)
- buildingplan set boulders false, buildingplan set logs false (forces buildingplan to only choose blocks for general building materials -- you should be sure to bring a few blocks with you to build starting workshops if you do this)
- emigration (allows unhappy dwarves to choose to leave your fort)
- fix/protect-nicks (fixes a vanilla bug where nicknames are sometimes lost)
- nestboxes (prevents dwarves from cooking fertile eggs)
- prioritize (ensures important jobs get done first)
- seedwatch (prevents dwarves from cooking seeds when your seed stocks are low)
- starvingdead (prevents infinite buildup of undead body parts in reanimating biomes)
- suspendmanager (manage the order of building when one construction can block another)
- tailor (generate workorders for new clothes when existing clothes start to wear out)

and when I'm looking for a challenge, I enable:

- hermit (no migrants)
or
- misery (amplify negative thoughts)
< >
Showing 1-9 of 9 comments
The author of this thread has indicated that this post answers the original topic.
myk002  [developer] Apr 21, 2023 @ 10:12am 
The DFHack control panel is the central hub for enabling "background" tools. If you select the "Autostart" tab, it shows you the tools you can enable/run when you start a new fort.

What you want to run depends on what you feel makes the game most fun for yourself. The ones I have enabled on the "Autostart" tab are:

- autobutcher (butchers excess livestock)
- autochop (cuts down trees when you get low on logs)
- autofarm (manages crop selection)
- autofish (enables fishing when you get low on fish)
- autonestbox (assigns egg-laying pets to nestbox zones)
- autoslab (engraves slabs for ghosts)
- ban-cooking all (prevents dwarves from cooking ingredients that have alternate uses)
- buildingplan set boulders false, buildingplan set logs false (forces buildingplan to only choose blocks for general building materials -- you should be sure to bring a few blocks with you to build starting workshops if you do this)
- emigration (allows unhappy dwarves to choose to leave your fort)
- fix/protect-nicks (fixes a vanilla bug where nicknames are sometimes lost)
- nestboxes (prevents dwarves from cooking fertile eggs)
- prioritize (ensures important jobs get done first)
- seedwatch (prevents dwarves from cooking seeds when your seed stocks are low)
- starvingdead (prevents infinite buildup of undead body parts in reanimating biomes)
- suspendmanager (manage the order of building when one construction can block another)
- tailor (generate workorders for new clothes when existing clothes start to wear out)

and when I'm looking for a challenge, I enable:

- hermit (no migrants)
or
- misery (amplify negative thoughts)
Monkeys R Us Apr 21, 2023 @ 10:17am 
Thank you very much for the tips and for the tool, ngl, didn't think I'd get one of the devs responding to my post, specially so quickly!!

If anyone has more tips, I'm all ears!

Originally posted by myk002:
The DFHack control panel is the central hub for enabling "background" tools. If you select the "Autostart" tab, it shows you the tools you can enable/run when you start a new fort.

What you want to run depends on what you feel makes the game most fun for yourself. The ones I have enabled on the "Autostart" tab are:

- autobutcher (butchers excess livestock)
- autochop (cuts down trees when you get low on logs)
- autofarm (manages crop selection)
- autofish (enables fishing when you get low on fish)
- autonestbox (assigns egg-laying pets to nestbox zones)
- autoslab (engraves slabs for ghosts)
- ban-cooking all (prevents dwarves from cooking ingredients that have alternate uses)
- buildingplan set boulders false, buildingplan set logs false (forces buildingplan to only choose blocks for general building materials -- you should be sure to bring a few blocks with you to build starting workshops if you do this)
- emigration (allows unhappy dwarves to choose to leave your fort)
- fix/protect-nicks (fixes a vanilla bug where nicknames are sometimes lost)
- nestboxes (prevents dwarves from cooking fertile eggs)
- prioritize (ensures important jobs get done first)
- seedwatch (prevents dwarves from cooking seeds when your seed stocks are low)
- starvingdead (prevents infinite buildup of undead body parts in reanimating biomes)
- suspendmanager (manage the order of building when one construction can block another)
- tailor (generate workorders for new clothes when existing clothes start to wear out)

and when I'm looking for a challenge, I enable:

- hermit (no migrants)
or
- misery (amplify negative thoughts)
Last edited by Monkeys R Us; Apr 21, 2023 @ 10:19am
myk002  [developer] Apr 21, 2023 @ 10:18am 
While playing the game, the commands I run are situational. I guess I run the design-related tools most frequently:

- gui/quickfort (paste designs from blueprints)
- gui/design (build or dig in shapes and patterns)
- gui/blueprint (record designs in blueprints)
- gui/mass-remove (un-designate/disassemble buildings and constructions by area select)

When I'm dealing with sieges and lots of prisoners in cages, stripcaged is very helpful.

There are obviously many other useful tools for other situations, but that's kind of the point. In general, when you're doing something in-game that you find tedious and un-fun, look for a DFHack tool to solve the problem. There probably is one.
Last edited by myk002; Apr 21, 2023 @ 10:20am
One of my most used -

cleanowned scattered X
Strossi Jul 31, 2023 @ 10:30am 
how do you copy paste into the console?
AJABOOBOO Feb 2, 2024 @ 5:38pm 
any commands for fixing scrolls on ground stuck with "trader" tag?
I have like 20 or more in my pub that i cant move or interact with at all
im new to this entire process
Last edited by AJABOOBOO; Feb 2, 2024 @ 5:38pm
myk002  [developer] Feb 2, 2024 @ 10:03pm 
The current best solution for that is gui/autodump (Ctrl-h on the main map). Turn on the "Include items dropped by traders" option, select the scrolls on the ground, and double click to teleport them and clear the trader flag.
AJABOOBOO Feb 3, 2024 @ 3:08pm 
awesome thank you so much
Last edited by AJABOOBOO; Feb 3, 2024 @ 3:09pm
Demistari Jun 10, 2024 @ 5:51am 
Wanted to say thanks for that, been looking for it for months
< >
Showing 1-9 of 9 comments
Per page: 1530 50