Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 367ac00

Browse files
committed
update docs for generated-creature-renamer
1 parent eb0f016 commit 367ac00

2 files changed

Lines changed: 22 additions & 19 deletions

File tree

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
generated-creature-renamer
22
==========================
3-
Automatically renames generated creatures, such as forgotten beasts, titans,
4-
etc, to have raw token names that match the description given in-game.
3+
Tags:
4+
:dfhack-keybind:`list-generated`
5+
:dfhack-keybind:`save-generated-raws`
56

6-
The ``list-generated`` command can be used to list the token names of all
7-
generated creatures in a given save, with an optional ``detailed`` argument
8-
to show the accompanying description.
7+
Automatically renames generated creatures. Now, forgotten beasts, titans,
8+
necromancer experiments, etc. will have raw token names that match the
9+
description given in-game instead of unreadable generated strings.
910

10-
The ``save-generated-raws`` command will save a sample creature graphics file in
11-
the Dwarf Fortress root directory, to use as a start for making a graphics set
12-
for generated creatures using the new names that they get with this plugin.
11+
Usage:
1312

14-
The new names are saved with the save, and the plugin, when enabled, only runs once
15-
per save, unless there's an update.
13+
``enable generated-creature-renamer``
14+
Rename generated creatures when a world is loaded.
15+
``list-generated [detailed]``
16+
List the token names of all generated creatures in the loaded save. If
17+
``detailed`` is specified, then also show the accompanying description.
18+
``save-generated-raws``
19+
Save a sample creature graphics file in the Dwarf Fortress root directory to
20+
use as a start for making a graphics set for generated creatures using the
21+
new names that they get with this plugin.
22+
23+
The new names are saved with the world.

plugins/generated-creature-renamer.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,12 @@ DFhackCExport command_result plugin_init(color_ostream &out, std::vector <Plugin
2727
commands.push_back(PluginCommand(
2828
"list-generated",
2929
"Prints a list of generated creature tokens.",
30-
list_creatures,
31-
false, //allow non-interactive use
32-
"Use \"list-generated detailed\" to show descriptions."
33-
));
30+
list_creatures));
3431
commands.push_back(PluginCommand(
3532
"save-generated-raws",
36-
"Saves a graphics raw file to use with the renamed generated creatures.",
37-
save_generated_raw,
38-
false, //allow non-interactive use
39-
"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."
40-
)); return CR_OK;
33+
"Exports a graphics raw file for the renamed generated creatures.",
34+
save_generated_raw));
35+
return CR_OK;
4136
}
4237

4338
DFhackCExport command_result plugin_shutdown(color_ostream &out)

0 commit comments

Comments
 (0)