2022-07-10 00:01:46 -06:00
|
|
|
automaterial
|
|
|
|
============
|
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`, `tag/design`, `tag/buildings`, `tag/map`
|
2022-07-20 00:11:02 -06:00
|
|
|
|
2022-07-22 11:14:50 -06:00
|
|
|
:index:`Sorts building materials by recent usage.
|
2022-07-22 11:18:32 -06:00
|
|
|
<automaterial; Sorts building materials by recent usage.>` This makes building
|
2022-07-22 11:14:50 -06:00
|
|
|
constructions (walls, floors, fortifications, etc) much easier by saving you
|
|
|
|
from having to trawl through long lists of materials each time you place one.
|
2022-07-18 17:13:04 -06:00
|
|
|
|
|
|
|
It moves the last used material for a given construction type to the top of the
|
|
|
|
list, if there are any left. So if you build a wall with chalk blocks, the next
|
|
|
|
time you place a wall the chalk blocks will be at the top of the list,
|
|
|
|
regardless of distance (it only does this in "grouped" mode, as individual item
|
|
|
|
lists could be huge). This means you can place most constructions without having
|
|
|
|
to search for your preferred material type.
|
|
|
|
|
|
|
|
Usage::
|
|
|
|
|
|
|
|
enable automaterial
|
2022-07-10 00:01:46 -06:00
|
|
|
|
|
|
|
.. image:: ../images/automaterial-mat.png
|
|
|
|
|
2022-07-18 17:13:04 -06:00
|
|
|
Pressing :kbd:`a` while highlighting any material will enable that material for
|
|
|
|
"auto select" for this construction type. You can enable multiple materials. Now
|
|
|
|
the next time you place this type of construction, the plugin will automatically
|
|
|
|
choose materials for you from the kinds you enabled. If there is enough to
|
|
|
|
satisfy the whole placement, you won't be prompted with the material screen at
|
|
|
|
all -- the construction will be placed and you will be back in the construction
|
|
|
|
menu.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
|
|
|
When choosing the construction placement, you will see a couple of options:
|
|
|
|
|
|
|
|
.. image:: ../images/automaterial-pos.png
|
|
|
|
|
2022-07-18 17:13:04 -06:00
|
|
|
Use :kbd:`a` here to temporarily disable the material autoselection, e.g. if you
|
|
|
|
need to go to the material selection screen so you can toggle some materials on
|
|
|
|
or off.
|
|
|
|
|
|
|
|
The other option (auto type selection, off by default) can be toggled on with
|
|
|
|
:kbd:`t`. If you toggle this option on, instead of returning you to the main
|
|
|
|
construction menu after selecting materials, it returns you back to this screen.
|
|
|
|
If you use this along with several autoselect enabled materials, you should be
|
|
|
|
able to place complex constructions more conveniently.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-18 17:13:04 -06:00
|
|
|
The ``automaterial`` plugin also enables extra contruction placement modes, such
|
|
|
|
as designating areas larger than 10x10 and allowing you to designate hollow
|
|
|
|
rectangles instead of the default filled ones.
|