50.11-r1
版本发布时间: 2023-10-03 15:10:48
DFHack/dfhack最新发布版本:50.11-r2(2023-10-19 23:08:46)
Q: How do I download DFHack?
A: Either add to your Steam library from our Steam page or scroll to the latest release on our GitHub releases page, expand the "Assets" list, and download the file for your platform (e.g. dfhack-XX.XX-rX-Windows-64bit.zip
.
This release is compatible with all 50.10 and 50.11 distributions of Dwarf Fortress: Steam, Itch, and Classic.
Please report any issues (or feature requests) on the DFHack GitHub issue tracker. When reporting issues, please upload a zip file of your savegame and a zip file of your mods
directory to the cloud and add links to the GitHub issue. Make sure your files are downloadable by "everyone with the link". We need your savegame to reproduce the problem and test the fix, and we need your active mods so we can load your savegame. Issues with savegames and mods attached get fixed first!
Highlights
Display furniture item selector, Scrolling for the unit list when embarking
Display furniture item selector
The vanilla screen for choosing which items you want to display on a pedestal or display case requires quite a bit of scrolling and clicking to use. It is also hard to figure out how the items you have assigned will affect the value of the room. There is now an alternate dialog that should make the process much easier and less opaque:
You can search items by name (including book titles), filter by quality (e.g. see only artifacts), and sort by name, value, or where the item is currently assigned for display.
If the pedestal is in a guildhall or temple, there is also a convenient indicator for whether you've added enough value to bump the guildhall or temple to the next tier. For example, if you need to provide your citizens with a grand guildhall, the indicator will change from "Guildhall" to "Grand guildhall" when you've assigned items with enough value.
Scrolling for the unit list when embarking
Some people have already experimented with the newly re-added startdwarf
script, which allows you to change the number of dwarves you embark with, and have found that the DF embark screen doesn't support scrolling for the unit list. This means that if you embark with more dwarves than can fit on your screen, you cannot select them to configure their skills.
We now have a DFHack-added scrollbar so you can scroll up and down through the list and configure each of your extra dwarves:
Note that the vanilla screen was not intended to be scrolled, so the behavior of the list is a little odd. When you select a dwarf to configure, the list will jump so that the dwarf you selected is at the top of the screen. This can be a little disorienting, but the dwarf is still configurable, and all dwarves are accessible.
Announcements
Mouse event definitions have changed for scripts, PSAs
Mouse event definitions have changed for scripts
This only affects modders and players who are writing their own DFHack scripts and who react to mouse events like _MOUSE_L
or _MOUSE_L_DOWN
. Everyone else can skip reading this.
Back in the pre-v50 days, when the mouse was much less used in DF, I made a mistake in how I interpreted DF's handling of mouse button state. The result is that DFHack has been representing mouse state incorrectly to the Lua scripts. This hasn't been much of a problem since all the scripts were written to misinterpret the state the same way. However, now that DFHack tools are integrating more closely with the vanilla DF UI, the difference in interpretation of mouse state is causing conflicts.
The _MOUSE_L
event now correctly fires when the mouse button has just been clicked, and the _MOUSE_L_DOWN
event now correctly fires when the mouse button is held down. The previous definitions were backwards.
If you have written your own script and you refer to mouse events in your onInput(keys)
function, you can update to the new definitions by swapping references to _MOUSE_L
with _MOUSE_L_DOWN
and vice versa. Similarly for _MOUSE_R
and _MOUSE_M
, if you happen to use them. My apologies for breaking scripts. This is something we try not to do very often, though hopefully this change will make up for the hassle by allowing scripts to integrate more smoothly with vanilla DF widgets. Thanks!
PSAs
As always, remember that, just like the vanilla DF game, DFHack tools can also have bugs. It is a good idea to save often and keep backups of the forts that you care about.
Many DFHack tools that worked in previous (pre-Steam) versions of DF have not been updated yet and are marked with the "unavailable" tag in their docs. If you try to run them, they will show a warning and exit immediately. You can run the command again to override the warning (though of course the tools may not work). We make no guarantees of reliability for the tools that are marked as "unavailable".
The in-game interface for running DFHack commands (gui/launcher
) will not show "unavailable" tools by default. You can still run them if you know their names, or you can turn on dev mode by hitting Ctrl-D while in gui/launcher
and they will be added to the autocomplete list. Some tools do not compile yet and are not available at all, even when in dev mode.
If you see a tool complaining about the lack of a cursor, know that it's referring to the keyboard cursor (which used to be the only real option in Dwarf Fortress). You can enable the keyboard cursor by entering mining mode or selecting the dump/forbid tool and hitting Alt-K (the DFHack keybinding for toggle-kbd-cursor
. We're working on making DFHack tools more mouse-aware and accessible so this step isn't necessary in the future.
Generated release notes
New tools, fixes, and improvements
New Tools
-
startdwarf
: (reinstated) set number of starting dwarves -
tubefill
: (reinstated) replenishes mined-out adamantine
New Features
- A new searchable, sortable, filterable dialog for selecting items for display on pedestals and display cases
-
startdwarf
: overlay scrollbar so you can scroll through your starting dwarves if they don't all fit on the screen
Fixes
- EventManager: Unit death event no longer misfires on units leaving the map
-
autolabor
: ensure vanilla work details are reinstated when the fort or the plugin is unloaded -
suspendmanager
: fixed a bug where floor grates, bars, bridges etc. wouldn't be recognised as walkable, leading to unnecessary suspensions in certain cases. -
dfhack.TranslateName()
: fixed crash on certain invalid names, which affectedwarn-starving
Misc Improvements
- EventManager:
- guard against potential iterator invalidation if one of the event listeners were to modify the global data structure being iterated over
- for
onBuildingCreatedDestroyed
events, changed firing order of events so destroyed events come before created events
-
devel/inspect-screen
: display total grid size for UI and map layers -
digtype
:- designate only visible tiles by default, and use "auto" dig mode for following veins
- added options for designating only current z-level, this z-level and above, and this z-level and below
-
hotkeys
:- make the DFHack logo brighten on hover in ascii mode to indicate that it is clickable
- use vertical bars instead of "!" symbols for the DFHack logo in ascii mode to make it easier to read
-
suspendmanager
: now suspends constructions that would cave-in immediately on completion
Lua
- mouse key events are now aligned with internal DF semantics:
_MOUSE_L
indicates that the left mouse button has just been pressed and_MOUSE_L_DOWN
indicates that the left mouse button is being held down. similarly for_MOUSE_R
and_MOUSE_M
. 3rd party scripts may have to adjust.
Structures
- add new global:
start_dwarf_count
1、 dfhack-50.11-r1-Linux-64bit.tar.bz2 16.01MB
2、 dfhack-50.11-r1-Windows-64bit.zip 16.91MB