Failed to Load Img (Browser)

I'm using Moghunter's VariableHUD. I get the loading error "Failed to load: img/"
I tried the dekstop version of my game it works right.. but if it's on the browser (itch.io) i get this error.
I can't find any solution. I searched about renaming the file and capitalization, but it doesnt make it work.

Are most of moghunter's plugin not working when compiled in browser?

EDIT : checked inside the plugin.. i think renaming the file with "_gauge" instead of "_Gauge" would fix this

1659685654904.png


okay i observed this.. windows keeps renaming my HUD_1_gauge to HUD_1_Gauge.. maybe its better to change the one inside the plugin
that has most likely nothing to do with moghunter, but with a certain quirk of browsers.

Any file- or foldername to be used in a browser has to follow all networking rules, or the browser will have problems loading the file.
Those rules include (among others) things like no spaces, no special signs, capitalisation is important etc.
An additional problem comes from the fact that in a local environment, the Operating System tries to use overrides to force browsers to load those files. That is why locally you can load files with spaces, although the spaces are replaced with %20 in the adresses.
But those overrides cannot work on a true webserver.

Now your problem can have one of two or three different causes:
1)
the changed folderpath of the itch.io version contains a folder that breaks those rules (unlikely but possible)
2)
your project contains files that break those rules, causing the failed to load as soon as the OS-overrides no longer work.
in that case you need to find the wrong files and correct both the error in the filename itself AND the reference in your game that links to those files. Correcting only one of the two can make the reference pointing to the wrong file, displaying the same error for a different reason. And nothing would show you that the reason for the error is that change and not the original reason.
3)
This is a guess, but I read somewhere that depending on how you upload to itch.io some assistant may or may not repackage the game. If this happened then the game might display the same error despite everything being OK in your version, because the wrong way upload created the error.
But I don't know enough about itch.io to say this could have happened or if they updated their assistents to prevent that or if it no longer apllies.

Original thread: https://forums.rpgmakerweb.com/threads/failed-to-load-img-browser.150111/