Game doesn't work on web browser

Status
Not open for further replies.

Shiro1994

Villager
Member
Joined
Aug 1, 2015
Messages
28
Reaction score
6
First Language
German
Primarily Uses
RMMZ
Hello.

I followed every step on the manual so that I could play my game in the browser (I use google chrome).

However, it doesn't work. There is always a message "Failed to load: data/Actors.json".

I found only one topic here in this forum where Yami suggested that installing http://www.wampserver.com/en/ would help but it didn't help at all.

Now I even have the problem that when I want to open google chrome I get the message "Google Chrome is unresponsive. Relaunch now?" And it doesn't open at all. (Edit: I was able to fix that after all...)

I just want to be able to play my games in a browser to share it and I just wanted to test it but it doesn't work at all. I'm really at a loss now...

Please help >.<

I would appreciate it a lot.
 
Last edited by a moderator:

Faytless

recently unemployed Kung Fu Master
Veteran
Joined
Jan 27, 2013
Messages
244
Reaction score
164
First Language
English
Primarily Uses
N/A
Can you upload your project somewhere for me to test for you? 

I can upload it on my file server to see if it works to begin with.

I think you can upload via dropbox and get it to work there

but if you zip your project up for me I can give you a little more information
 
Last edited by a moderator:

Shiro1994

