Game works in playtest but loads forever in .exe

I have a game that I've been slowly adding plugins to over time. However, my recent deployments have resulted with the game file being an infinite looping loading screen. When I playtest it, it runs fine, I don't even see an error mentioned in the console log. Even running it via the index gives me the game working well without error. What could have caused this error?
where have you stored your project?
The full folderpath beginning with the drive letter please.

One big difference between playtest and fuil game is that the playtest uses a virtual folder redirect while the exe goes through the actual folder path. And there are several possible causes with wrong foldernames or wrong access rights that could result in such an effect.
J:\Games folder\my own\Games\my_first_game
I also use this for my deployment file, this is where it specifically doesn't work.
I:\Deployment\my_first_game
\Games folder\my own
spaces are a problem, please rename the folders to Games_Folder\my_own.

However I'm not sure if that is enough to cause this difference, I was thinking of a different type of error.
still, please correct and try again.

another question: have you changed the font of the game?
Can changing the font lead to excessive loading times too?
Any plugin that would add communication with a remote server, cannot reach it, and never times out?
When deploying do you use exclude unused files? If that deletes something it things is unused but actually needed (by a plugin or such) it can happen that the screen stays black.
I'd recommend deleting unused files by hand, so you have full control.
spaces are a problem, please rename the folders to Games_Folder\my_own.

However I'm not sure if that is enough to cause this difference, I was thinking of a different type of error.
still, please correct and try again.

another question: have you changed the font of the game?
I don't think it's that as I'm only having an issue when it's running from the second file i mentioned. no spaces there. No font changes either

Any plugin that would add communication with a remote server, cannot reach it, and never times out?
nope.

When deploying do you use exclude unused files? If that deletes something it things is unused but actually needed (by a plugin or such) it can happen that the screen stays black.
I'd recommend deleting unused files by hand, so you have full control.
Oddly enough, I've use both options and it still doesn't run with the exe.

By any chance, I also updated my graphics card as well. Could this have any role in this issue?
no, unless the playtest also has problems the black display in launching is either a coding or a loading problem.
and like with a display error most coding would still be identical after deployment, so it's likely that the loading of a file is being blocked.

and we basically have to find out what exactly blocks the file to load.

what kind of drive (hardware) is your I: drive? how is it connected?
spaces are a problem, please rename the folders to Games_Folder\my_own.

However I'm not sure if that is enough to cause this difference, I was thinking of a different type of error.
still, please correct and try again.

another question: have you changed the font of the game?
Spaces are only a problem within the project folder. the name "Game Folder" is a parent folder, and has 0 effect on the project.

And even within the project folder, spaces are only a problem, if you upload them as HTML game... Local games can tun perfectly fine with spaces in their names.

I would always advice to use _ instead of a space, but for local games, it should not be a problem.

If it is insees a problem, then RMMV will show the same error as when files are missing, but instead of a space, it would show a %20 or something. And, like I said, that only happens for HTML games, not for local games.
Spaces are only a problem within the project folder. the name "Game Folder" is a parent folder, and has 0 effect on the project.
that only counts for the playtest, because the playtest redirects to a virtual folder.
And the OP specifically told that the problem does NOT happen in playtest, only if the game is played through the exe...

As for the other parts:
No browser ever can handle spaces - that is why the spaces are ALWAYS replaced by %20 in any error- or adress message. You will never find any case where they are not replaced.
That is an override implemented to allow the use of spaces despite them going against the HTML rules.

And while the overrides work most of the time, there have been dozens of cases where thos overrides did fail and it was needed to remove the overrides (and the need for them) to get the games running again.

The so-called exe for local play is nothing but a chromium based browser stripped of the usual browser controls, but the games will always be HTML5-based.
no, unless the playtest also has problems the black display in launching is either a coding or a loading problem.
and like with a display error most coding would still be identical after deployment, so it's likely that the loading of a file is being blocked.

and we basically have to find out what exactly blocks the file to load.

what kind of drive (hardware) is your I: drive? how is it connected?
Hard drive, it's connected with wires in the desktop. Used to be a windows drive for a laptop
1) if the game is loading, can you access the console at that time or not?

2) can you give screenshots of your plugin manager to see if there is any incompatibility?
I'm still believing it to be a loading problem but as said above it can be a coding problem, and since I'm not sure what else to check with loading I want to confirm that it is not a coding problem that way.

