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 modules not working, new folder not created? #114

Closed modzy2 closed 1 year ago

modzy2 commented 1 year ago

Describe the bug

hud core seems to have created the new directory in Data, but no directory of the world name under that. Not sure if the backslash instead of forward slash is involved

token-action-hud-core.min.js:1 Uncaught (in promise) ENOENT: no such file or directory, mkdir '/media/pi/HIRESAUDIO1/FDATA10/Data/token-action-hud-core\stormwreck' (anonymous) @ token-action-hud-core.min.js:1 await in (anonymous) (async)

call @ foundry.js:724

call @ foundry.js:706 (anonymous) @ token-action-hud-dnd5e.min.js:1

call @ foundry.js:724

callAll @ foundry.js:681 (anonymous) @ token-action-hud-core.min.js:1

call @ foundry.js:724

callAll @ foundry.js:681 setupGame @ foundry.js:7952 await in setupGame (async)
_initializeGameView @ foundry.js:8999 _initializeView @ foundry.js:8975 initialize @ foundry.js:7825 await in initialize (async)
🎁call_wrapped @ libWrapper-wrapper.js:507 🎁libWrapperInit @ libWrapper-api.js:805 await in 🎁libWrapperInit (async)
🎁Game.prototype.initialize#0 @ libWrapper-wrapper.js:187 window.addEventListener.once @ foundry.js:79693

Steps to reproduce

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

Versions:

Additional context Any additional context.

Larkinabout commented 1 year ago

Well, that's a weird one as it creates the directories okay on my side. It should check and try to create the directories everytime you reload the world. Does it throw that error everytime?

modzy2 commented 1 year ago

yes I logged off and on a few times, still getting that error and nothing created inside the token-action-hud-core folder in "data"

Larkinabout commented 1 year ago

Would you be able to create a new world and see if that one has the same issue?

modzy2 commented 1 year ago

yes, same error.

Larkinabout commented 1 year ago

What hardware/OS are you hosting on?

MarcoDaddix commented 1 year ago

Hello, same problem here. It iseems there is something wrong with directory creation. I suspect the \ directory is causing the issue. Files are not synced when using an external repository (like one drive ie). I am using a MacOs. MacOS use the / for directory changes, unlike windows. So I think it's OS related with the usage of slashes and backslashes for directories

Of course, I tried new worlds and existing ones

Larkinabout commented 1 year ago

Looks like Windows accepts either case, so I'll swap them around. Hopefully, I don't have to try and determine which case to use based on the OS.

MarcoDaddix commented 1 year ago

Don't worry I'm online right now, I can confirm in about minutes :)

Larkinabout commented 1 year ago

Hopefully fixed in Token Action HUD Core 1.4.2.

MarcoDaddix commented 1 year ago

Confirmed: it works now. Directories are created correctly now. Thanks :)