* Enabled internal links; a phrase in backticks is linked to the
corresponding link target and turns into the corresponding title.
* Linked all existing references in Scripts.rst
* Created corresponding link targets
* Fixed formatting of some tables of arguments.
An isometric visualizer that runs in a second window. This requires working
An isometric visualizer that runs in a second window. This requires working
@ -59,7 +61,7 @@ Options (If only region and name are given, export all):
:place:Export stockpile commands to "<name>-place.csv"
:place:Export stockpile commands to "<name>-place.csv"
:query:Export query commands to "<name>-query.csv"
:query:Export query commands to "<name>-query.csv"
Goes very well with ``fortplan``, for re-importing.
Goes very well with `plugins/fortplan`, for re-importing.
Map inspection
Map inspection
@ -179,10 +181,6 @@ showmood
Shows all items needed for the currently active strange mood.
Shows all items needed for the currently active strange mood.
========
========
Bugfixes
Bugfixes
========
========
@ -239,14 +237,15 @@ population booms as you go below the raised population cap, this plugin counts
pregnancies toward the new population cap. It can still go over, but only in the
pregnancies toward the new population cap. It can still go over, but only in the
case of multiple births.
case of multiple births.
`petcapRemover`
Usage:
cause pregnancies now and schedule the next check
`petcapRemover every n`
:petcapRemover:cause pregnancies now and schedule the next check
set how often in ticks the plugin checks for possible pregnancies
:petcapRemover every n:set how often in ticks the plugin checks for possible pregnancies
`petcapRemover cap n`
:petcapRemover cap n:set the new cap to n. if n = 0, no cap
set the new cap to n. if n = 0, no cap
:petcapRemover pregtime n:sets the pregnancy duration to n ticks. natural pregnancies are
`petcapRemover pregtime n`
300000 ticks for the current race and 200000 for everyone else
sets the pregnancy duration to n ticks. natural pregnancies are 300000 ticks for the current race and 200000 for everyone else
.._plugins/tweak:
tweak
tweak
=====
=====
@ -324,6 +323,8 @@ Subcommands that persist until disabled or DF quits:
:stable-cursor:Saves the exact cursor position between t/q/k/d/b/etc menus of fortress mode.
:stable-cursor:Saves the exact cursor position between t/q/k/d/b/etc menus of fortress mode.
:tradereq-pet-gender:Displays pet genders on the trade request screen
:tradereq-pet-gender:Displays pet genders on the trade request screen
.._plugins/fix-armory:
fix-armory
fix-armory
==========
==========
Enables a fix for storage of squad equipment in barracks.
Enables a fix for storage of squad equipment in barracks.
@ -378,10 +379,6 @@ There are some minor traces in the game code to suggest that the first of
these rules is intended by Toady; the rest are invented by this plugin.
these rules is intended by Toady; the rest are invented by this plugin.
===========
===========
UI Upgrades
UI Upgrades
===========
===========
@ -447,10 +444,8 @@ The following mouse shortcuts are also available:
Pressing ESC normally returns to the unit screen, but Shift-ESC would exit
Pressing ESC normally returns to the unit screen, but Shift-ESC would exit
directly to the main dwarf mode screen.
directly to the main dwarf mode screen.
Search
search
======
======
Implemented by the 'search' plugin.
The search plugin adds search to the Stocks, Animals, Trading, Stockpile,
The search plugin adds search to the Stocks, Animals, Trading, Stockpile,
Noble (assignment candidates), Military (position candidates), Burrows
Noble (assignment candidates), Military (position candidates), Burrows
(unit list), Rooms, Announcements, Job List and Unit List screens.
(unit list), Rooms, Announcements, Job List and Unit List screens.
@ -506,11 +501,8 @@ Tools:
* ``sand``: Displays an indicator when sand is present in the currently-selected area, similar to the default clay/stone indicators.
* ``sand``: Displays an indicator when sand is present in the currently-selected area, similar to the default clay/stone indicators.
* ``sticky``: Maintains the selected local area while navigating the world map
* ``sticky``: Maintains the selected local area while navigating the world map
automaterial
AutoMaterial
------------
------------
Implemented by the 'automaterial' plugin.
This makes building constructions (walls, floors, fortifications, etc) a little bit
This makes building constructions (walls, floors, fortifications, etc) a little bit
easier by saving you from having to trawl through long lists of materials each time
easier by saving you from having to trawl through long lists of materials each time
you place one.
you place one.
@ -545,7 +537,6 @@ enabled materials, you should be able to place complex constructions more conven
confirm
confirm
-------
-------
Implements several confirmation dialogs for potentially destructive actions
Implements several confirmation dialogs for potentially destructive actions
(for example, seizing goods from traders or deleting hauling routes).
(for example, seizing goods from traders or deleting hauling routes).
@ -560,13 +551,20 @@ Makes the game view follow the currently highlighted unit after you exit from
current menu/cursor mode. Handy for watching dwarves running around. Deactivated
current menu/cursor mode. Handy for watching dwarves running around. Deactivated
by moving the view manually.
by moving the view manually.
.._plugins/resume:
resume
------
Allows automatic resumption of suspended constructions, along with colored
UI hints for construction status.
tidlers
tidlers
-------
-------
Toggle between all possible positions where the idlers count can be placed.
Toggle between all possible positions where the idlers count can be placed.
trackstop
trackstop
---------
---------
Adds a `q` menu for track stops, which is completely blank by default.
Adds a ``q`` menu for track stops, which is completely blank by default.
This allows you to view and/or change the track stop's friction and dump
This allows you to view and/or change the track stop's friction and dump
direction settings, using the keybindings from the track stop building interface.
direction settings, using the keybindings from the track stop building interface.
@ -577,6 +575,8 @@ Toggle between displaying/not displaying liquid depth as numbers.
stockpile management
stockpile management
--------------------
--------------------
.._plugins/stocksettings:
import/export
import/export
~~~~~~~~~~~~~
~~~~~~~~~~~~~
The following commands allow you to save and load stockpile settings.
The following commands allow you to save and load stockpile settings.
@ -816,21 +816,22 @@ Options:
digFlood
digFlood
--------
--------
Automatically digs out specified veins as they are discovered. It runs once every time a dwarf finishes a dig job. It will only dig out appropriate tiles that are adjacent to the finished dig job. To add a vein type, use `digFlood 1 [type]`. This will also enable the plugin. To remove a vein type, use `digFlood 0 [type] 1` to disable, then remove, then re-enable.
Automatically digs out specified veins as they are discovered. It runs once
every time a dwarf finishes a dig job. It will only dig out appropriate tiles
`digFlood 0` disable
that are adjacent to the finished dig job. To add a vein type, use ``digFlood 1 [type]``.
This will also enable the plugin. To remove a vein type, use ``digFlood 0 [type] 1``
`digFlood 1` enable
to disable, then remove, then re-enable.
`digFlood 0 MICROCLINE COAL_BITUMINOUS 1` disable plugin, remove microcline and bituminous coal from monitoring, then re-enable the plugin
`digFlood CLEAR` remove all inorganics from monitoring
Usage:
`digFlood digAll1` ignore the monitor list and dig any vein
`digFlood digAll0` disable digAll mode
See `help digFlood` for details.
:help digflood:detailed help message
:digFlood 0:disable the plugin
:digFlood 1:enable the plugin
:digFlood 0 MICROCLINE COAL_BITUMINOUS 1:
disable plugin, remove microcline and bituminous coal from monitoring, then re-enable the plugin
:digFlood CLEAR:remove all inorganics from monitoring
:digFlood digAll1:ignore the monitor list and dig any vein
:digFlood digAll0:disable digAll mode
filltraffic
filltraffic
-----------
-----------
@ -897,19 +898,12 @@ Specifying both -t and -s will have no effect. If no plant IDs are specified,
all valid plant IDs will be listed.
all valid plant IDs will be listed.
===========================
===========================
Job and Fortress management
Job and Fortress management
===========================
===========================
.._plugins/autolabor:
autolabor
autolabor
=========
=========
Automatically manage dwarf labors to efficiently complete jobs.
Automatically manage dwarf labors to efficiently complete jobs.
@ -934,22 +928,25 @@ Anything beyond this is optional - autolabor works well on the default settings.
Advanced usage:
Advanced usage:
:`autolabor <labor> <minimum> [<maximum>]`:Set number of dwarves assigned to a labor.
:autolabor <labor> <minimum> [<maximum>]:
:`autolabor <labor> haulers`:Set a labor to be handled by hauler dwarves.
Set number of dwarves assigned to a labor.
:`autolabor <labor> disable`:Turn off autolabor for a specific labor.
:autolabor <labor> haulers:Set a labor to be handled by hauler dwarves.
:`autolabor <labor> reset`:Return a labor to the default handling.
:autolabor <labor> disable:Turn off autolabor for a specific labor.
:`autolabor reset-all`:Return all labors to the default handling.
:autolabor <labor> reset:Return a labor to the default handling.
:`autolabor list`:List current status of all labors.
:autolabor reset-all:Return all labors to the default handling.
:`autolabor status`:Show basic status information.
:autolabor list:List current status of all labors.
:`autolabor-artisans <command>`:Run a command for labors where skill affects output quality
:autolabor status:Show basic status information.
See `scripts/autolabor-artisans` for a differently-tunde setup.
*Examples:*
Examples:
:`autolabor MINE 5`:Keep at least 5 dwarves with mining enabled.
:autolabor MINE:Keep at least 5 dwarves with mining enabled.
:`autolabor CUT_GEM 1 1`:Keep exactly 1 dwarf with gemcutting enabled.
:autolabor CUT_GEM 1 1:Keep exactly 1 dwarf with gemcutting enabled.
:`autolabor COOK 1 1 3`:Keep 1 dwarf with cooking enabled, selected only from the top 3.
:autolabor COOK 1 1 3:Keep 1 dwarf with cooking enabled, selected only from the top 3.
:`autolabor FEED_WATER_CIVILIANS haulers`:Have haulers feed and water wounded dwarves.
:autolabor FEED_WATER_CIVILIANS haulers:
:`autolabor CUTWOOD disable`:Turn off autolabor for wood cutting.
Have haulers feed and water wounded dwarves.
:autolabor CUTWOOD disable:Turn off autolabor for wood cutting.
By default, each labor is assigned to between 1 and 200 dwarves (2-200 for mining).
By default, each labor is assigned to between 1 and 200 dwarves (2-200 for mining).
By default 33% of the workforce become haulers, who handle all hauling jobs as well
By default 33% of the workforce become haulers, who handle all hauling jobs as well
@ -977,6 +974,8 @@ We stop assigning dwarfs when we reach the maximum allowed.
Job management
Job management
==============
==============
.._plugins/job:
job
job
---
---
Command for general job query and manipulation.
Command for general job query and manipulation.
@ -1046,6 +1045,8 @@ number of identical orders already in the queue.
In fast mode, new work orders will be enqueued once per day, instead of
In fast mode, new work orders will be enqueued once per day, instead of
waiting for the bookkeeper.
waiting for the bookkeeper.
.._plugins/workflow:
workflow
workflow
--------
--------
Manage control of repeat jobs.
Manage control of repeat jobs.
@ -1077,7 +1078,6 @@ Usage:
Function
Function
~~~~~~~~
~~~~~~~~
When the plugin is enabled, it protects all repeat jobs from removal.
When the plugin is enabled, it protects all repeat jobs from removal.
If they do disappear due to any cause, they are immediately re-added to their
If they do disappear due to any cause, they are immediately re-added to their
workshop and suspended.
workshop and suspended.
@ -1193,6 +1193,8 @@ spotclean
Works like 'clean map snow mud', but only for the tile under the cursor. Ideal
Works like 'clean map snow mud', but only for the tile under the cursor. Ideal
if you want to keep that bloody entrance 'clean map' would clean up.
if you want to keep that bloody entrance 'clean map' would clean up.
.._plugins/autodump:
autodump
autodump
--------
--------
This utility lets you quickly move all items designated to be dumped.
This utility lets you quickly move all items designated to be dumped.
@ -1492,6 +1494,8 @@ Options:
:sleep:Must be followed by number X. Changes the timer to sleep X
:sleep:Must be followed by number X. Changes the timer to sleep X
frames between runs.
frames between runs.
.._plugins/autobutcher:
autobutcher
autobutcher
-----------
-----------
Assigns lifestock for slaughter once it reaches a specific count. Requires that
Assigns lifestock for slaughter once it reaches a specific count. Requires that
@ -1785,6 +1789,8 @@ Options:
:show X:Marks the selected map feature as discovered.
:show X:Marks the selected map feature as discovered.
:hide X:Marks the selected map feature as undiscovered.
:hide X:Marks the selected map feature as undiscovered.
.._plugins/fortplan:
fortplan
fortplan
========
========
Usage: fortplan [filename]
Usage: fortplan [filename]
@ -2119,6 +2125,8 @@ structures in RAWs, modify the game engine behavior concerning the target
objects to add features not otherwise present.
objects to add features not otherwise present.
.._plugins/siege-engine:
Siege Engine
Siege Engine
------------
------------
The siege-engine plugin enables siege engines to be linked to stockpiles, and
The siege-engine plugin enables siege engines to be linked to stockpiles, and
@ -2161,6 +2169,8 @@ Exiting from the siege engine script via ESC reverts the view to the state prior
the script. Shift-ESC retains the current viewport, and also exits from the 'q' mode to main
the script. Shift-ESC retains the current viewport, and also exits from the 'q' mode to main
menu.
menu.
.._plugins/power-meter:
Power Meter
Power Meter
-----------
-----------
The power-meter plugin implements a modified pressure plate that detects power being
The power-meter plugin implements a modified pressure plate that detects power being
* Haulers still take equipment stored in the armory away to the stockpiles,
* Haulers still take equipment stored in the armory away to the stockpiles,
unless the ``fix-armory`` plugin above is used.
unless `plugins/fix-armory` is used.
The script interface simply lets you designate one of the squads that
The script interface simply lets you designate one of the squads that
are assigned to the barracks/armory containing the selected stand as
are assigned to the barracks/armory containing the selected stand as
@ -156,7 +156,7 @@ of currently assigned racks for every valid squad.
gui/autobutcher
gui/autobutcher
===============
===============
An in-game interface for the ``autobutcher`` plugin.
An in-game interface for `plugins/autobutcher`.
gui/choose-weapons
gui/choose-weapons
==================
==================
@ -195,6 +195,8 @@ case. Must be in look or talk mode to issue command on tile.
* follow - rejoin the party after "wait"
* follow - rejoin the party after "wait"
* leave - remove from party (can be rejoined by talking)
* leave - remove from party (can be rejoined by talking)
.._scripts/gui/create-item:
gui/create-item
gui/create-item
===============
===============
A graphical interface for creating items.
A graphical interface for creating items.
@ -238,7 +240,7 @@ computes it when the order is executed for the first time.
gui/hack-wish
gui/hack-wish
=============
=============
An alias for ``gui/create-item``. Deprecated.
An alias for `scripts/gui/create-item`. Deprecated.
gui/hello-world
gui/hello-world
===============
===============
@ -300,7 +302,7 @@ Shows a warning at startup if no valid ``dfhack.init`` file is found.
gui/power-meter
gui/power-meter
===============
===============
An in-game interface for the ``power-meter`` plugin.
An in-game interface for `plugins/power-meter`.
gui/rename
gui/rename
==========
==========
@ -342,19 +344,21 @@ list, and allows unassigning them.
gui/siege-engine
gui/siege-engine
================
================
An in-game interface for the ``siege-engine`` plugin.
An in-game interface for `plugins/siege-engine`.
gui/stockpiles
gui/stockpiles
==============
==============
Load and save stockpile settings from the 'q' menu.
An in-game interface for `plugins/stocksettings`, to
Usage::
load and save stockpile settings from the 'q' menu.
Usage:
gui/stockpiles -save to save the current stockpile
:gui/stockpiles -save:to save the current stockpile
gui/stockpiles -load to load settings into the current stockpile
:gui/stockpiles -load:to load settings into the current stockpile
gui/stockpiles -dir <path> set the default directory to save settings into
:gui/stockpiles -dir <path>:set the default directory to save settings into
gui/stockpiles -help to see this message
:gui/stockpiles -help:to see this message
Don't forget to `enable stockpiles` and create the `stocksettings` directory in
Don't forget to ``enable stockpiles`` and create the ``stocksettings`` directory in
the DF folder before trying to use this plugin.
the DF folder before trying to use this plugin.
gui/unit-info-viewer
gui/unit-info-viewer
@ -387,8 +391,8 @@ items and expanding the range each gives a 2x bonus).
Pressing 'A' produces a list of possible outputs of this job as guessed by
Pressing 'A' produces a list of possible outputs of this job as guessed by
workflow, and lets you create a new constraint by choosing one as template. If you
workflow, and lets you create a new constraint by choosing one as template. If you
don't see the choice you want in the list, it likely means you have to adjust
don't see the choice you want in the list, it likely means you have to adjust
the job material first using ``job item-material`` or ``gui/workshop-job``,
the job material first using `plugins/job```item-material`` or `scripts/gui/workshop-job`,
as described in ``workflow`` documentation above. In this manner, this feature
as described in `plugins/workflow` documentation. In this manner, this feature
can be used for troubleshooting jobs that don't match the right constraints.
can be used for troubleshooting jobs that don't match the right constraints.
..image:: images/workflow-new1.png
..image:: images/workflow-new1.png
@ -423,6 +427,8 @@ of stock history for the selected item, with the rightmost point representing
the current stock value. The bright green dashed line is the target
the current stock value. The bright green dashed line is the target
limit (maximum) and the dark green line is that minus the gap (minimum).
limit (maximum) and the dark green line is that minus the gap (minimum).
.._scripts/gui/workshop-job:
gui/workshop-job
gui/workshop-job
================
================
Bind to a key (the example config uses Alt-A), and activate with a job selected in
Bind to a key (the example config uses Alt-A), and activate with a job selected in
@ -431,7 +437,7 @@ a workshop in the 'q' mode.
..image:: images/workshop-job.png
..image:: images/workshop-job.png
The script shows a list of the input reagents of the selected job, and allows changing
The script shows a list of the input reagents of the selected job, and allows changing
them like the ``job item-type`` and ``job item-material`` commands.
them like the `plugins/job```item-type`` and `plugins/job```item-material`` commands.
Specifically, pressing the 'i' key pops up a dialog that lets you select an item
Specifically, pressing the 'i' key pops up a dialog that lets you select an item
type from a list.
type from a list.
@ -621,14 +627,18 @@ Usage::
autofarm default 30
autofarm default 30
autofarm threshold 150 helmet_plump tail_pig
autofarm threshold 150 helmet_plump tail_pig
.._scripts/autolabor-artisans:
autolabor-artisans
autolabor-artisans
==================
==================
Runs the ``autolabor`` plugin, with settings tuned for small but highly skilled workforces.
Runs `plugins/autolabor`, with settings tuned for small but highly skilled workforces.
.._scripts/autounsuspend:
autounsuspend
autounsuspend
=============
=============
Automatically unsuspend construction jobs, on a recurring basis.
Automatically unsuspend construction jobs, on a recurring basis.
See ``unsuspend`` for one-off use, or ``resume all``.
See `scripts/unsuspend` for one-off use, or `plugins/resume```all``.
ban-cooking
ban-cooking
===========
===========
@ -863,7 +873,7 @@ Lists the key, name, and jump position of your hotkeys in the DFHack console.
item-descriptions
item-descriptions
=================
=================
Exports a table with custom description text for every item in the game.
Exports a table with custom description text for every item in the game.
Used by ``view-item-info``.
Used by `scripts/view-item-info`.
lever
lever
=====
=====
@ -897,7 +907,10 @@ Examples::
log-region
log-region
==========
==========
When enabled in dfhack.init, each time a fort is loaded identifying information will be written to the gamelog. Assists in parsing the file if you switch between forts, and adds information for story-building.
When enabled in dfhack.init, each time a fort is loaded identifying information
will be written to the gamelog. Assists in parsing the file if you switch
between forts, and adds information for story-building.
lua
lua
===
===
There are the following ways to invoke this command:
There are the following ways to invoke this command:
@ -988,7 +1001,24 @@ normally used in seasonal auto-save.
region-pops
region-pops
===========
===========
Show or modify the populations of animals in the region. Use ``region-pops`` for details.
Show or modify the populations of animals in the region.
Usage:
:region-pops list [pattern]:
Lists encountered populations of the region, possibly restricted by pattern.
:region-pops list-all [pattern]:
Lists all populations of the region.
:region-pops boost <TOKEN> <factor>:
Multiply all populations of TOKEN by factor.
If the factor is greater than one, increases the
population, otherwise decreases it.
:region-pops boost-all <pattern> <factor>:
Same as above, but match using a pattern acceptable to list.
:region-pops incr <TOKEN> <factor>:
Augment (or diminish) all populations of TOKEN by factor (additive).
:region-pops incr-all <pattern> <factor>:
Same as above, but match using a pattern acceptable to list.
rejuvenate
rejuvenate
==========
==========
@ -1005,6 +1035,8 @@ remove-wear
===========
===========
Sets the wear on all items in your fort to zero.
Sets the wear on all items in your fort to zero.
.._scripts/repeat:
repeat
repeat
======
======
Repeatedly calls a lua script at the specified interval.
Repeatedly calls a lua script at the specified interval.
@ -1034,8 +1066,22 @@ combat in slow motion or something :)
show-unit-syndromes
show-unit-syndromes
===================
===================
Show syndromes affecting units and the remaining and maximum duration, along
Show syndromes affecting units and the remaining and maximum duration, along
with (optionally) substantial detail on the effects. Call
with (optionally) substantial detail on the effects.
``show-unit-syndromes help`` for further options.
Use one or more of the following options:
:showall:Show units even if not affected by any syndrome
:showeffects:Show detailed effects of each syndrome
:showdisplayeffects:Show effects that only change the look of the unit
:ignorehiddencurse:Hide syndromes the user should not be able to know about (TODO)