Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Error Message When Testing First Browser Game

MinisterJay

Administrator
Staff member
Administrator
I get the following error message, when I click on the deployed HTML index file, when testing a browser game.

Error.png

Is this typical? I checked, and the data/Actors.json file is there.

Thanks,
Jay
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
I'm pretty sure it's typical behavior, in order to test your game it needs to be on a server. Well, from my knowledge of programming games in another engine it requires to be setup to a local server. A simple solution would be to use this app, I find it really easy to setup and use, http://fenixwebserver.com/ It creates a local server where you can test your games inside your browser. Hope this helps.
 

Dad3353

Praised Adventurer
...or, if you're using Chrome, you could try this as a 'bat' file...

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files "E:/ProgramData/RPGMV/Projects\Depl/Web/Rachdale_Cheese/www/index.html"

Adjust the paths, of course to match your own. This allows Chrome to override its wariness of local files. It works for me.
 

MinisterJay

Administrator
Staff member
Administrator
I found out that all itch.io needs is the zipped browser deployment files uploaded and it works. I mostly use Windows Edge for my personal browsing. I did download the fenixwebserver, it would give me an "Error: Your browser does not support Web Audio API" message, when file was dropped upon it.
 

MinisterJay

Administrator
Staff member
Administrator
I am running Windows Edge, the newest browser that comes with Windows 10. it shows as a green 14 on the Can I Use Web Audio API. I may be using Fenix improperly.

Uploading to itch.io and having the game play properly has been solved. It is the testing of the deployment that is giving challenges. Now I see that if the Windows deployment is functioning properly then the web browser deployment may function without testing.
 
This is VERY typical of most browsers. It has something to do with security protocols not being able to run "live" sites locally, or something like that. Sites like itch.io are very useful. However, if you want to test locally, you still can. Firefox is the only browser to date that I've found to enable local testing. Alternatively, try the Avant browser, which isn't as resource-hungry as Firefox tends to be. You can use it to switch to Firefox (kinda emulated) and test-run your RMMV files. I tend to self-host my projects, mostly test projects so far, so need to pre-test first, also with a bit of layout tweaking to the page itself.
 

Boy Who Codes

Praised Adventurer
Xy$
0.00
This is VERY typical of most browsers. It has something to do with security protocols not being able to run "live" sites locally, or something like that. Sites like itch.io are very useful. However, if you want to test locally, you still can. Firefox is the only browser to date that I've found to enable local testing. Alternatively, try the Avant browser, which isn't as resource-hungry as Firefox tends to be. You can use it to switch to Firefox (kinda emulated) and test-run your RMMV files. I tend to self-host my projects, mostly test projects so far, so need to pre-test first, also with a bit of layout tweaking to the page itself.
Have you ever tried hosting it in an actual web hosting site if it works? I was thinking if that was possible, but I think it should be. What I mean is having all the working files transferred via FileZilla for example, to a free webhosting site.
 
Have you ever tried hosting it in an actual web hosting site if it works? I was thinking if that was possible, but I think it should be. What I mean is having all the working files transferred via FileZilla for example, to a free webhosting site.
I have been successful, yes. Uploaded it to RPG Maker Times MV Fun, which is specifically a test site for live testing. You probably won't have much luck with many free sites, as they mostly tend to have their own limitations. I've heard that Google Drive can be used to upload and play a game, but I've not tried that. GitHub as well maybe, with a bit of tweaking. It all depends on other things, like whether the free (shared) hosts can handle or allow high traffic/bandwidth.

I'm hosting the entire RPG Maker Times (blog and subdomains) on Dreamhost, which does allow direct FTP transfer. The reason I eventually upgraded was because, with a lot of these free sites, most of them are shared servers so playtesting uploaded MV games often resulted in frequent downtime due to exceeded bandwidth and server stress. FTP uploading apparently contributes towards this, so larger files (ZIPped or otherwise) tend to eat away at it, putting on that weight and stress oftentimes. Only because it WAS a shared server. I haven't regretted upgrading to a dedicated server.

You can use Firefox or Avant for testing MV games locally or online if they're "raw". Many sites like the aforementioned itch.io or Kongregate work with ZIPped uploads, but tend to err with larger filesizes.
 
Top