Skip to content

Commit 14d8e8f

Browse files
authored
Merge pull request #1364 from myk002/myk_rename
new tool: `gui/rename`
2 parents ba581c4 + 02ef7ff commit 14d8e8f

File tree

4 files changed

+969
-122
lines changed

4 files changed

+969
-122
lines changed

changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ Template for new versions:
2828

2929
## New Tools
3030
- `fix/stuck-squad`: allow squads and messengers returning from missions to rescue squads that have gotten stuck on the world map
31+
- `gui/rename`: (reinstated) give new in-game language-based names to anything that can be named (e.g. units, governments, fortresses, or the world)
3132

3233
## New Features
3334
- `gui/settings-manager`: new overlay on the Labor -> Standing Orders tab for configuring the number of barrels to reserve for job use (so you can brew alcohol and not have all your barrels claimed by stockpiles for container storage)
3435
- `gui/settings-manager`: standing orders save/load now includes the reserved barrels setting
36+
- `gui/rename`: add overlay to worldgen screen allowing you to rename the world before the new world is saved
3537

3638
## Fixes
3739
- `fix/dry-buckets`: don't empty buckets for wells that are actively in use

docs/gui/rename.rst

Lines changed: 83 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,96 @@ gui/rename
22
==========
33

44
.. dfhack-tool::
5-
:summary: Give buildings and units new names, optionally with special chars.
6-
:tags: unavailable
5+
:summary: Edit in-game language-based names.
6+
:tags: adventure fort productivity animals items units
77

8-
Once you select a target on the game map, this tool allows you to rename it. It
9-
is more powerful than the in-game rename functionality since it allows you to
10-
use special characters (like diamond symbols), and it also allows you to rename
11-
enemies and overwrite animal species strings.
8+
Once you select a target (by clicking on something on the game map, by passing
9+
a commandline parameter, or by using the selection dialog) this tool allows you
10+
change the language of the name, generate a new random name, or replace
11+
components of the name with your preferred words.
1212

13-
This tool supports renaming units, zones, stockpiles, workshops, furnaces,
14-
traps, and siege engines.
13+
`gui/rename` provides an interface similar to the in-game naming panel that you
14+
can use to customize your fortress name at embark. That is, it allows you to
15+
choose words from an in-game language to assemble a name, just like the default
16+
names that the game generates. You will be able to assign units new given and
17+
last names, or even rename the world itself.
18+
19+
You can run `gui/rename` while on the "prepare carefully" embark screen to
20+
rename your starting dwarves.
21+
22+
Start typing to search for a word. You can search in English, in the selected
23+
native language, or by the part of speech. Click on a word to assign it to the
24+
selected name component slot. You can also clear or randomize each individual
25+
name component slot.
26+
27+
When giving a name to a unit that didn't previously have a name, you must
28+
assign a word to the First Name slot. Otherwise, the game will not display the
29+
name for the unit.
1530

1631
Usage
1732
-----
1833

34+
::
35+
36+
gui/rename [<options>]
37+
38+
The selection dialog will appear if no options are provided. You can
39+
interactively choose one of the following to rename:
40+
41+
- An artifact on the current map
42+
- A location (e.g. tavern, hospital, guildhall, temple) on the current map
43+
- The current fortress (or adventurer site)
44+
- A squad belonging to the current fortress
45+
- A unit on the current map
46+
- The world
47+
48+
Examples
49+
--------
50+
1951
``gui/rename``
20-
Renames the selected building, zone, or unit.
21-
``gui/rename unit-profession``
22-
Set the unit profession or the animal species string.
52+
Load the selected artifact, location, or unit for renaming. If nothing is
53+
selected, you can select a target from a list.
54+
``gui/rename -u 123 --no-target-selector``
55+
Load the unit with id ``123`` for renaming and remove the widget that
56+
allows selecting a different target.
57+
``gui/rename --location 2 --site 456``
58+
Load the location with "abstract building" ID ``2`` attached to the site
59+
with id ``456`` for renaming.
60+
61+
Options
62+
-------
63+
64+
Targets specified via these options do not need to be on the local map.
65+
66+
``-a``, ``--artifact <id>``
67+
Rename the artifact with the given item ID.
68+
``-e``, ``--entity <id>``
69+
Rename the historical entity (e.g. site government, world religion, etc)
70+
with the given ID.
71+
``-f``, ``--histfig <id>``
72+
Rename the historical figure with the given ID.
73+
``-l``, ``--location <id>``
74+
Rename the location (e.g. tavern, hospital, guildhall, temple) with the
75+
given ID. If this option is used, ``--site`` can be specified to indicate
76+
locations attached to a specific site. If ``--site`` is not specified, the
77+
location will be loaded from the current site.
78+
``-q``, ``--squad <id>``
79+
Rename the squad with the given ID.
80+
``-s``, ``--site <id>``
81+
Rename the site with the given ID.
82+
``-u``, ``--unit <id>``
83+
Rename the unit with the given ID. Renaming a unit also renames the
84+
associated historical figure.
85+
``-w``, ``--world``
86+
Rename the current world.
87+
``--no-target-selector``
88+
Do not allow the player to switch naming targets. An option that sets the
89+
initial target is required when using this option.
2390

24-
Screenshots
25-
-----------
91+
Overlays
92+
--------
2693

27-
.. image:: /docs/images/rename-bld.png
94+
This tool supports the following overlays:
2895

29-
.. image:: /docs/images/rename-prof.png
96+
``gui/rename.world``
97+
Adds a widget to the world generation screen for renaming the world.

0 commit comments

Comments
 (0)