Larkinabout / fvtt-token-action-hud-core

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

[BUG] Uncaught (in promise) Error: Directory does not exist... #202

Closed Shadow-355 closed 2 months ago

Shadow-355 commented 9 months ago

Describe the bug The module doesn't appear to be running properly at all and is tossing an uncaught error in the console. image

Steps to reproduce

  1. Launch Game
  2. Press F12 to open the console.
  3. Click on any actor or token.
  4. See error

Versions:

Additional context I have already attempted Foundry with only the Core, 5E, and socketlib modules installed, but the problem still persists... I'm unsure what is causing the issue. I also attempted to use a different browser, Edge, but this also didn't work. My final attempt to fix the issue was to reinstall the modules, which didn't seem to fix it either.

I've attached the console log from that session in case that helps to diagnose the issue. The error occurs in the console at line 169. ActionHud Error.log

madseumas commented 9 months ago

For a workaround you can try going to Foundry's settings menu (Game Settings->Configure Settings), then Token Action HUD Core, then Layouts, and "Reset All Layouts". I think I had that happen to me before and was able to get rid of the error that way.

Shadow-355 commented 9 months ago

I'll give that a try and report back, thanks!

Shadow-355 commented 9 months ago

That didn't seem to work, I received this error when I attempted that. The HUD still didn't display. image

Shadow-355 commented 8 months ago

I managed to hotfix the issue. By creating the missing folder directories, mainly the "/Data/modules/token-action-hud-core/storage/vonkora/actor" and "/Data/modules/token-action-hud-core/storage/vonkora/user" folders, the module began working again without issue.

While this doesn't fix the odd underlying issue of the problem occurring in the first place, at least the issue can be fixed by creating those folders manually. I wonder if those folders can be automatically created to replace them in the event they are deleted in the future.

Larkinabout commented 8 months ago

While this doesn't fix the odd underlying issue of the problem occurring in the first place, at least the issue can be fixed by creating those folders manually. I wonder if those folders can be automatically created to replace them in the event they are deleted in the future.

That does already happen on reload: token-action-hud-core-directory-creation

Shadow-355 commented 8 months ago

Strange. They weren't automatically created in my case, I'm unsure why that occurred. On the bright side, it's now working without issue now that the folders are present.