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,813
Reaction score
7,885
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 Profile Posts

FastFood in my country is neither fast nor cheap like it's expected to be, but people still buy a lot of it. I don't want to imagine how much of it people would eat if it was.
Started finishing up my bosses and characters...I don't know how long...but its going to take long...

I ended up needing to do a chapter one world map remake. It's still WIP but coming along nicely. =D
Stream will be live shortly! I will be beginning a play-through of Resident Evil 4! Feel free to drop by!

1st iteration on castle interior in Tiled.

Forum statistics

Threads
107,752
Messages
1,031,891
Members
139,895
Latest member
jdulay
Top