dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

twaterlvl.lua obsolete

Open Bumber64 opened this issue 1 year ago • 3 comments

The water level indicator can be toggled in vanilla since v50. Script can probably be deleted.

fix/dead-units.lua might be now (v50.11?), too, though there could be a use-case for running it manually.

Bumber64 avatar Mar 04 '24 17:03 Bumber64

Can the water level be toggled programmatically or with a single keypress in v50? If not, I would keep the script.

lethosor avatar Mar 04 '24 18:03 lethosor

Can the water level be toggled programmatically or with a single keypress in v50? If not, I would keep the script.

The script is just df.global.d_init.flags1.SHOW_FLOW_AMOUNTS = not df.global.d_init.flags1.SHOW_FLOW_AMOUNTS.

Keybind is df.interface_key.D_TOGGLE_FLUID_NUMBERS.

Bumber64 avatar Mar 04 '24 21:03 Bumber64

fix/dead-units.lua might be now (v50.11?), too, though there could be a use-case for running it manually.

fix/dead-units is still needed -- the "original" functionality of purging dead units from the list is partially covered by vanilla. However the vanilla functionality only kicks in after 3 years, so players may want to run fix/dead-units to cull the list. In addition, the recently added "--burrows" option fixes a current bug where deceased units are not removed from burrows and the counts the game displays for how many units are assigned to the burrow incorrectly increases over time. This option is run by default as a "bugfix' option in gui/control-panel.

Can the water level be toggled programmatically or with a single keypress in v50? If not, I would keep the script.

Yeah, it's just f now: image I think we can probably remove twaterlvl. if we need the convenience of a simple command, we can turn it into an API call

myk002 avatar Mar 06 '24 05:03 myk002