RPG MAKER MZ problem with loading files on Android

slayer2

Villager
Member
Joined
Feb 28, 2017
Messages
28
Reaction score
0
First Language
spanish
Primarily Uses
RMMV
I am trying to create an application in Android Studio with a test of a RPG Maker MZ game.
It seems to work, because when you start the app it loads the game's index.html file, but it happens the same as when you open that file in the browser. What gives this error:

Mistake
Your browser does not allow reading local files.

I know that this error is normal in browsers and can be solved by changing a security option.

But of course, in Android studio I don't know what to do anymore. I have tried giving read and write permissions, I have implemented the WebView.
The issue is that the app works, but it can't access the game files.
Try with wkwebview-engine from cordova and if it loads the application and the game is seen. But I want to try not using wkwebview-engine to see if it fixes some graphical issues I'm getting.
I've seen on the internet that sometimes, depending on which programs you use to generate the application, it can be better or worse.

If someone can help me and give me ideas of what to do or what commands to enter in the Android studio files to try.

THANK YOU!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
38,473
Reaction score
10,894
First Language
German
Primarily Uses
RMMV
there are basically two different possibilities:

1) the security feature of the browsers as you already mentioned.
the easiest way around that, especially if you want to do a lot of game development, is to either setup a local webserver on your computer (to pretend to the browser that it is on a website) or to have your own server with full FTP access for easy uploads to the internet (which costs a fee, because most of those free hosters have restrictions that made the easy FTP access problematic)

2) some files break the networking rules
Unlikely with that error, but something to watch out for anyway: correct capitalization, no spaces, no special characters, only latin letters and so on.
Yes, modern computers have overrides that force the browsers to handle those forbidden letters - but those overrides are partially problematic even on Windows and become more of a problem when going multi-device deployment.
so it's better to keep your filenames clean from the beginning.
 

Latest Threads

Latest Profile Posts

imgur sure is getting weird, one day I lose gradually all my images, the other I get them back randomly and then again they disappear again.
Despite OPT2 praise it still has some strange stories in it. Lady Mikka is trying to work herself to death because of guilt. Guilt over what? ¯\_(ツ)_/¯ So instead of finding a NPC to have a heart to heart with her they decide the cure is a new kimono. So when she drops dead she'll at least be well dressed. I haven't even got to the strange part yet.
Did so much work on the game today. I wish I could post it all in this status update but there is a character limit of course haha. I thought about making a topic for updates, though... maybe.
The most recent sign that I am old. I have done martial arts for over 4 decades. Never HAD to stretch out. Good, of course, but never required. Was doing some kicks in the kitchen because, why not, and I felt a pop in the back of my thigh. Now I am limping around. Gotta love getting old.
One of the biggest perks of being fluent in English is how many new and interesting recipes I am able to find and try out that I would have hardly come across if I just spoke my mothertounge :3

Forum statistics

Threads
131,683
Messages
1,222,233
Members
173,436
Latest member
Manic_Umbra
Top