2022-07-10 00:01:46 -06:00
|
|
|
autofarm
|
|
|
|
========
|
2022-08-09 23:37:24 -06:00
|
|
|
|
|
|
|
.. dfhack-tool::
|
|
|
|
:summary: Automatically manage farm crop selection.
|
2022-08-12 00:34:37 -06:00
|
|
|
:tags: fort auto plants
|
2022-08-09 23:37:24 -06:00
|
|
|
|
|
|
|
Periodically scan your plant stocks and assign crops to your farm plots based on
|
|
|
|
which plant stocks are low (as long as you have the appropriate seeds). The
|
|
|
|
target threshold for each crop type is configurable.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-08-17 23:42:02 -06:00
|
|
|
Usage
|
|
|
|
-----
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-23 17:03:40 -06:00
|
|
|
``enable autofarm``
|
2022-07-18 14:49:51 -06:00
|
|
|
Enable the plugin and start managing crop assignment.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autofarm runonce``
|
2022-07-18 14:49:51 -06:00
|
|
|
Updates all farm plots once, without enabling the plugin.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autofarm status``
|
2022-07-18 14:49:51 -06:00
|
|
|
Prints status information, including any defined thresholds.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autofarm default <number>``
|
2022-07-18 14:49:51 -06:00
|
|
|
Sets the default threshold.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autofarm threshold <number> <type> [<type> ...]``
|
2022-07-18 14:49:51 -06:00
|
|
|
Sets thresholds of individual plant types.
|
|
|
|
|
|
|
|
You can find the identifiers for the crop types in your world by running the
|
|
|
|
following command::
|
|
|
|
|
|
|
|
lua "for _,plant in ipairs(df.global.world.raws.plants.all) do if plant.flags.SEED then print(plant.id) end end"
|
|
|
|
|
2022-07-20 00:11:02 -06:00
|
|
|
Examples
|
|
|
|
--------
|
2022-07-18 14:49:51 -06:00
|
|
|
|
2022-07-23 17:03:40 -06:00
|
|
|
``autofarm default 30``
|
2022-07-18 14:49:51 -06:00
|
|
|
Set the default threshold to 30.
|
2022-07-23 17:03:40 -06:00
|
|
|
``autofarm threshold 150 MUSHROOM_HELMET_PLUMP GRASS_TAIL_PIG``
|
2022-07-18 14:49:51 -06:00
|
|
|
Set the threshold for Plump Helmets and Pig Tails to 150
|