2022-07-10 00:01:46 -06:00
|
|
|
autochop
|
|
|
|
========
|
2022-07-20 00:11:02 -06:00
|
|
|
|
2022-08-09 23:37:24 -06:00
|
|
|
.. dfhack-tool::
|
|
|
|
:summary: Auto-harvest trees when low on stockpiled logs.
|
2022-08-12 00:34:37 -06:00
|
|
|
:tags: fort auto plants
|
2022-08-09 23:37:24 -06:00
|
|
|
|
2023-01-06 02:35:21 -07:00
|
|
|
This plugin can automatically designate trees for chopping when your stocks are
|
|
|
|
low on logs. It can also ensure specified burrows are kept clear of trees, so,
|
|
|
|
for example, caravans always have a path to your depot and trees won't grow
|
|
|
|
close to your walls, giving invaders an unexpected path into your fort.
|
|
|
|
|
|
|
|
Autochop checks your stock of logs and designates appropriate trees for chopping
|
|
|
|
once every in-game day. Logs that are forbidden or inaccessible (e.g. in hidden
|
|
|
|
parts of the map, under water, etc.) are not counted towards your target. Trees
|
2023-01-06 11:08:50 -07:00
|
|
|
that are inaccessible are likewise never designated.
|
2023-01-06 02:35:21 -07:00
|
|
|
|
|
|
|
Please see `gui/autochop` for the interactive configuration dialog.
|
2022-07-18 13:52:38 -06:00
|
|
|
|
2022-08-17 23:42:02 -06:00
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
|
|
|
::
|
2022-07-10 00:01:46 -06:00
|
|
|
|
|
|
|
enable autochop
|
2023-01-06 02:35:21 -07:00
|
|
|
autochop [status]
|
|
|
|
autochop (designate|undesignate)
|
|
|
|
autochop target <max> [<min>]
|
2023-01-06 11:08:50 -07:00
|
|
|
autochop (chop|nochop) <burrow>[,<burrow>...]
|
|
|
|
autochop (clearcut|noclearcut) <burrow>[,<burrow>...]
|
|
|
|
autochop (protect|unprotect) <type>[,<type>...] <burrow>[,<burrow>...]
|
2023-01-06 02:35:21 -07:00
|
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
2023-01-06 11:08:50 -07:00
|
|
|
Ensure we always have about 200 logs in stock, harvested from accessible trees
|
|
|
|
anywhere on the map::
|
2023-01-06 02:35:21 -07:00
|
|
|
|
2023-01-06 11:08:50 -07:00
|
|
|
enable autochop
|
|
|
|
|
|
|
|
Ensure we always have about 500 logs in stock, harvested from a burrow named
|
|
|
|
"TreeFarm". Also ensure the caravan pathway and the area around the outer wall
|
|
|
|
("CaravanPath" and "OuterWall") are always clear::
|
|
|
|
|
|
|
|
enable autochop
|
2023-01-06 02:35:21 -07:00
|
|
|
autochop target 500
|
2023-01-06 11:08:50 -07:00
|
|
|
autochop chop TreeFarm
|
2023-01-06 02:35:21 -07:00
|
|
|
autochop clearcut CaravanPath,OuterWall
|
2023-01-06 11:08:50 -07:00
|
|
|
|
|
|
|
Clear all non-food-producing trees out of a burrow ("PicnicArea") intended to
|
|
|
|
contain only food-producing trees::
|
|
|
|
|
|
|
|
autochop clearcut PicnicArea
|
|
|
|
autochop protect brewable,edible,cookable PicnicArea
|
|
|
|
autochop designate
|
2023-01-06 02:35:21 -07:00
|
|
|
|
|
|
|
Commands
|
|
|
|
--------
|
|
|
|
|
|
|
|
``status``
|
2023-01-06 11:08:50 -07:00
|
|
|
Show current configuration and relevant statistics.
|
2023-01-06 02:35:21 -07:00
|
|
|
|
|
|
|
``designate``
|
|
|
|
Designate trees for chopping right now according to the current
|
|
|
|
configuration. This works even if ``autochop`` is not currently enabled.
|
|
|
|
|
|
|
|
``undesignate``
|
|
|
|
Undesignates all trees.
|
|
|
|
|
|
|
|
``target <max> [<min>]``
|
|
|
|
Set the target range for the number of logs you want to have in stock. If a
|
|
|
|
minimum amount is not specified, it defaults to 20% less than the maximum.
|
|
|
|
The default target is ``200`` (with a corresponding minimum of ``160``).
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2023-01-06 11:08:50 -07:00
|
|
|
``(no)chop <burrow>[,<burrow>...]``
|
2023-01-06 02:35:21 -07:00
|
|
|
Instead of choosing trees across the whole game map, restrict tree cutting
|
|
|
|
to the given burrows. Burrows can be specified by name or internal ID.
|
2022-07-18 13:52:38 -06:00
|
|
|
|
2023-01-06 11:08:50 -07:00
|
|
|
``(no)clearcut <burrow>[,<burrow>...]``
|
2023-01-06 02:35:21 -07:00
|
|
|
Ensure the given burrows are always clear of trees. As soon as a tree
|
2023-01-06 11:08:50 -07:00
|
|
|
appears in any of these burrows, it is designated for chopping at priority
|
|
|
|
2.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2023-01-06 11:08:50 -07:00
|
|
|
``(un)protect <type>[,<type>...] <burrow>[,<burrow>...]``
|
2023-01-06 02:35:21 -07:00
|
|
|
Choose whether to exclude trees from chopping that produce any of the given
|
|
|
|
types of food. Valid types are: ``brewable``, ``edible``, and ``cookable``.
|