2022-07-10 00:01:46 -06:00
|
|
|
autohauler
|
|
|
|
==========
|
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/auto`, `tag/labors`
|
2022-07-20 00:11:02 -06:00
|
|
|
:dfhack-keybind:`autohauler`
|
|
|
|
|
2022-07-22 01:05:53 -06:00
|
|
|
:index:`Automatically manage hauling labors.
|
|
|
|
<autohauler; Automatically manage hauling labors.>` Similar to `autolabor`, but
|
|
|
|
instead of managing all labors, ``autohauler`` only addresses hauling labors,
|
|
|
|
leaving the assignment of skilled labors entirely up to you. You can use the
|
|
|
|
in-game `manipulator` UI or an external tool like Dwarf Therapist to do so.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-18 15:33:24 -06:00
|
|
|
Idle dwarves who are not on active military duty will be assigned the hauling
|
|
|
|
labors; everyone else (including those currently hauling) will have the hauling
|
|
|
|
labors removed. This is to encourage every dwarf to do their assigned skilled
|
|
|
|
labors whenever possible, but resort to hauling when those jobs are not
|
|
|
|
available. This also implies that the user will have a very tight skill
|
|
|
|
assignment, with most skilled labors only being assigned to just a few dwarves
|
|
|
|
and almost every non-military dwarf having at least one skilled labor assigned.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-18 15:33:24 -06:00
|
|
|
Autohauler allows a skill to be used as a flag to exempt a dwarf from
|
|
|
|
``autohauler``'s effects. By default, this is the unused ALCHEMIST labor, but it
|
|
|
|
can be changed by the user.
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
2022-07-23 17:03:40 -06:00
|
|
|
``enable autohauler``
|
2022-07-18 15:53:06 -06:00
|
|
|
Start managing hauling labors. This is normally all you need to do.
|
|
|
|
Autohauler works well on default settings.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autohauler status``
|
2022-07-18 15:33:24 -06:00
|
|
|
Show autohauler status and status of fort dwarves.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autohauler <labor> haulers``
|
2022-07-18 15:33:24 -06:00
|
|
|
Set whether a particular labor should be assigned to haulers.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autohauler <labor> allow|forbid``
|
2022-07-18 15:33:24 -06:00
|
|
|
Set whether a particular labor should mark a dwarf as exempt from hauling.
|
|
|
|
By default, only the ``ALCHEMIST`` labor is set to ``forbid``.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autohauler reset-all|<labor> reset``
|
2022-07-18 15:33:24 -06:00
|
|
|
Reset a particular labor (or all labors) to their default
|
|
|
|
haulers/allow/forbid state.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autohauler list``
|
2022-07-18 15:33:24 -06:00
|
|
|
Show the active configuration for all labors.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autohauler frameskip <number>``
|
2022-07-18 15:33:24 -06:00
|
|
|
Set the number of frames between runs of autohauler.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autohauler debug``
|
2022-07-18 15:33:24 -06:00
|
|
|
In the next cycle, output the state of every dwarf.
|
|
|
|
|
2022-07-20 00:11:02 -06:00
|
|
|
Examples
|
|
|
|
--------
|
2022-07-18 17:20:43 -06:00
|
|
|
|
2022-07-23 17:03:40 -06:00
|
|
|
``autohauler HAUL_STONE haulers``
|
2022-07-18 15:33:24 -06:00
|
|
|
Set stone hauling as a hauling labor (this is already the default).
|
2022-07-23 17:03:40 -06:00
|
|
|
``autohauler RECOVER_WOUNDED allow``
|
2022-07-18 15:33:24 -06:00
|
|
|
Allow the "Recover wounded" labor to be manually assigned by the player. By
|
|
|
|
default it is automatically given to haulers.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autohauler MINE forbid``
|
2022-07-18 15:33:24 -06:00
|
|
|
Don't assign hauling labors to dwarves with the Mining labor enabled.
|