2022-07-10 00:01:46 -06:00
|
|
|
dwarfmonitor
|
|
|
|
============
|
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/inspection`, `tag/units`
|
2022-07-25 00:08:44 -06:00
|
|
|
:dfhack-keybind:`dwarfmonitor`
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-25 00:08:44 -06:00
|
|
|
:index:`Measure fort happiness and efficiency.
|
|
|
|
<dwarfmonitor; Measure fort happiness and efficiency.>` Also show heads-up
|
|
|
|
display widgets with live fort statistics.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-25 00:08:44 -06:00
|
|
|
Usage:
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-25 11:22:42 -06:00
|
|
|
``enable dwarfmonitor``
|
|
|
|
Enable the plugin.
|
2022-07-25 00:08:44 -06:00
|
|
|
``dwarfmonitor enable <mode>``
|
|
|
|
Start tracking a specific facet of fortress life. The ``mode`` can be
|
|
|
|
"work", "misery", "date", "weather", or "all". This will show the
|
|
|
|
corresponding on-screen widgets, if applicable.
|
|
|
|
``dwarfmonitor disable <mode>``
|
|
|
|
Stop monitoring ``mode`` and disable corresponding widgets.
|
|
|
|
``dwarfmonitor stats``
|
|
|
|
Show statistics summary.
|
|
|
|
``dwarfmonitor prefs``
|
|
|
|
Show summary of dwarf preferences.
|
|
|
|
``dwarfmonitor reload``
|
|
|
|
Reload the widget configuration file (``dfhack-config/dwarfmonitor.json``).
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-25 00:08:44 -06:00
|
|
|
Widget configuration
|
|
|
|
--------------------
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-25 00:08:44 -06:00
|
|
|
The following types of widgets (defined in
|
|
|
|
:file:`hack/lua/plugins/dwarfmonitor.lua`) can be displayed on the main fortress
|
|
|
|
mode screen:
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-25 00:08:44 -06:00
|
|
|
``misery``
|
|
|
|
Show overall happiness levels of all dwarves.
|
|
|
|
``date``
|
|
|
|
Show the in-game date.
|
|
|
|
``weather``
|
|
|
|
Show current weather (e.g. rain/snow).
|
|
|
|
``cursor``
|
|
|
|
Show the current mouse cursor position.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
|
|
|
The file :file:`dfhack-config/dwarfmonitor.json` can be edited to control the
|
2022-07-25 00:08:44 -06:00
|
|
|
positions and settings of all widgets. This file should contain a JSON object
|
|
|
|
with the key ``widgets`` containing an array of objects:
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-25 00:24:35 -06:00
|
|
|
.. code-block:: lua
|
2022-07-10 00:01:46 -06:00
|
|
|
|
|
|
|
{
|
|
|
|
"widgets": [
|
|
|
|
{
|
|
|
|
"type": "widget type (weather, misery, etc.)",
|
|
|
|
"x": X coordinate,
|
|
|
|
"y": Y coordinate
|
|
|
|
<...additional options...>
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
X and Y coordinates begin at zero (in the upper left corner of the screen).
|
|
|
|
Negative coordinates will be treated as distances from the lower right corner,
|
|
|
|
beginning at 1 - e.g. an x coordinate of 0 is the leftmost column, while an x
|
2022-07-25 00:08:44 -06:00
|
|
|
coordinate of -1 is the rightmost column.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
|
|
|
By default, the x and y coordinates given correspond to the leftmost tile of
|
|
|
|
the widget. Including an ``anchor`` option set to ``right`` will cause the
|
|
|
|
rightmost tile of the widget to be located at this position instead.
|
|
|
|
|
|
|
|
Some widgets support additional options:
|
|
|
|
|
|
|
|
* ``date`` widget:
|
|
|
|
|
|
|
|
* ``format``: specifies the format of the date. The following characters
|
|
|
|
are replaced (all others, such as punctuation, are not modified)
|
|
|
|
|
|
|
|
* ``Y`` or ``y``: The current year
|
|
|
|
* ``M``: The current month, zero-padded if necessary
|
|
|
|
* ``m``: The current month, *not* zero-padded
|
|
|
|
* ``D``: The current day, zero-padded if necessary
|
|
|
|
* ``d``: The current day, *not* zero-padded
|
|
|
|
|
|
|
|
The default date format is ``Y-M-D``, per the ISO8601_ standard.
|
|
|
|
|
|
|
|
.. _ISO8601: https://en.wikipedia.org/wiki/ISO_8601
|
|
|
|
|
|
|
|
* ``cursor`` widget:
|
|
|
|
|
|
|
|
* ``format``: Specifies the format. ``X``, ``x``, ``Y``, and ``y`` are
|
|
|
|
replaced with the corresponding cursor cordinates, while all other
|
|
|
|
characters are unmodified.
|
|
|
|
* ``show_invalid``: If set to ``true``, the mouse coordinates will both be
|
|
|
|
displayed as ``-1`` when the cursor is outside of the DF window; otherwise,
|
|
|
|
nothing will be displayed.
|