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
33,371
Reaction score
8,394
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

Could not for the life of me figure out how to implement the dual/triple techs in Touch the Stars in a player-friendly way. Was describing all the problems to my wife and just rubber-ducked a solution that should work brilliantly.
I think I'm going to make each equippable item in my fantasy RPG grant a skill while its worn (in addition to the character's learned skills). Equipped gear that might be weaker in stats can still be useful in certain situations if the skill they grant exploits a weakness or resists a strength in the monsters being fought. This could potentially open up lots of build strategies to play with for fun.
:kaojoy:
A lot of those cool RPGs allow players to import their own portraits.
Thus, we shall have that, too. :kaojoy:
Finally, deleted my Reddit account
I cant say I dont regret it, I honestly liked FMA subreddit, but nah, reddit succs
What was the worst (most difficult) part of developing your game?

Forum statistics

Threads
113,836
Messages
1,077,829
Members
147,899
Latest member
broglione
Top