3) if you deploy multiple times into different directories, is the effect the same for all?
Just to make sure that it isn't a damaged filr from one deployment...
that only counts for the playtest, because the playtest redirects to a virtual folder.
And the OP specifically told that the problem does NOT happen in playtest, only if the game is played through the exe...

As for the other parts:
No browser ever can handle spaces - that is why the spaces are ALWAYS replaced by %20 in any error- or adress message. You will never find any case where they are not replaced.
That is an override implemented to allow the use of spaces despite them going against the HTML rules.

And while the overrides work most of the time, there have been dozens of cases where thos overrides did fail and it was needed to remove the overrides (and the need for them) to get the games running again.

The so-called exe for local play is nothing but a chromium based browser stripped of the usual browser controls, but the games will always be HTML5-based.
I guess you use cloud service? But the parent folders are never included in the coding of the game. You can see that easily because everything still works if you move deployed game folder.

The engine uses /img/system/iconset.png instead of c:/users/username/documents/projectname/img/system/iconset.png and it starts its path in the main folder of the game.

So if there is a space or a typo in the parent folders, this shouldn't matter at all.

Only with a cloud server you might have a problem, but then again, this is not locally stored.
No font changes either
Removing the font in a new project is my usual way of testing loading screen things: it causes the game to "load" indefinitely, patiently waiting for a font that will never arrive. By contrast, a missing data, image, or audio file typically throws an error pretty quickly.

Some ideas:
  1. If you check your deployed game's fonts subfolder, do you see gamefont.css (~1 KB) and mplus-1m-regular.ttf (~1506 KB) in there?

  2. If you deploy a new project, does that one launch OK? If not, perhaps some security app is blocking the deployed game.

  3. If you turn off all plugins, save your project to apply Plugin Manager changes, then deploy, does that one launch OK? If it works when the plugins are turned off, that suggests it's a plugin issue. In that case, consider sharing screenshot(s) of your Plugin Manager so we can see the plugins you're using and their load order.
Removing the font in a new project is my usual way of testing loading screen things: it causes the game to "load" indefinitely, patiently waiting for a font that will never arrive. By contrast, a missing data, image, or audio file typically throws an error pretty quickly.

Some ideas:
  1. If you check your deployed game's fonts subfolder, do you see gamefont.css (~1 K😎 and mplus-1m-regular.ttf (~1506 K😎 in there?

  2. If you deploy a new project, does that one launch OK? If not, perhaps some security app is blocking the deployed game.

  3. If you turn off all plugins, save your project to apply Plugin Manager changes, then deploy, does that one launch OK? If it works when the plugins are turned off, that suggests it's a plugin issue. In that case, consider sharing screenshot(s) of your Plugin Manager so we can see the plugins you're using and their load order.
1/2 were all good, turned off the plugins and deployed and it worked. This is my plugin list
1699572326490.png
1) your yanfly plugins are in the wrong order, but that is unlikely to cause this specific error. But having them in the wrong order has been known to cause strange effects.

2) the most suspicious one is the preloader, because that always affects loading - and it is almost impossible to have a preloader without side effects unless you can manually command when a resource is not only loaded, but also when it is unloaded.
I suggest trying with only that one disabled...
1) your yanfly plugins are in the wrong order, but that is unlikely to cause this specific error. But having them in the wrong order has been known to cause strange effects.

2) the most suspicious one is the preloader, because that always affects loading - and it is almost impossible to have a preloader without side effects unless you can manually command when a resource is not only loaded, but also when it is unloaded.
I suggest trying with only that one disabled...
Yup, that was the issue. The Preloader must be throwing an error or something and that's what's causing the issue. That's odd, that the first time it's been like this, is it possible to fix?
give a link to its website and someone can try.

however most of the preloaders are simply plugins without any effect, because no automatic function can give good results when added that way.
And that is completely ignoring the fact that even a good preloader is a memory leak by design, which means it will cause lag by reducing RAM if used excessively.
This is where i got it from.
I've been able to narrow down the issue to my video files. For some reason, some of the files make the game stuck on load.

Original thread: https://forums.rpgmakerweb.com/threads/game-works-in-playtest-but-loads-forever-in-exe.162716/