RMMV: Browser Failed to Load {filename here}

Hello everyone. Browser Clients are  experiencing extremely long load times on our deployed browser game files.  Especially map type files are very prone to this problem.  However, sometimes its small size files, and sometimes not.  Right now, the failed to load [filename] errors happen nearly every time we have a " now loading ..."  msg appear and its never the same files that error.

Thanks for any help you all can give,

RF
I've moved this thread to MV Deployment. Please be sure to post your threads in the correct forum next time. Thank you.


What plugins do you have active? What size are these files that are failing most frequently?
I am sorry for the misplaced post...

I will try to get the programmer for the game in here to answer your questions.

I am just one of his testers.

RF
Hello - I'm the dev. There's actually a lot of loaded plugins. Riflefire hasn't picked up any sort of pattern in the files that fail to load - sometimes it's a sound, sometimes it's an image, sometimes a map fails to load.

Here's a rectangular selection of my current plugins.js:

"name":"YEP_CoreEngine","status":true,"description":"v1.03 Nee"name":"YEP_MessageCore","status":true,"description":"v1.02 Ad"name":"YEP_EquipCore","status":true,"description":"v1.03 Allo"name":"YEP_BattleEngineCore","status":true,"description":"v1."name":"YEP_BattleAICore","status":true,"description":"v1.00 T"name":"--------------------","status":false,"description":"--"name":"animatedSVEnemies","status":true,"description":"Versio"name":"animatedSVEnemiesYanflyEnginePatch","status":true,"des"name":"--------------------","status":false,"description":"--"name":"YEP_SkillCore","status":true,"description":"v1.06a Ski"name":"YEP_X_SkillCostItems","status":true,"description":"v1."name":"--------------------","status":false,"description":"--"name":"YEP_ItemCore","status":true,"description":"v1.17 Chang"name":"YEP_ItemSynthesis","status":true,"description":"v1.01"name":"--------------------","status":false,"description":"--"name":"YEP_ExtraEnemyDrops","status":true,"description":"v1.0"name":"CXJ_Exit","status":true,"description":"Adds an exit op"name":"AltSaveScreen","status":false,"description":"Alternati"name":"GamepadConfig","status":true,"description":"v1.00 Allo"name":"KeyboardConfig","status":true,"description":"v1.00 All"name":"MenuMouseScroll","status":true,"description":"Enable m"name":"FPSLimit","status":true,"description":"Limits game ref"name":"Responsive","status":false,"description":"v1 Automatic"name":"FWS_VideoConfig","status":false,"description":"Change"name":"TDDP_PreloadManager","status":false,"description":"1.1"name":"YEP_SaveEventLocations","status":true,"description":"v"name":"YEP_GabWindow","status":true,"description":"v1.03a TheResponsive is a plugin of my own design, found on these forums.

I'm currently using GoDaddy to host the game. I suspect the issue is the unusual way that RPGM loads files - doesn't work well with poor internet connections. I've noticed the issue myself when using my iPhone (unfortunately, without the dev tools of a full browser, I can't debug on it 🙁 ). The issue never happens on my broadband connection / gaming PC.

My current line of thinking is actually to add some sort of loading system that includes trying to load a resource more than once if loading a resource fails. I'm already aware that loading can be modified because of the existence of TDDP_PreloadManager (and I've tested it with the preload manager on and off - it doesn't fix the problem, only seems to affect when it happens).

Any insight would be welcome 🙂 . It's kinda frustrating that RPGM MV games seem to be fragile if placed onto a standard web server.
Hello - I'm the dev. There's actually a lot of loaded plugins. Riflefire hasn't picked up any sort of pattern in the files that fail to load - sometimes it's a sound, sometimes it's an image, sometimes a map fails to load.

Here's a rectangular selection of my current plugins.js:

