Failing to load images for no reason in mobile export

Hi!

Deployed games are giving me load picture errors that are making me lose my hair off.

1676673005549.png


Deployed mobile builds keep giving me these load errors even though the actual images exist in their proper places. This one, for example, is used by no plugin. It is simply a character image. It only happens in exports targeted to webview. I am testing my builds in Gamejolt.

I searched the forums but found no similar problems (just the basic stuff). Did anyone ever come accross this issue?
This error can also be caused by capitalisation errors (only for windos the filename a.png is the same ad A.png, everywhere else that are two different files) or if the folderpath above the file breaks networking rules (and again it is only windows where the local overrides for things like spaces work)

So what is the actual filename in your directory, taking capitalisation into account?
Yes. The file is named exactly as it is in this error message. It makes no sense.

And it is not just with this one. It throws the same error on few random images, all of which are written correctly, including the capitalisation.

This does not happen in windows exports, just web ones...
What is the folder path of your project?
What is the folder path of your project?

For the browser tests in gamejolt I zip the www folder. The rest of the structure is the standard img/characters/ "image.png"
Please answer every question fully.
we can't help you without details.

And you have made a mistake somewhere, or the error would not have happened. Telling us "everything is correct as checked" is obviously wrong somewhere, so to help you check we need to see what you really have.
After all you could simply have overlooked the mistake wrongly assuming it to be correct - happened to almost everyone at one time or another. For example there was a math test where I didn't realise I calculated 1*2=3 in five checks for finding the cause of a mistake, simply because I never assumed I could have made that primitive an error.

So I suggest you give a screenshot of your characters folder with the adress line to the folder included, just for us to check if there is no other possible mistake there.
You are right. Here is the image where it should be:

1676720987939.png
For local play, the spaces above your project folder would still cause problems - test play removes that with a virtual folderpath, but as soon as you start a local exe in your folder that "1) Dino Hazard Franchise" would become part of the adress line for the browser.

However that has nothing to do with your current problem, if you only send an archive of the project itself to gamejolt.

I think this requires more bughunting.
Especially we will need the full error message and error trace from that screen.

1) If you play it in a browser, please open that browser's developer console or developer tools through its menu when the error message is on the screen. Then make sure that the console tab is selected (the elements that come up as default are useless), and make a screenshot of the entire error trace there.

2) If you don't play in a browser then you might have to use a plugin to force the trace output.
I think yanfly's latest core plugin adds that to the regular error message without causing too many other changes, can you try to use that?
Hi, Andar!

I managed to fix the specific vehicle image problem by removing any references to it in the Editor System menu. I have no idea why, but it was fixed.

Other images still return the error. Right now, custom menu backgrounds called by rito's and mog's custom backgrounds are causing game breaks in the browser. I have no idea why? Are there character length limits for browser game image names?

I am going to copy the error and paste in this post below:

1676727179227.png


The link for the Scene_Options_[Original].png in the browser is "https://cdn-files-browser.gamejolt....804/img/pictures/Scene_Options_[Original].png"
Ah, 403 errors, that makes sense. Are you trying to run the web version on your local PC? Because that probably won't work: it will be run on a regular browser, which does not allow any local files to be loaded. If you upload this to a website and play from there it should work fine though.

If you want to be able to quickly test web deploys locally you can create your own very simple server to host it, e.g. using https://simplewebserver.org/.

EDIT: I'm not sure how Gamejolt works, but maybe try running that as administrator? That could also solve that, depending on what exactly that program does.
Ah, 403 errors, that makes sense. Are you trying to run the web version on your local PC? Because that probably won't work: it will be run on a regular browser, which does not allow any local files to be loaded. If you upload this to a website and play from there it should work fine though.

If you want to be able to quickly test web deploys locally you can create your own very simple server to host it, e.g. using https://simplewebserver.org/.

EDIT: I'm not sure how Gamejolt works, but maybe try running that as administrator? That could also solve that, depending on what exactly that program does.

Thanks for the reply! I am using the local server now, as you suggested.

On GameJolt I am editing the test project as administrator and only user.

**Update: Everything works fine in the local server. No image load bug. The question that remains is if that will happen in the exported mobile or console versions (using webview).

Do those webviewers read data with full adm access?
Thanks for the reply! I am using the local server now, as you suggested.

On GameJolt I am editing the test project as administrator and only user.

**Update: Everything works fine in the local server. No image load bug. The question that remains is if that will happen in the exported mobile or console versions (using webview).

Do those webviewers read data with full adm access?
So, to clarify, did this fix your problem? 🙂

EDIT: I see I just got ninja-edited. I'm not sure what kind of tool are you using to export them, but I'm guessing it probably has something to handle this - the only problem is when trying to run the game with a regular browser. And I don't think that you actually need administrator access for this, I simply figured it might be worth trying just in case that was the problem.
Do those webviewers read data with full adm access?
they usually don't need to.

giving admin access to the reader or program is just a shortcut to see if something is blocked by wrong access settings, and then the results would be processed to solve the original problem instead of giving everyone full access.
Thank you both. The problem was solved.

Original thread: https://forums.rpgmakerweb.com/threads/failing-to-load-images-for-no-reason-in-mobile-export.155056/