2022-07-10 00:01:46 -06:00
|
|
|
dig-now
|
|
|
|
=======
|
sync tags spreadsheet to git
spreadsheet - https://docs.google.com/spreadsheets/d/1hiDlo8M_bB_1jE-5HRs2RrrA_VZ4cRu9VXaTctX_nwk/edit#gid=170388995
sync command - for fname in *rst; do name=$(echo $fname | sed 's/[.]rst//'); tagline=$(egrep ",$name," ~/Downloads/DFHack\ taxonomy\ -\ Tool\ tags.csv | ~/Downloads/csvtotags.sh); sed -ri "s;[*]*Tags:.*;$tagline;" $fname; done
contents of csvtotags.sh -
fgrep . | sed -r 's/^[^,]+,([^,]+),[^.]+[.]"?,/\1,/' | awk -F, '
function tag(idx, tagname) {
if ($idx == "TRUE") {
if (hastag == 1) {printf(", ")}
printf("`tag/%s`", tagname)
hastag = 1
}
}
{
printf("%s", "**Tags:** ")
hastag = 0
tag(2, "adventure")
tag(3, "fort")
tag(4, "legends")
tag(5, "embark")
tag(6, "system")
tag(7, "dev")
tag(8, "auto")
tag(9, "productivity")
tag(10, "inspection")
tag(11, "design")
tag(12, "quickfort")
tag(13, "interface")
tag(14, "fps")
tag(15, "fix")
tag(16, "mod")
tag(17, "armok")
tag(18, "animals")
tag(19, "buildings")
tag(20, "items")
tag(21, "jobs")
tag(22, "map")
tag(23, "labors")
tag(24, "units")
tag(25, "stockpiles")
tag(26, "trees")
printf("\n")
}
'
2022-08-05 18:55:33 -06:00
|
|
|
**Tags:** `tag/fort`, `tag/armok`, `tag/map`
|
2022-07-22 18:46:33 -06:00
|
|
|
:dfhack-keybind:`dig-now`
|
|
|
|
|
|
|
|
:index:`Instantly complete dig designations.
|
|
|
|
<dig-now; Instantly complete dig designations.>` This tool will magically
|
|
|
|
complete non-marker dig designations, modifying tile shapes and creating
|
|
|
|
boulders, ores, and gems as if a miner were doing the mining or engraving. By
|
|
|
|
default, the entire map is processed and boulder generation follows standard
|
|
|
|
game rules, but the behavior is configurable.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
|
|
|
Note that no units will get mining or engraving experience for the dug/engraved
|
|
|
|
tiles.
|
|
|
|
|
|
|
|
Trees and roots are not currently handled by this plugin and will be skipped.
|
|
|
|
Requests for engravings are also skipped since they would depend on the skill
|
|
|
|
and creative choices of individual engravers. Other types of engraving (i.e.
|
|
|
|
smoothing and track carving) are handled.
|
|
|
|
|
|
|
|
Usage::
|
|
|
|
|
|
|
|
dig-now [<pos> [<pos>]] [<options>]
|
|
|
|
|
|
|
|
Where the optional ``<pos>`` pair can be used to specify the coordinate bounds
|
|
|
|
within which ``dig-now`` will operate. If they are not specified, ``dig-now``
|
|
|
|
will scan the entire map. If only one ``<pos>`` is specified, only the tile at
|
|
|
|
that coordinate is processed.
|
|
|
|
|
|
|
|
Any ``<pos>`` parameters can either be an ``<x>,<y>,<z>`` triple (e.g.
|
|
|
|
``35,12,150``) or the string ``here``, which means the position of the active
|
2022-07-22 18:46:33 -06:00
|
|
|
game cursor should be used. You can use the `position` command to get the
|
|
|
|
current cursor position if you need it.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-23 22:55:49 -06:00
|
|
|
Examples
|
|
|
|
--------
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-23 22:55:49 -06:00
|
|
|
``dig-now``
|
2022-07-10 00:01:46 -06:00
|
|
|
Dig designated tiles according to standard game rules.
|
2022-07-23 22:55:49 -06:00
|
|
|
``dig-now --clean``
|
2022-07-22 18:46:33 -06:00
|
|
|
Dig all designated tiles, but don't generate any boulders, ores, or gems.
|
2022-07-23 22:55:49 -06:00
|
|
|
``dig-now --dump here``
|
2022-07-22 18:46:33 -06:00
|
|
|
Dig tiles and teleport all generated boulders, ores, and gems to the tile
|
|
|
|
under the game cursor.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-23 22:55:49 -06:00
|
|
|
Options
|
|
|
|
-------
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-23 22:55:49 -06:00
|
|
|
``-c``, ``--clean``
|
2022-07-10 00:01:46 -06:00
|
|
|
Don't generate any boulders, ores, or gems. Equivalent to
|
|
|
|
``--percentages 0,0,0,0``.
|
2022-07-23 22:55:49 -06:00
|
|
|
``-d``, ``--dump <pos>``
|
2022-07-10 00:01:46 -06:00
|
|
|
Dump any generated items at the specified coordinates. If the tile at those
|
|
|
|
coordinates is open space or is a wall, items will be generated on the
|
|
|
|
closest walkable tile below.
|
2022-07-23 22:55:49 -06:00
|
|
|
``-e``, ``--everywhere``
|
2022-07-10 00:01:46 -06:00
|
|
|
Generate a boulder, ore, or gem for every tile that can produce one.
|
|
|
|
Equivalent to ``--percentages 100,100,100,100``.
|
2022-07-23 22:55:49 -06:00
|
|
|
``-p``, ``--percentages <layer>,<vein>,<small cluster>,<deep>``
|
2022-07-10 00:01:46 -06:00
|
|
|
Set item generation percentages for each of the tile categories. The
|
|
|
|
``vein`` category includes both the large oval clusters and the long stringy
|
|
|
|
mineral veins. Default is ``25,33,100,100``.
|
2022-07-23 22:55:49 -06:00
|
|
|
``-z``, ``--cur-zlevel``
|
2022-07-10 00:01:46 -06:00
|
|
|
Restricts the bounds to the currently visible z-level.
|