2022-07-10 00:01:46 -06:00
|
|
|
getplants
|
|
|
|
=========
|
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/productivity`
|
2022-07-25 22:50:52 -06:00
|
|
|
:dfhack-keybind:`getplants`
|
|
|
|
|
|
|
|
Designate trees for chopping and shrubs for gathering. Specify the types of
|
|
|
|
trees to cut down and/or shrubs to gather by their plant names.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
``getplants [-t|-s|-f]``
|
|
|
|
List valid tree/shrub ids, optionally restricted to the specified type.
|
|
|
|
``getplants <id> [<id> ...] [<options>]``
|
|
|
|
Designate trees/shrubs of the specified types for chopping/gathering.
|
|
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
``getplants``
|
|
|
|
List all valid IDs.
|
|
|
|
``getplants -f -a``
|
|
|
|
Gather all plants on the map that yield seeds for farming.
|
|
|
|
``getplants NETHER_CAP -n 10``
|
|
|
|
Designate 10 nether cap trees for chopping.
|
|
|
|
|
|
|
|
Options
|
|
|
|
-------
|
|
|
|
|
|
|
|
``-t``
|
|
|
|
Tree: Select trees only (exclude shrubs).
|
|
|
|
``-s``
|
|
|
|
Shrub: Select shrubs only (exclude trees).
|
|
|
|
``-f``
|
|
|
|
Farming: Designate only shrubs that yield seeds for farming.
|
|
|
|
``-a``
|
|
|
|
All: Select every type of plant (obeys ``-t``/``-s``/``-f``).
|
|
|
|
``-c``
|
|
|
|
Clear: Clear designations instead of setting them.
|
|
|
|
``-x``
|
|
|
|
eXcept: Apply selected action to all plants except those specified (invert
|
|
|
|
selection).
|
|
|
|
``-v``
|
|
|
|
Verbose: Lists the number of (un)designations per plant.
|
|
|
|
``-n <num>``
|
|
|
|
Number: Designate up to the specified number of plants of each species.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
DF is capable of determining that a shrub has already been picked, leaving
|
|
|
|
an unusable structure part behind. This plugin does not perform such a check
|
|
|
|
(as the location of the required information has not yet been identified).
|
|
|
|
This leads to some shrubs being designated when they shouldn't be, causing a
|
|
|
|
plant gatherer to walk there and do nothing (except clearing the
|
|
|
|
designation). See :issue:`1479` for details.
|