ACECORP

Founder & Entrepreneur
Veteran
Joined
Apr 6, 2016
Messages
257
Reaction score
41
First Language
English
Primarily Uses
RMMV
Can anyone from RPG Maker MV or the community who knows about rpg_managers.js speak technical details as to why after making the edits to the rpg_managers.js file and index.html file as shown in the diff checker links below, the game does not load and instead presents a black screen? I am trying to better understand what is actually happening and am hoping some knowledgeable folks can point me in the right direction.

Here are the changes I made to the Index.html code -- https://www.diffchecker.com/NfAauTyk

Here are the changes I made to the rpg_managers.js code -- https://www.diffchecker.com/CCicIznJ

If I just set up a plain vanilla web page, I can get localforage-cordovasqlitedriver working fine - point being that all my script references are correct on index.html.

Since localforage-cordovasqlitedriver is asynchronous the only way to implement it is to integrate it into rpg_managers.js as I have done but that integration breaks the game by preventing it from loading up at the start.

Can anyone provide some insight into why this might happen and how I might get around it? Or can anyone suggest or instruct me on how I might go about debugging this to get at the root cause of it?

I need to find a way to use localforage-sqlitedriver for mobile. It be great if that would be built into a future version of the engine as an option because localstorage is undesirable.

I have a feeling I need to better understand how the objects load from the index.html page to know where to go from here to try and get it implemented.

If anyone has any insight or suggestions that would be fantastic.
 
Last edited:

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,228
Reaction score
11,114
First Language
Czech
Primarily Uses
RMMV
Usually you get told what's wrong if you open the dev tools. To me it looks like you've misplaced the scripts though.

EDIT: Nevermind. You're using await inside synchronous functions. That is not doable and will result in crash.
 

ACECORP

Founder & Entrepreneur
Veteran
Joined
Apr 6, 2016
Messages
257
Reaction score
41
First Language
English
Primarily Uses
RMMV
Thanks. Seems we will need to keep converting code further up the chain.
 

Latest Threads

Latest Posts

Latest Profile Posts

I tried a new thing.

fg.png
Another night, another game dev stream in about 20 minutes or so.

I've been busy. Warming up so I don't forget how to draw.
Fr4yy7TaEAUB57Z
I'd make a joke about the post office, but I'm afraid you won't get it.
I've been on a really good streak lately of working on my game for at least a little bit each day. Even if I only complete one small task, it is still a much better pace than what I was maintaining previously!

Forum statistics

Threads
129,785
Messages
1,205,127
Members
170,894
Latest member
Mikartsuun
Top