Testing the game in internet browsers. How to make?

How can I test the web browser game correctly?
My test builds don't run on firefox and chrome, it's a black screen.
Which file should I open in Firefox?
How do I have to configure the game to work?
Could anyone do a tutorial?

I appreciate it if someone can help me.
Open the index.html in Firefox. That's all there is to it.
Black screen usually means some sort of a file loading problem. For example if the filepath to your project contains empty spaces.
If you want to find the exact problem, you need to hit the f12 to open the dev tools and see the console output.
Open the index.html in Firefox. That's all there is to it.
Black screen usually means some sort of a file loading problem. For example if the filepath to your project contains empty spaces.
If you want to find the exact problem, you need to hit the f12 to open the dev tools and see the console output.

F12 In Firefox below.
i6m82r.png


F12 In Visual novel maker below.
10ddwcg.png


Thanks for the answer.
How do I resolve these errors?
I do not know how to solve this.
Black screen usually means some sort of a file loading problem. For example if the filepath to your project contains empty spaces.
If that's the case, make the filepath contain no empty spaces.
How do I resolve these errors?
I do not know how to solve this.
As said above, the engine has problems loading files because the filepath is wrong for HTML-based games.
Please check the fourth yellow line in the first screenshot, it contains the filepath to your game, the one that begins with D:\Jogos\...

Do you see the %20 scattered through it? Every letter or symbol from the path that is replaced by a %nn number combination stands for a letter or symbol that the browser can't handle directly because it is not allowed under networking rules - in this case spaces that were replaced by %20.
You need to rename all folders and all files that contain forbidden letters to no longer contain them. If that includes renaming files, then you also need to change their references inside your game to the new name.
Hi,

you cannot locally run a web-game in a web-browser due to browser security. You can turn that off if you google for it, it depends on the browser. In Firefox it was possible to run games directly for a long time but I think with latest version they changed it in Firefox too now.

This might help: http://testingfreak.com/how-to-fix-...security-cors-error-in-firefox-chrome-and-ie/

But usually, you have to upload your game to a webserver/website or run a local web server.
Thanks for the answers, although I was unable to test ofline in the browser correctly, the game worked online. On the Newgrounds site it is possible to perform the test from the preview generated by the site, if someone is facing this problem, it is a good option to use the preview of their site.

Any tips on save-type choices when building the game? Which is better for web? "Store game data in working directory", "Store game data in App data directory" or "Store game data in internal storage"?
Hi,

you cannot locally run a web-game in a web-browser due to browser security. You can turn that off if you google for it, it depends on the browser. In Firefox it was possible to run games directly for a long time but I think with latest version they changed it in Firefox too now.

This might help: http://testingfreak.com/how-to-fix-...security-cors-error-in-firefox-chrome-and-ie/

But usually, you have to upload your game to a webserver/website or run a local web server.


I decided to do some testing today. And that is exactly what you said. The solution on the link you posted solves the problem.

Original thread: https://forums.rpgmakerweb.com/threads/testing-the-game-in-internet-browsers-how-to-make.112219/