update docs for generated-creature-renamer

develop
myk002 2022-07-25 16:54:28 -07:00
parent eb0f016804
commit 367ac0064e
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
2 changed files with 22 additions and 19 deletions

@ -1,15 +1,23 @@
generated-creature-renamer generated-creature-renamer
========================== ==========================
Automatically renames generated creatures, such as forgotten beasts, titans, Tags:
etc, to have raw token names that match the description given in-game. :dfhack-keybind:`list-generated`
:dfhack-keybind:`save-generated-raws`
The ``list-generated`` command can be used to list the token names of all Automatically renames generated creatures. Now, forgotten beasts, titans,
generated creatures in a given save, with an optional ``detailed`` argument necromancer experiments, etc. will have raw token names that match the
to show the accompanying description. description given in-game instead of unreadable generated strings.
The ``save-generated-raws`` command will save a sample creature graphics file in Usage:
the Dwarf Fortress root directory, to use as a start for making a graphics set
for generated creatures using the new names that they get with this plugin.
The new names are saved with the save, and the plugin, when enabled, only runs once ``enable generated-creature-renamer``
per save, unless there's an update. Rename generated creatures when a world is loaded.
``list-generated [detailed]``
List the token names of all generated creatures in the loaded save. If
``detailed`` is specified, then also show the accompanying description.
``save-generated-raws``
Save a sample creature graphics file in the Dwarf Fortress root directory to
use as a start for making a graphics set for generated creatures using the
new names that they get with this plugin.
The new names are saved with the world.

@ -27,17 +27,12 @@ DFhackCExport command_result plugin_init(color_ostream &out, std::vector <Plugin
commands.push_back(PluginCommand( commands.push_back(PluginCommand(
"list-generated", "list-generated",
"Prints a list of generated creature tokens.", "Prints a list of generated creature tokens.",
list_creatures, list_creatures));
false, //allow non-interactive use
"Use \"list-generated detailed\" to show descriptions."
));
commands.push_back(PluginCommand( commands.push_back(PluginCommand(
"save-generated-raws", "save-generated-raws",
"Saves a graphics raw file to use with the renamed generated creatures.", "Exports a graphics raw file for the renamed generated creatures.",
save_generated_raw, save_generated_raw));
false, //allow non-interactive use return CR_OK;
"Creates graphics_procedural_creatures.txt, with a full set of creature graphics definitions for all possible generated beasts. Modify the resulting file to suit your needs."
)); return CR_OK;
} }
DFhackCExport command_result plugin_shutdown(color_ostream &out) DFhackCExport command_result plugin_shutdown(color_ostream &out)