DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.87k stars 472 forks source link

Quick command appears not working (gui/quickcmd) #4998

Open pavsad opened 1 week ago

pavsad commented 1 week ago

Steam DF v50.14 & DFHack v50.14-r1.1

When i create any quick command and then try to run it - nothing happens except screen blinking.

Steps to reproduce:

  1. Open gui/quickcommand - Ctrl+Shift+A
  2. Add a command, for example exterminate
  3. Try to run it either by pressing its hotkey or LMB - nothing. Quick commands list window just collapses

Tried on two different forts in two different worlds including freshly created one.

Screenshot 2024-10-09 213636

ChrisJohnsen commented 1 week ago

I don't think any of those commands have any in-game UI that would be displayed after running them, and gui/quickcmd doesn't show command output in-game like gui/launcher does. Any output from gui/quickcmd commands will go to the DFHack console.

On Windows you can run the DFHack show command to reveal the console window. The "Hide console on startup" setting in the Preferences tab of gui/control-panel controls the default console visibility.

On Linux, the tty from which DF was launched should be the DFHack console.

If you want gui/launcher's in-game output display for quick commands, you could try using commands like gui/launcher -m exterminate (the -m is optional and starts the launcher minimized to a single line instead of its normal window). Running gui/launcher with arguments like that pre-populates its command line, but it doesn't run the command. You will have to press Enter after the quick command's key to cause the launcher to run the command (e.g. Control-Shift-a a Enter).

pavsad commented 1 week ago

The result of running extermiante via gui/launcher --minimal (Ctrl+Shif+P): Screenshot 2024-10-10 145507

The similar windows appear also after all the commands from the initial message screenshot. Isn't in-game UI?

If yes - then isn't natural to except those windows would be shown after running those commands from gui/quickcmd window?