Larkinabout / fvtt-token-action-hud-core

Token Action HUD is a repositionable HUD of actions for a selected token.
13 stars 19 forks source link

[BUG] Hud no longer visible, disapeared or is hidden #109

Closed dafzor closed 1 year ago

dafzor commented 1 year ago

Describe the bug The HUD is no longer visible in my normal campaign. Starting a new campain with just the HUD mod will work however.

When using the H shortcut key i get the following error:

token-action-hud-core.min.js:1  Uncaught TypeError: undefined. Cannot read properties of undefined (reading 'toggleHud')
[Detected 1 package: token-action-hud-core]
    at Object.onDown (token-action-hud-core.min.js:1:30981)
    at KeyboardManager._executeKeybind (foundry.js:2150:66)
    at KeyboardManager._processKeyboardContext (foundry.js:2191:33)
    at KeyboardManager._handleKeyboardEvent (foundry.js:2249:10)
    at foundry.js:1873:54

Steps to reproduce

  1. Open regular campaign
  2. Press H

Versions:

Additional context It was previously working, unloading all mods except HUD does not resolve the issue.

Larkinabout commented 1 year ago

Hi @dafzor, can you please try running the following in a macro script?: game.settings.set('token-action-hud-core', 'visible', true)

Larkinabout commented 1 year ago

Sorry, meant 'visible' not 'enable'.

dafzor commented 1 year ago

Running it as a macro of the type script had no apparent effect.

Running it in the development console outputted this:

game.settings.set('token-action-hud-core', 'enable', true)
Promise { <state>: "fulfilled", <value>: true }

Tried it with a player and GM user.

Any file i can provide that would make it easier to debug? maybe the world folder?

Larkinabout commented 1 year ago

Sorry I messed up the instruction originally. Replace 'enable' with 'visible'.

dafzor commented 1 year ago

My apologies for not noticing, that said same result.

game.settings.set('token-action-hud-core', 'visible', true)
Promise {<fulfilled>: true}
Larkinabout commented 1 year ago

That should have made the HUD visible if it was previously set to invisible by the hotkey. If that didn't work there must be other errors. Can you enable debugging for the module via the module setting and post the output when you click on a token.

Larkinabout commented 1 year ago

Also, have you disabled the 'Toggle HUD' hotkey?

Larkinabout commented 1 year ago

Hi @dafzor, in the latest release I have relocated the toggle to toggle the 'Enable HUD' module setting instead of a hidden setting. Can you see if this release resolves your issue?

dafzor commented 1 year ago

With core 1.3.2 and dnd 1.3.1 I had the hud show up again, just with it's position reset (usually i line it up on the bottom).

I have no idea what happened, I noticed if I load as a player alone it still happens but i believe I tested with both gm and regular player accounts.

The new version also working the same so for now it seems resolved.

Before closing I just wanted o confirm, does the reset button also ensures the bar is in the viewable area of the window?

Larkinabout commented 1 year ago

Yes, the 'Reset HUD' module setting resets the position of the HUD.

dafzor commented 1 year ago

Since i can't reproduce the issue any more, I'll close. thanks for your time and patience.