How to get game folder's path on web browser

ravenhood

Veteran
Veteran
Joined
Feb 26, 2020
Messages
62
Reaction score
29
First Language
Chinese
Primarily Uses
RMMV
Hi, normally, when i want to access to certain file path, ex: img/minestuff/image.png
I will run require('path') to get game folder path and then join it with the string above to get the file's path.

But if i do so on Web Browser, it will cause error because nodeJs doesn't seem to work on HMTL5 or st, but require no longer work. So, how do i get the path to that file of mine now?
Thank you (T.T) It's so frustrated
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,821
Reaction score
7,887
First Language
German
Primarily Uses
RMMV
on the web, you don't need an absolute path, you can use relative paths.

if you can't use relative paths for whatever reasons, you should explain why in more details and someone might be able to tell you a workaround.
 

Latest Threads

Latest Posts

Latest Profile Posts

I find great satisfaction in smiting spambots. I'm not really sure why.
I finally added my newly updated demo back to the website! It only took like 4 weeks of work...
Where is the "world-weary sigh" comment response when you need it? I need that one more than anything, but the closest we have is "wow" or "angry".
My apologies if it's out-of-place for my goyim-lookin' ass to be the one to say it, but the mythology of "Golems" is that they were created by Rabbis to protect Jewish villages from Anti-semetic attacks.

Forum statistics

Threads
107,775
Messages
1,032,067
Members
139,918
Latest member
Sianar
Top