ACECORP

Founder & Entrepreneur
Veteran
Joined
Apr 6, 2016
Messages
257
Reaction score
40
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,159
Reaction score
10,746
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
40
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

It's definitely discouraging when streamers give a try-to-say-it-nicely (i.e. bad) review of your game demo. It's like jumping into a cold pool. Bad initally, but it gets better with time. And you are now more alert and see better.
Some screenshots of the pub and lodging with the beginnings of clutter taking shape
TTp8uCw.png

jtC202e.png

bSXgyVl.png

eRx9PUF.png
Backgrounds are not my strong suit... :kaodes:
DazI8jt.jpg

Just realized I forgot doing the clouds... woops
Went to get some stuff for February 10, the birthday of my favorite ink monster...
I have a little one-person party for Bendy every year, complete with the life-size plushie I made. And yes, I bake a birthday cake!

Forum statistics

Threads
118,498
Messages
1,116,411
Members
155,493
Latest member
maxboop
Top