You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 082d707
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/changelog.txt
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ Template for new versions:
33
33
## New Features
34
34
35
35
## Fixes
36
+
- ``Units::setPathGoal``: no longer crashes when passed NULL as a unit. Also fixes ``dfhack.units.setPathGoal()``.
36
37
37
38
## Misc Improvements
38
39
@@ -80,6 +81,7 @@ Template for new versions:
80
81
- Fixed out-of-bounds color table access in ``Screen`` module when Lua pens use ``COLOR_RESET``
81
82
- ``Units::teleport``: update unit occupancy on the full 3x3 footprint of EQUIPMENT units (e.g. wagons) instead of only their center tile
82
83
- ``Units::teleport``: only clear tile unit occupancy flags when no other unit of the same kind remains on the tile
84
+
- ``Units::isCitizen`` and ``Units::isResident`` now exclude dead units even when ``include_insane`` is set; the flag previously skipped the sanity check that also happened to exclude the dead
83
85
- `3dveins`: fix crash when a tile's biome cannot be resolved
84
86
- `3dveins`: fix failure on embarks that cross midmap tiles
85
87
- `aquifer`: make ``--skip-top`` and top-relative ``--levels`` take effect for the ``drain``, ``convert``, and ``add`` actions instead of being silently ignored
@@ -89,9 +91,15 @@ Template for new versions:
89
91
- `buildingplan`: fix roller material estimate asking for one chain per tile instead of one chain total
90
92
- `buildingplan`: fix "Unlink all" only unlinking some mechanisms (or crashing) when freeing mechanisms from the building
91
93
- `burrow`: fix ``tiles clear`` and other tile operations silently failing because burrow block z-coordinates were stored incorrectly in the ``Burrows`` module
94
+
- `dfhack-run`: on Windows, no longer mutates, hides, and closes the console it inherits when run from an existing terminal (issue #3827)
95
+
- `dig-now`: update light/outside flags of tiles below tiles that are dug into solid rather than open tiles
92
96
- `export-world-map`: fix crash exporting site data for a site whose owner has an undefined race
93
97
- `gui/quickfort`: show smoothing designations immediately after applying a blueprint
98
+
- `liquids`: allow painting liquids and obsidian into unallocated sky blocks
99
+
- `liquids`: update light/outside flags of covered tiles when painting obsidian or river sources
94
100
- `overlay`: overlay hotkeys no longer steal typed characters while the game is capturing text input, e.g. when renaming a building
101
+
- `preserve-rooms`: no longer assigns zones to dead units who still hold a noble position
102
+
- `sort`: the clickable stress icon citizen lists no longer include dead or missing units (issue #5975)
95
103
- `sort`: fix the Places/Workshops and task searches missing workshops by their current display names (e.g. "Stoneworker's Workshop", "Screw Press")
96
104
- `stocks`: overlay now resets scroll position when collapsing categories so the item list is no longer left blank and unscrollable
97
105
- `strangemood`: updated to match behavior of current DF version
@@ -101,27 +109,33 @@ Template for new versions:
101
109
- `stocks`: overlay now resets scroll position when collapsing categories so the item list is no longer left blank and unscrollable
102
110
- `strangemood`: fix crash when ``--id`` is given a non-numeric unit id
103
111
- `suspendmanager`: fix out-of-bounds parameter read when ``set`` is given too few arguments
112
+
- `probe`: fix malformed output of local/global map feature names
104
113
105
114
## Misc Improvements
106
115
- Added ``Coord2d`` and ``Coord3d`` C++ templates, providing a standard set operations for 2-tuples and 3-tuples of any numeric type
107
116
- Renamed the ``stockpiles`` tool tag to ``stockpile`` so it no longer collides with the `stockpiles` plugin in `gui/launcher`
117
+
- Writes to ``stderr.log`` are no longer buffered on Windows, so log output is not lost if DF crashes
108
118
109
119
## Documentation
110
120
- Document ``autodump-destroy-here``. Remove mention of ``autodump destroy`` able to revert destruction.
111
121
112
122
## API
123
+
- Added ``Maps::getTileBlockCoord``, ``Maps::getBlockOrigin``, and ``Maps::getTileBlockOffset`` to convert between tile and block coordinates
113
124
- Added ``Maps::getSiteTypeName`` to print the sites classification as a string (e.g. "mountain halls")
114
125
- Added ``Maps::addRegionBiomeOffset`` to shift world region coordinate by region_details biome reference
115
126
- Added ``Maps::describeSurroundings`` to get surroundings classification from savagery and evilness
116
127
- Added ``Maps::getCurrentWeather`` to determine the current weather on the map.
117
128
- Added ``Maps::forEachTile`` with ``Maps::TileFilter``/``Maps::TileActions`` to scan a cuboid of tiles, matching tiles by tiletype, tiletype attributes, and designation/occupancy bits, and counting, rewriting tiletypes, editing designation/occupancy bits, spawning constructions, or invoking a callback on matching tiles
129
+
- Added ``MapExtras::MapCache::propagateVerticalFlags`` to update the light/outside/subterranean flags of tiles below a tile that changed between an open and a solid shape
118
130
- Added ``MiscUtils::print_range`` to print ranges with prefix, separator, and suffix
119
131
- Added ``Units::breathes`` and ``Units::getBreathingState``
120
132
- Deprecated ``World::ReadCurrentWeather`` in favor of ``Maps::getCurrentWeather``
121
133
122
134
## Lua
123
135
- Added ``dfhack.maps.forEachTile`` to scan a cuboid of tiles with a declarative filter and apply actions (count, set tiletype or per-tiletype replacements, set designation/occupancy fields, spawn constructions, Lua callback) in a single native call
124
136
- ``widgets.Slider`` and ``widgets.RangeSlider``: fix sliders allowing values outside their number of stops (``num_stops``) when clicked or dragged with the mouse
137
+
- Fixed ``ipairs()`` on enum attribute tables (e.g. ``df.item_type.attrs``) never terminating (issue #1860)
138
+
- Added ``dfhack.maps.getTileBlockCoord``, ``dfhack.maps.getBlockOrigin``, and ``dfhack.maps.getTileBlockOffset`` to convert between tile and block coordinates
125
139
126
140
## Removed
127
141
@@ -177,6 +191,7 @@ Template for new versions:
177
191
- `EventManager`: add safety check to potentially avoid a DFHack crash when DF's ``reports`` table is out of order
178
192
179
193
## Documentation
194
+
- ``dfhack.translation.generateName``: added a table containing explanations and data types for each of the parameters
180
195
181
196
## API
182
197
- ``DFSDL``: added ``obtain_library_handle`` and ``obtain_image_library_handle`` so that a plugin can obtain DFHack's already-open handle to these libs instead of having to do it itself.
- | Integer value of the name type. This ensures that the generated name will be appropriate for the given category of object. For allowed values see ``df.language_name_type`` enum.
1095
+
|
1096
+
|Example values:
1097
+
|``df.global.world.entities.all[100].name.type``
1098
+
|``df.unit.find(79).name.type``
1099
+
|``dfhack.gui.getSelectedUnit().name.type``
1100
+
|``df.language_name_type.Figure``
1101
+
|``13``
1102
+
- ``df.language_name_type``
1103
+
* - ``major_selector``
1104
+
- | Section of the loaded game raws containing words used for generating the name.
1105
+
|
1106
+
|Example value for sites belonging to civ with id 100:
0 commit comments