"name":"YEP_CoreEngine","status":true,"description":"v1.03 Nee"name":"YEP_MessageCore","status":true,"description":"v1.02 Ad"name":"YEP_EquipCore","status":true,"description":"v1.03 Allo"name":"YEP_BattleEngineCore","status":true,"description":"v1."name":"YEP_BattleAICore","status":true,"description":"v1.00 T"name":"--------------------","status":false,"description":"--"name":"animatedSVEnemies","status":true,"description":"Versio"name":"animatedSVEnemiesYanflyEnginePatch","status":true,"des"name":"--------------------","status":false,"description":"--"name":"YEP_SkillCore","status":true,"description":"v1.06a Ski"name":"YEP_X_SkillCostItems","status":true,"description":"v1."name":"--------------------","status":false,"description":"--"name":"YEP_ItemCore","status":true,"description":"v1.17 Chang"name":"YEP_ItemSynthesis","status":true,"description":"v1.01"name":"--------------------","status":false,"description":"--"name":"YEP_ExtraEnemyDrops","status":true,"description":"v1.0"name":"CXJ_Exit","status":true,"description":"Adds an exit op"name":"AltSaveScreen","status":false,"description":"Alternati"name":"GamepadConfig","status":true,"description":"v1.00 Allo"name":"KeyboardConfig","status":true,"description":"v1.00 All"name":"MenuMouseScroll","status":true,"description":"Enable m"name":"FPSLimit","status":true,"description":"Limits game ref"name":"Responsive","status":false,"description":"v1 Automatic"name":"FWS_VideoConfig","status":false,"description":"Change"name":"TDDP_PreloadManager","status":false,"description":"1.1"name":"YEP_SaveEventLocations","status":true,"description":"v"name":"YEP_GabWindow","status":true,"description":"v1.03a TheResponsive is a plugin of my own design, found on these forums.

I'm currently using GoDaddy to host the game. I suspect the issue is the unusual way that RPGM loads files - doesn't work well with poor internet connections. I've noticed the issue myself when using my iPhone (unfortunately, without the dev tools of a full browser, I can't debug on it 🙁 ). The issue never happens on my broadband connection / gaming PC.

My current line of thinking is actually to add some sort of loading system that includes trying to load a resource more than once if loading a resource fails. I'm already aware that loading can be modified because of the existence of TDDP_PreloadManager (and I've tested it with the preload manager on and off - it doesn't fix the problem, only seems to affect when it happens).

Any insight would be welcome 🙂 . It's kinda frustrating that RPGM MV games seem to be fragile if placed onto a standard web server.
I actually predicted this problem would happen way back in November.

First of all, you need to understand how "current" webbrowsers and web servers work, and how they are going to change in the future.

1) Your web browser will only pull 2 files per subdomain, and then block until one of those files complete. Since there are a lot of files involved in loading a MV game, you may wish to utilize multiple subdomains (eg content1.example.com , content2.example.com) but this is not best practice, as HTTP 2.0 will actually implement de-facto pipelining, which would eliminate this kind of issue.

2) You should be using a content delivery network if it's in release-mode. Hence my deep pockets comment back then, because it will not be a pleasant experience for the host nor the users if you just place the game on the host and hope for the best. In addition to this, the web server, either via .htaccess rules or configuration needs to allow for aggressive caching (eg use the etags, not just last-modified times) where the game client must be allowed to use stale versions of the content if the server isn't responsive.

A lot of "website optimization" information out there is wrong. This is because websites are a moving target, and what was standard practice 3 years ago might be completely backwards now. For starters:

Back in 1998 or whatever, web servers were optimized for text, not images, so a lot of default settings, even today, in apache httpd and nginx reflect the attitude of the day. Bulk-hosting environments often run everything stock because it's not going to make them any more money to actually tune your site. If you don't have control over the physical machine, consider it a lost cause and try to leverage Cloudflare as a content delivery network instead.

Proxy systems (eg Cloudflare) that operate as a passive content delivery network, have file-size limits, For CloudFlare this is 512MB per file. They generally focus on static content, and if the site isn't busy enough or configured correctly, the content will be purged before it's of any use.

