2022-07-10 00:01:46 -06:00
|
|
|
.. _stocksettings:
|
|
|
|
|
|
|
|
stockpiles
|
|
|
|
==========
|
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/stockpiles`
|
2022-07-31 14:29:53 -06:00
|
|
|
:dfhack-keybind:`copystock`
|
|
|
|
:dfhack-keybind:`savestock`
|
|
|
|
:dfhack-keybind:`loadstock`
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-31 14:29:53 -06:00
|
|
|
Import and export stockpile settings. When the plugin is enabled, the :kbd:`q`
|
|
|
|
menu of each stockpile will have an option for saving or loading the stockpile
|
|
|
|
settings. See `gui/stockpiles` for an in-game interface.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-31 14:29:53 -06:00
|
|
|
Usage:
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-31 14:29:53 -06:00
|
|
|
``enable stockpiles``
|
|
|
|
Add a hotkey that you can hit to easily save and load settings from
|
|
|
|
stockpiles selected in :kbd:`q` mode.
|
|
|
|
``copystock``
|
|
|
|
Copies the parameters of the currently highlighted stockpile to the custom
|
|
|
|
stockpile settings and switches to custom stockpile placement mode,
|
|
|
|
effectively allowing you to copy/paste stockpiles easily.
|
|
|
|
``savestock <filename>``
|
|
|
|
Saves the currently highlighted stockpile's settings to a file in your
|
|
|
|
Dwarf Fortress folder. This file can be used to copy settings between game
|
|
|
|
saves or players.
|
|
|
|
``loadstock <filename>``
|
|
|
|
Loads a saved stockpile settings file and applies it to the currently
|
|
|
|
selected stockpile.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-31 14:29:53 -06:00
|
|
|
Filenames with spaces are not supported. Generated materials, divine metals,
|
|
|
|
etc. are not saved as they are different in every world.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-31 14:29:53 -06:00
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
``savestock food_settings.dfstock``
|
|
|
|
Export the stockpile settings for the stockpile currently selected in
|
|
|
|
:kbd:`q` mode to a file named ``food_settings.dfstock``.
|
|
|
|
``loadstock food_settings.dfstock``
|
|
|
|
Set the selected stockpile settings to those saved in the
|
|
|
|
``food_settings.dfstock`` file.
|