2023-10-28 01:37:02 -06:00
|
|
|
burrow
|
|
|
|
======
|
2022-07-20 00:11:02 -06:00
|
|
|
|
2022-08-09 23:37:24 -06:00
|
|
|
.. dfhack-tool::
|
2023-10-28 01:37:02 -06:00
|
|
|
:summary: Quickly adjust burrow tiles and units.
|
|
|
|
:tags: fort auto design productivity units
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2023-10-28 01:37:02 -06:00
|
|
|
This tool has two modes. When enabled, it monitors burrows with names that end
|
|
|
|
in ``+``. If a wall at the edge of such a burrow is dug out, the burrow will be
|
2023-11-02 13:44:37 -06:00
|
|
|
automatically extended to include the newly-revealed adjacent walls. If a miner
|
|
|
|
digs into an open space, such as a cavern, the open space will *not* be
|
|
|
|
included in the burrow.
|
2022-08-09 23:37:24 -06:00
|
|
|
|
2023-10-28 01:37:02 -06:00
|
|
|
When run as a command, it can quickly adjust which tiles and/or units are
|
|
|
|
associated with the burrow.
|
2022-07-18 18:09:48 -06:00
|
|
|
|
2022-08-17 23:42:02 -06:00
|
|
|
Usage
|
|
|
|
-----
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2023-10-28 01:37:02 -06:00
|
|
|
::
|
|
|
|
|
|
|
|
enable burrow
|
|
|
|
burrow tiles|units clear <target burrow> [<target burrow> ...] [<options>]
|
|
|
|
burrow tiles|units set|add|remove <target burrow> <burrow> [...] [<options>]
|
2023-10-28 20:26:15 -06:00
|
|
|
burrow tiles box-add|box-remove <target burrow> [<pos>] [<pos>] [<options>]
|
2023-10-28 01:37:02 -06:00
|
|
|
burrow tiles flood-add|flood-remove <target burrow> [<options>]
|
|
|
|
|
|
|
|
The burrows can be referenced by name or by the internal numeric burrow ID. If
|
2023-10-28 20:26:15 -06:00
|
|
|
referenced by name, the first burrow that matches the name (case sensitive)
|
|
|
|
will be targeted. If a burrow name ends in ``+`` (to indicate that it should be
|
2023-10-28 01:37:02 -06:00
|
|
|
auto-expanded), the final ``+`` does not need to be specified on the
|
|
|
|
commandline.
|
|
|
|
|
|
|
|
For ``set``, ``add``, or ``remove`` commands, instead of a burrow, you can
|
|
|
|
specify one of the following all-caps keywords:
|
2022-07-22 01:05:53 -06:00
|
|
|
|
|
|
|
- ``ABOVE_GROUND``
|
|
|
|
- ``SUBTERRANEAN``
|
|
|
|
- ``INSIDE``
|
|
|
|
- ``OUTSIDE``
|
|
|
|
- ``LIGHT``
|
|
|
|
- ``DARK``
|
|
|
|
- ``HIDDEN``
|
|
|
|
- ``REVEALED``
|
|
|
|
|
2023-10-28 01:37:02 -06:00
|
|
|
to add or remove tiles with the corresponding properties.
|
|
|
|
|
2023-10-29 17:34:18 -06:00
|
|
|
Flood fill selects tiles spreading out from a starting tile if they:
|
|
|
|
|
|
|
|
- match the inside/outside and hidden/revealed properties of the starting tile
|
|
|
|
- match the walkability group of the starting tile OR (if the starting tile is
|
|
|
|
walkable) is adjacent to a tile with the same walkability group as the
|
|
|
|
starting tile
|
|
|
|
|
|
|
|
When flood adding, the flood fill will also stop at any tiles that have already
|
|
|
|
been added to the burrow. Similarly for flood removing, the flood will also
|
|
|
|
stop at tiles that are not in the burrow.
|
2023-10-28 01:37:02 -06:00
|
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
``enable burrow``
|
|
|
|
Start monitoring burrows that have names ending in '+' and automatically
|
|
|
|
expand them when walls that border the burrows are dug out.
|
|
|
|
``burrow tiles clear Safety``
|
|
|
|
Remove all tiles from the burrow named ``Safety`` (in preparation for
|
|
|
|
adding new tiles elsewhere, presumably).
|
|
|
|
``burrow units clear Farmhouse Workshops``
|
|
|
|
Remove all units from the burrows named ``Farmhouse`` and ``Workshops``.
|
|
|
|
``multicmd burrow tiles set Inside INSIDE; burrow tiles remove Inside HIDDEN``
|
|
|
|
Reset the burrow named ``Inside`` to include all the currently revealed,
|
|
|
|
interior tiles.
|
|
|
|
``burrow units set "Core Fort" Peasants Skilled``
|
|
|
|
Clear all units from the burrow named ``Core Fort``, then add units
|
|
|
|
currently assigned to the ``Peasants`` and ``Skilled`` burrows.
|
|
|
|
``burrow tiles box-add Safety 0,0,0``
|
|
|
|
Add all tiles to the burrow named ``Safety`` that are within the volume of
|
|
|
|
the box starting at coordinate 0, 0, 0 (the upper left corner of the bottom
|
|
|
|
level) and ending at the current location of the keyboard cursor.
|
|
|
|
``burrow tiles flood-add Safety --cur-zlevel``
|
|
|
|
Flood-add the tiles on the current z-level with the same properties as the
|
|
|
|
tile under the keyboard cursor to the burrow named ``Safety``.
|
|
|
|
|
|
|
|
Options
|
|
|
|
-------
|
|
|
|
|
|
|
|
``-c``, ``--cursor <pos>``
|
|
|
|
Indicate the starting position of the box or flood fill. If not specified,
|
|
|
|
the position of the keyboard cursor is used.
|
|
|
|
``-z``, ``--cur-zlevel``
|
2023-10-31 19:54:38 -06:00
|
|
|
Restricts a flood fill operation to the currently visible z-level.
|
2023-10-28 01:37:02 -06:00
|
|
|
|
|
|
|
Note
|
|
|
|
----
|
|
|
|
|
|
|
|
If you are auto-expanding a burrow (whose name ends in a ``+``) and the miner
|
|
|
|
who is digging to expand the burrow is assigned to that burrow, then 1-wide
|
|
|
|
corridors that expand the burrow will have very slow progress. This is because
|
|
|
|
the burrow is expanded to include the next dig job only after the miner has
|
|
|
|
chosen a next tile to dig, which may be far away. 2-wide cooridors are much
|
|
|
|
more efficient when expanding a burrow since the "next" tile to dig will still
|
|
|
|
be nearby.
|
2023-10-29 17:34:18 -06:00
|
|
|
|
|
|
|
Overlay
|
|
|
|
-------
|
|
|
|
|
|
|
|
When painting burrows in the vanilla UI, a few extra mouse operations are
|
|
|
|
supported. If you box select across multiple z-levels, you will be able to
|
|
|
|
select the entire volume instead of just the selected area on the z-level that
|
|
|
|
you are currently looking at.
|
|
|
|
|
|
|
|
In addition, double-clicking will start a flood fill from the target tile.
|
2023-10-30 17:27:14 -06:00
|
|
|
|
|
|
|
The box and flood fill actions respect the UI setting for whether the burrow is
|
|
|
|
being added to or erased.
|