Without suggesting redesigning the game (most of the loading time is the map itself) to have small maps, the other option is to "make it smaller" with compression. All webbrowsers support zlib or gzip compression, so do all web servers, but as I mentioned two paragraphs ago, all web servers are setup like it's 1998, and compression is often turned off. That doesn't mean you need to let the web server do it, no you can actually pre-compress the files yourself as long as the module is installed (it usually is, but that depends on the host.) 

So a 1MB map file turns into 40KB. That saves a noticeable amount of time. However graphics and music can't be compressed any further than they start out as, so that's where you have to get creative and use small chunks of audio (For example, music used by Square-Enix PC ports are often only a minute long unless it's a cutscene.)

But there's not much you can do inside of MV to cut the loading time if you wish to host it. You can tune the server for aggressive caching but that still doesn't eliminate limitations imposed by the server or web browser client. 
Humm, Thank you for the reply.


I can't afford a CDN, so it appears this will be for testing only, sigh. I guess the final distribution will have to be as regular downloadable software.


The modifications to the .htaccess file did work for making the game compressed. You hinted at a possible way to pre-compress the files? I do have access to 7Zip, which should be able to compress better than the on-the-fly compression. What kind of setup am I looking at for that?


Also, is there a way to check or enable pipelining in HTTP 1.1? Can the dev tools in IE, Chrome, or Firefox tell me if a connection was pipelined?
Pipelining is available in HTTP 1.1 browsers and servers, but it's normally turned off, so using it isn't reliable (sites that properly implement it work OK, but it requires a LOT more testing, and simply telling users to enable it won't cut it.)


This is an acceptable solution for pre-compressing


http://stackoverflow.com/questions/9589670/apache-htaccess-serve-precompressed-font-face-fonts


You can also swap out ttf for json in that and it will work with maps. To compress the files make sure they are gzipped individually, and not tar'd first. The browser will request a gzip'd version first and if not fall back to the uncompressed version.


Also Cloudflare CDN is free, but it has a few drawbacks, mostly political.
Sorry to ressurect this post, but it got my interest.


What about Application cache? Wouldn't it be a good solution for games as long as they're not constantly updated?
The Application Cache makes your "web" application into an offline "web page", that is viable only in production mode. Once enabled the web browser will NEVER touch your website ever again once it downloads all the files specified in the cache manifest. So if you make a mistake, you have to update the cache manifest and that will cue the web browser to re-download all the files again.


The down-side of using it, is that you can't navigate outside the Application either. I once setup an offline webcomic this way and, well, yes it works exactly as described, and it's more of a sandbox. So every single resource you need must be specified in the manifest.


I'd recommend only trying it after your game is completely done, because there is no way to ensure that beta testers are all seeing the same version. Plus the app cache only works as an offline site on Mobile. On a desktop it behaves like a "Chrome Web Store" item, hence the user will only be able to access the offline mode if they know where it's stored.
The Application Cache makes your "web" application into an offline "web page", that is viable only in production mode. Once enabled the web browser will NEVER touch your website ever again once it downloads all the files specified in the cache manifest. So if you make a mistake, you have to update the cache manifest and that will cue the web browser to re-download all the files again.


The down-side of using it, is that you can't navigate outside the Application either. I once setup an offline webcomic this way and, well, yes it works exactly as described, and it's more of a sandbox. So every single resource you need must be specified in the manifest.


I'd recommend only trying it after your game is completely done, because there is no way to ensure that beta testers are all seeing the same version. Plus the app cache only works as an offline site on Mobile. On a desktop it behaves like a "Chrome Web Store" item, hence the user will only be able to access the offline mode if they know where it's stored.



Although more complicated and needed of attention, it seems to be a good solution for web hosted games. Since the game is already being heavily downloaded, why not save it on the player machine? Not only would reduce or probably halts loading time but also would reduce server traffic.


And yes, i agree, only when the game is finished and polished. On beta testing is better not to use it.

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-browser-failed-to-load-filename-here.55139/