Villager
Member
Joined
Aug 1, 2015
Messages
28
Reaction score
6
First Language
German
Primarily Uses
RMMZ
Here is the Link: Test Game    (It doesn't really have content I just wanted to test how the web browser work)

Maybe I'm doing something wrong, but I don't know what...

Thank you for your support!
 
Last edited by a moderator:

KisaiTenshi

Veteran
Veteran
Joined
Oct 24, 2015
Messages
310
Reaction score
124
Just a reminder that you can use Firefox as well on the Windows deployment (not the Mobile deployment for whatever reason.) Just click and drag the index.html file to it.

Chrome requires --allow-access-from-files as a command-line parameter.
 
Last edited by a moderator:

Shiro1994

Villager
Member
Joined
Aug 1, 2015
Messages
28
Reaction score
6
First Language
German
Primarily Uses
RMMZ
And how do I make it available for everybody in a browser like it was shown in the promotional page of RPG Maker MV where you could play the game in the browser?

There was an example game by enterbrain, I played it.

And where do I have to input this command in Chrome to make it work? (I'll try out firefox...)

Edit: I tried Firefox and now I get this:

NS_ERROR_DOM_BAD_URI

Access to restricted URI denied

I don't know what I did wrong :/
 
Last edited by a moderator:

Faytless

recently unemployed Kung Fu Master
Veteran
Joined
Jan 27, 2013
Messages
244
Reaction score
164
First Language
English
Primarily Uses
N/A
Standby,  I'm running my tests... Sorry its taking me so long, i just got home from work
 

KisaiTenshi

Veteran
Veteran
Joined
Oct 24, 2015
Messages
310
Reaction score
124
And how do I make it available for everybody in a browser like it was shown in the promotional page of RPG Maker MV where you could play the game in the browser?

There was an example game by enterbrain, I played it.

And where do I have to input this command in Chrome to make it work? (I'll try out firefox...)

Edit: I tried Firefox and now I get this:

NS_ERROR_DOM_BAD_URI

Access to restricted URI denied

I don't know what I did wrong :/
As I said, local use on firefox only seems to work when you do Windows Deployment. When you do Mobile deployment it gives this error. Chrome requires creating a shortcut:

On Windows Operating System

Get the url of your Chrome Installation path to your chrome installation e.g C:\Users\-your-user-name\AppData\Local\Google\Chrome\Application>

Launch the Google Chrome browser from the command line window with the additional argument ‘–allow-file-access-from-files’. E.g ‘path to your chrome installation\chrome.exe --allow-file-access-from-files’

Temporary method you can use each time you are testing

- Copy the existing chrome launcher

- Do as above and save it with a new name e.g chrome - testing

- Alternatively, you can simply create a new launcher with the above and use it to start chrome.
 
Last edited by a moderator:

Faytless

recently unemployed Kung Fu Master
Veteran
Joined
Jan 27, 2013
Messages
244
Reaction score
164
First Language
English
Primarily Uses
N/A
http://tomsdevblog.net/www/index.html

I uploaded your project to my website.  I didn't make any special changes to it --  You have to allow the assets to fully load before you get a decent run.  So the good news is that there is nothing wrong with your project. 

Let me see if I can get drop box hosting to work
 
Last edited by a moderator:

Shiro1994

Villager
Member
Joined
Aug 1, 2015
Messages
28
Reaction score
6
First Language
German
Primarily Uses
RMMZ
How do I allow the assets to fully load? ~ This is my first time doing something like this, sorry for my noobiness
 
Last edited by a moderator:

Faytless

recently unemployed Kung Fu Master
Veteran
Joined
Jan 27, 2013
Messages
244
Reaction score
164
First Language
English
Primarily Uses
N/A
you just let it sit.  You're constant downloading your project so its dependent on your internet connection.  Does this work for you?

You can follow the above posters instructions to see if you can get it to work offline.. but youre going to have to at some point find a host that

can put it up for you.

I leave your project on my website for as long as you want it too.  I tried uploading your project to drop box without much luck.  They seem to want 10$ a month to enable a public folder, unless I'm doing something wrong.

It's cheaper to just rent a website host lol
 

terwilliker

Veteran
Veteran
Joined
Jul 25, 2014
Messages
49
Reaction score
1
Primarily Uses
Sometimes you need to refresh the browser to load all of the JavaScript from MV. Also, install a local web server since JavaScript security may break otherwise. I use abyss server - http://www.aprelium.com/abyssws/.
 

the-exp

Warper
Member
Joined
Oct 24, 2015
Messages
3
Reaction score
2
First Language
English
You're trying to play it from your local machine using a web browser, there's all kinds of security restrictions in play preventing files from loading.

What you want to be doing is playing it from a server. Easiest/best way to do this? Sign up for and download dropbox. 

Drag your entire 'www' folder into your public dropbox folder, and right click the index.html file and select 'get public link'. Once all your files are sync'd to dropbox's servers, that link will play exactly as if it's being hosted online.

The best part about this is if you deploy to your public dropbox folder, it will update all the files there automatically, meaning your link always has an up to date version of the game on it.

For example, here is a game I've got sitting in my public dropbox folder right now.

https://dl.dropboxusercontent.com/u/7226513/www/index.html
 

Shiro1994

Villager
Member
Joined
Aug 1, 2015
Messages
28
Reaction score
6
First Language
German
Primarily Uses
RMMZ
Woa! Thanks a lot! :)

I think now I'm able to play it on a web browser by myself. I'll definitly try the dropbox solution out since it seems the easiest way.

@faytless you can take the game down from your page, thanks for showing me that it works. xD

Thanks for the help to all of you. :)
 

Faytless

recently unemployed Kung Fu Master
Veteran
Joined
Jan 27, 2013
Messages
244
Reaction score
164
First Language
English
Primarily Uses
N/A
You're trying to play it from your local machine using a web browser, there's all kinds of security restrictions in play preventing files from loading.

What you want to be doing is playing it from a server. Easiest/best way to do this? Sign up for and download dropbox. 

Drag your entire 'www' folder into your public dropbox folder, and right click the index.html file and select 'get public link'. Once all your files are sync'd to dropbox's servers, that link will play exactly as if it's being hosted online.

The best part about this is if you deploy to your public dropbox folder, it will update all the files there automatically, meaning your link always has an up to date version of the game on it.

For example, here is a game I've got sitting in my public dropbox folder right now.

https://dl.dropboxusercontent.com/u/7226513/www/index.html
Did you have to pay any fees?  Drop box won't let me enable my public folder unless I pay them monthly ;/
 

Point08

Veteran
Veteran
Joined
Feb 10, 2015
Messages
123
Reaction score
119
First Language
English
Did you have to pay any fees?  Drop box won't let me enable my public folder unless I pay them monthly ;/
I believe in 2013(?) that Dropbox changed to the current method of sharing files, and when they did that they got rid of the Public Folder option for all new users, except for Pro and Business. In other words, if you joined after they changed the sharing method, then to my knowledge, you can't get a Public Folder without paying.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,418
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
The games can be played locally with several browsers, so far only chrome and IE have some settings to prevent that (no problems with firefox for example)
 

Val

Veteran
Veteran
Joined
Oct 12, 2015
Messages
281
Reaction score
168
First Language
Français
Primarily Uses
Hi I'm able to put my files on google drive to try to test my game online, but when I load the index.html the page stay black :(

how can I know that something is loading? Do I need to change something because I'm using plugins in my game? 

I don't have any message of error or nothing. I just let the page open for several minutes and nothing happening.

can you help me please ! :)  
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,418
Reaction score
7,709
First Language
German
Primarily Uses
RMMV
Val, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


If you have a problem, make a new topic because in most cases the details are different

Hi I'm able to put my files on google drive to try to test my game online, but when I load the index.html the page stay black :(
Which files exactly did you put on Google Drive?
What you describe can either be a problem with missing files, or due to the load/sync problem you'll get doing that: MV runs in a webbrowser, and having a webbrowser load its file from an internet cloud drive can cause a lot of access or redirect problems depending on how googledrive works


Please post the details in a new topic, because I'm closing this as it is not about your error.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Posts

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,191
Members
137,772
Latest member
Kirakirna
Top