Larkinabout / fvtt-token-action-hud-core

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

[BUG] hud-core cannot read 'executeAsGM' #113

Closed farling42 closed 1 year ago

farling42 commented 1 year ago

Describe the bug HUD-Core generates an error, and TAH does not appear in the list of modules in the Configure Game Settings window.

token-action-hud-core.min.js:1 Uncaught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'executeAsGM') [Detected 1 package: token-action-hud-core]

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Versions:

Additional context Any additional context.

image

farling42 commented 1 year ago

This error was caused because the socketlib module was not enabled, but I didn't get a warning tell me that socketlib was required.

Larkinabout commented 1 year ago

Yeah, Foundry VTT doesn't seem to warn about required modules when a module is enabled by the requirement of another module. I'll look at handling it in the module itself to show a message when socketlib is not installed/disabled.

farling42 commented 1 year ago

I may have enabled the game-specific module, which would prompt to automatically enable the HUD-Core, but Foundry V10 doesn't then prompt to also install HUD-Core's dependencies. Apparently V11 should handle this situation properly.

Larkinabout commented 1 year ago

Added message in Token Action HUD Core 1.4.1.