Dr_Allard

Villager
Member
Joined
Aug 10, 2018
Messages
8
Reaction score
1
First Language
Marcus
Primarily Uses
RMMV
Hi All,

So after finally finishing our game, we of course ran into an issue with the deployment.

The game runs fine when playtesting from RPG Maker, as well as the deployed versions for WIN/MAC. When deploying in HTML5 for browser however, it instantly gets:

TypeError
Cannot read property 'length' of undefined

I have tried to seach the forums for this issue, but all issues with the same error I found got this error in playtesting, so you could use the debug console. (which I understand is not possible in the deployed version)

Does anybody have any ideas what might be causing the problem?

Best regards,
Marcus
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,136
Reaction score
10,674
First Language
Czech
Primarily Uses
RMMV
If you open it with a browser, you can open the browser's dev console. Either way it looks to me like you opened it with Google Chrome, didn't you?
 

Dr_Allard

Villager
Member
Joined
Aug 10, 2018
Messages
8
Reaction score
1
First Language
Marcus
Primarily Uses
RMMV
Thanks for your reply! The deployment was uploaded to our FTP and opened with Chrome through our web page. Thanks for the tips regarding the console, I got the following information:

Uncaught ReferenceError: process is not defined
at SRD_GameUpgrade.js:604
at SRD_GameUpgrade.js:1109

rpg_managers.js:1954 TypeError: Cannot read property 'length' of undefined
at Object._.preloadImageFolder (SRD_PreloaderCore.js:608)
at Object._.setupImagePreloads (SRD_PreloaderCore.js:709)
at Scene_Boot.start (SRD_PreloaderCore.js:769)
at Function.SceneManager.updateScene (rpg_managers.js:2024)
at Function.SceneManager.updateScene (SRD_Debug_SpeedUp.js:162)
at Function.SceneManager.updateMain (rpg_managers.js:1988)
at Function.SceneManager.update (rpg_managers.js:1907)
SceneManager.catchException @ rpg_managers.js:1954

I am not sure if this post should still stay in the deployment section, apologies if it needs to be moved!
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,136
Reaction score
10,674
First Language
Czech
Primarily Uses
RMMV
SRD_GameUpgrade.js is nwjs only. Just like his SuperToolsEngine. So it won't work on web deployment.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,297
Reaction score
8,366
First Language
German
Primarily Uses
RMMV
the game itself is HTML - the so-called Windows and Mac Deployments are nothing but a browser for launching the HTML5-game you created.

So best guess is that your deployment was either damaged or got into a filepath that is not allowed for browsers. I suggest redeploying into a different folder to test those two possibilities.

If that still gives the error, we need the console screenshot mentioned above. That will contain the full error trace with the details to see where it came from.
Unfortunately your text copy of the info is incomplete, a screenshot is always better. It misses parts like the full browser path where the game is uploaded to and a few other things. And I suspect that might be the cause due to the trace including both preloader and upgrade plugins, those are very dependend on correct paths.

EDIT: ninja'd
 

Dr_Allard

Villager
Member
Joined
Aug 10, 2018
Messages
8
Reaction score
1
First Language
Marcus
Primarily Uses
RMMV
Hi All,

Thanks so much for your support! I have tried to deploy it again to a different folder, but the same issue comes up. I am not sure how to get more information from the console, I copied everything that showed up in Chrome.

If it's of any help, I re-uploaded the game to our FTP and is reachable through this link:

https://www.beyond-dawn.com/game/html5

Please let me know if there is any more information I can provide!
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,136
Reaction score
10,674
First Language
Czech
Primarily Uses
RMMV
SRD_GameUpgrade.js is nwjs only. Just like his SuperToolsEngine. So it won't work on web deployment.

No matter how you deploy it, this will always stay as a fact.
 

Dr_Allard

Villager
Member
Joined
Aug 10, 2018
Messages
8
Reaction score
1
First Language
Marcus
Primarily Uses
RMMV
Ah, I missed this post! Thanks for the information, much appreciated!
 

Latest Threads

Latest Posts

Latest Profile Posts

My mom is finally coming home tonight! In the meantime, Wishful Wanda is back in production.
SA51K_SHADER_IDLE.gifZombie is not the only thing people turned into in this town. There is also something else here. Something has many different names in history, the plague, the black oil, the purity, the filth. And now, it's called the shade.
(Maybe too much X-File reference. :kaojoy:)
Thanks, google for putting together a random pixel art Olympics game in your logo that puts everything I've ever done to shame in pretty much every aspect. ;)
Chizuru
chizuru.png


anyway, i just recovered from Covid.
Work's been delayed for a month but now i'm back drawing again.
Ah yes i learned how to make name boxes Im now profeshonal

Forum statistics

Threads
113,615
Messages
1,076,247
Members
147,631
Latest member
pictureperfect
Top