mrcomac / token-action-hud-swade

FoundryVTT Token Action HUD for Savage Worlds
MIT License
5 stars 4 forks source link

Token Action HUD not persisting click setting #30

Closed steveculshaw closed 8 months ago

steveculshaw commented 8 months ago

Every time the players login, they can NOT click on the various HUD buttons. If they go to Configure Settings, Token Action HUD SWADE and just click Save Changes, the HUD works again.

There's an error thrown when they try and click on the HUD buttons (see below). This goes away when they do the Save Changes.

Interestingly, I DO NOT have this problem when I'm logged in as GM.

Uncaught (in promise) Error: This is not a registered game setting
    at ClientSettings.get (foundry.js:3339:42)
    at BR2RollHandler._get_behaviour (token-action-hud-swade.min.js:1:11303)
    at BR2RollHandler._rollItem (token-action-hud-swade.min.js:1:11461)
    at BR2RollHandler.handleActionClick (token-action-hud-swade.min.js:1:8551)
    at BR2RollHandler.handleActionClickCore (roll-handler.js:53:22)
    at actionClick (token-action-hud.js:336:34)
    at HTMLDivElement.<anonymous> (token-action-hud.js:471:13)
    at HTMLDivElement.dispatch (jquery.min.js:2:43184)
    at y.handle (jquery.min.js:2:41168)
image

Versions:

mrcomac commented 8 months ago

I think I know what happened. Thank you for letting me know.

After save the configuration once, does the error persist?

On Sun 3 Dec 2023, 14:00 Steve Culshaw, @.***> wrote:

Every time the players login, they can NOT click on the various HUD buttons. If they go to Configure Settings, Token Action HUD SWADE and just click Save Changes, the HUD works again.

There's an error thrown when they try and click on the HUD buttons (see below). This goes away when they do the Save Changes.

Interestingly, I DO NOT have this problem when I'm logged in as GM.

Uncaught (in promise) Error: This is not a registered game setting at ClientSettings.get (foundry.js:3339:42) at BR2RollHandler._get_behaviour (token-action-hud-swade.min.js:1:11303) at BR2RollHandler._rollItem (token-action-hud-swade.min.js:1:11461) at BR2RollHandler.handleActionClick (token-action-hud-swade.min.js:1:8551) at BR2RollHandler.handleActionClickCore (roll-handler.js:53:22) at actionClick (token-action-hud.js:336:34) at HTMLDivElement. (token-action-hud.js:471:13) at HTMLDivElement.dispatch (jquery.min.js:2:43184) at y.handle (jquery.min.js:2:41168)

image.png (view on web) https://github.com/mrcomac/token-action-hud-swade/assets/64320/2e718236-acc1-4242-aec2-84a78b0ac246

Versions:

  • Token Action HUD Core: 1.5.2
  • Token Action HUD SWADE: 0.9.2
  • Swade System: 3.2.5
  • Foundry VTT: 11.315
  • Browser: Google Chrome 119.0.6045.160 and Edge 119.0.2151.93

— Reply to this email directly, view it on GitHub https://github.com/mrcomac/token-action-hud-swade/issues/30, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTPTMX5UR4YXVPULDWBNDDYHSAXPAVCNFSM6AAAAABAEZZ346VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDENJTGE3DEOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mrcomac commented 8 months ago

v0.9.3 should fix this issue.

steveculshaw commented 8 months ago

Looks good ... many thanks for quick response