[SOLVED] Severe Deployment Runtime Issues

Hi! I recently got to a point where I'm ready to share a demo of one of my games with friends.

Sadly, when I deploy to Windows the project has issues that I have never seen on my playtest version to the point where it can't be played. I'd like to emphasize that my game works just fine in the editor playtesting and I've tried deploying a basic new project and that deployment runs just fine.

The game is severely laggy even from the title screen, pops up the "Now Loading..." screen, then has a crash once the first map is loaded shown below (I suspect this crash is plugin-related/the result of plugin loading issues. However, I can't check because the debugger isn't available for deployed games and I wouldn't know how to fix this.)

1706106153095.png


Below are the settings and path I'm deploying with (no spaces or special chars, so it should follow networking format)

1706106269849.png


Here are all the plugins I am using. Again, none of them give me issues on playtest and I don't have it set to exclude any files upon deployment:

1706106353887.png
1706106377169.png


If a link to download the deployed project itself is necessary I can add it to another post, please just ask (I'd just prefer not to since I'm not quite ready to share the project widely).

Any help would be amazing! I've worked a lot to get it done so it'd be unfortunate if the last little thing was my deployment bugging out. Thank you.
When you test play your game, are there any errors/warnings in the console log?

In MV, I get to the console log by hitting F8 when the game runs.
When you test play your game, are there any errors/warnings in the console log?

In MV, I get to the console log by hitting F8 when the game runs.
1706107049488.png

Here's a warning I get upon startup during playtest. I've seen it pop up before, but it never seemed to cause any issues.
I would ask MV3D folks about that warning, as it could definitely be the cause of something.

Generally speaking, scale is a property of images. So I'm presuming the root of that is the deployed game is unable to load an image file it's told will be there.

Are you sure all of your images have HTML-compliant filenames?

You could try adding this plugin, should add the full error trace to a file in the directory of the deployed game.
I would ask MV3D folks about that warning, as it could definitely be the cause of something.
That's not a bad idea. So far I haven't seen anyone talk about a similar issue so I'll ask later.
Generally speaking, scale is a property of images. So I'm presuming the root of that is the deployed game is unable to load an image file it's told will be there.

Are you sure all of your images have HTML-compliant filenames?
I went through all my img folders and other folders where I know I've added content and should have fixed any additional networking format issues, and sadly I still get the lag and the crash.
You could try adding this plugin, should add the full error trace to a file in the directory of the deployed game.
Thanks for pointing me to this plugin. Here is the error I saw in the log upon the game crashing:

1706108775488.png

The shown on screen error is there, but there's also a line that seems to specifically mention mv3d.js
Huh. That does not, in fact, give the full error trace that would be desired. I'm unimpressed with the plugin.

I know @Arthran made a verbose error plugin but it's only listed as for MZ. I'm not sure whether he actually used any code that would make it non-functional in MV.
Just one question:
does your username contain any letters that are illegal to HTML games?

If you deploy to c:\test\game
does the error happen as well?

The error message is that the MV3D could not get the storage location - and that is usually a folderpath.
And one of the differences between playtest and deployment is that the playtest redirects to a virtual folder exactly to prevent problems with a folderpath that contains ilegal letters like space.
Just one question:
does your username contain any letters that are illegal to HTML games?

If you deploy to c:\test\game
does the error happen as well?

The error message is that the MV3D could not get the storage location - and that is usually a folderpath.
And one of the differences between playtest and deployment is that the playtest redirects to a virtual folder exactly to prevent problems with a folderpath that contains ilegal letters like space.
No worries, my username is one word of only alphanumerics and doesn't have any spaces.
Check if any of your images have capital letter file extensions. I had a deployment bug that stopped the game from loading where the problem was a single file had .PNG instead of .png
Huh. That does not, in fact, give the full error trace that would be desired. I'm unimpressed with the plugin.

I know @Arthran made a verbose error plugin but it's only listed as for MZ. I'm not sure whether he actually used any code that would make it non-functional in MV.
I never thought to check. Off the top of my head, I suspect that there's a good chance that it would work in MV, but I'm not going to have access to my computer for the next day or two, so I can't verify that.
I never thought to check. Off the top of my head, I suspect that there's a good chance that it would work in MV, but I'm not going to have access to my computer for the next day or two, so I can't verify that.
Huh. That does not, in fact, give the full error trace that would be desired. I'm unimpressed with the plugin.

I know @Arthran made a verbose error plugin but it's only listed as for MZ. I'm not sure whether he actually used any code that would make it non-functional in MV.
I was able to check and sadly, I don't think it's compatible. When I apply it, the error shown is the same as before
Check if any of your images have capital letter file extensions. I had a deployment bug that stopped the game from loading where the problem was a single file had .PNG instead of .png
I went through my files and I believe I've ruled this issue out. Sadly, it's still having the same lag and crash issues.
I went ahead and uninstalled and reinstalled RPG Maker MV, and everything is working! Not sure why (I'm guessing my deployment function itself was bugged out somehow, I noticed today that my deployed games would have the wrong icon for example).

Thanks sm for everyone's help! I was really worried I was gonna just have to put all my projects on hold and your support pushed me to keep going.
Not sure why (I'm guessing my deployment function itself was bugged out somehow, I noticed today that my deployed games would have the wrong icon for example).
Did you maybe try to update NW.js at some point? A mistake during the process of doing that could possibly explain things.
Did you maybe try to update NW.js at some point? A mistake during the process of doing that could possibly explain things.
Y'know I think I did at one point or another, so that explains it! Thanks.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-severe-deployment-runtime-issues.165091/