You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have 2 games for example: Castle-Raider and Platformer I want to place them inside there own folder in wwwroot.
I have tried to put the folder name before the path inside the html file for javascript so that the game engine can find the code, example:
original url: script type="text/javascript" src="html5game/Platormer.js?cachebust=1764260222"
MY URL: script type="text/javascript" src="~/Platformer/html5game/Platformer.js?cachebust=1764260222" script
inside the wwwroot/Platformer/html5game/Platformer.js
but when I do that i get a lot of errors inside the development console in different browsers. So is there a solution to put in a custom folder for each different game?
i need that to have the possibilty to host several games in 1 hosting. Accesable through a game menu.
I have tried to put this on your forum but I get a lot of errors there too with the message oops we are running into troubles look at the console window, but that full of errors.
Please help with my problems.
Thanks in advance
Wernand
Which version of GameMaker are you reporting this issue for?
IDE v2024.11.0.179 Runtime v2024.11.0.227
Which operating system(s) are you seeing the problem on?
This is not a bug with GameMaker itself, but one in your project, so I will close this issue now. For coding support, please visit the GameMaker Community forum and create a thread there, asking for advice.
Description
Hi dear game developers,
I have a hosting with a wwwroot folder.
When I have 2 games for example: Castle-Raider and Platformer I want to place them inside there own folder in wwwroot.
I have tried to put the folder name before the path inside the html file for javascript so that the game engine can find the code, example:
original url: script type="text/javascript" src="html5game/Platormer.js?cachebust=1764260222"
MY URL: script type="text/javascript" src="~/Platformer/html5game/Platformer.js?cachebust=1764260222" script
or
<script type="text/javascript" src="Platformer/html5game/Platformer.js?cachebust=1764260222"></script>inside the wwwroot/Platformer/html5game/Platformer.js
but when I do that i get a lot of errors inside the development console in different browsers. So is there a solution to put in a custom folder for each different game?
i need that to have the possibilty to host several games in 1 hosting. Accesable through a game menu.
I have tried to put this on your forum but I get a lot of errors there too with the message oops we are running into troubles look at the console window, but that full of errors.
Please help with my problems.
Thanks in advance
Wernand
Which version of GameMaker are you reporting this issue for?
IDE v2024.11.0.179 Runtime v2024.11.0.227
Which operating system(s) are you seeing the problem on?
Windows 10.0.26100.0
Which platform(s) are you seeing the problem on?
HTML5
2a3a4d23-08e7-4d7b-94f9-e8974aeda899
The text was updated successfully, but these errors were encountered: