Game closes itself with no error message!

I got a decent frustating problem.
One of the games I'm making now suddenly can not be started anymore. It opens but closes itself immediatly, without a error message (I'm speaking of the game itself, not the editor. The editor works).
I can't use debugging or the console because it's only open for like a half second, and I can't find a error log in my windows event viewer either.

The last thing I did before the game couldn't be started anymore was pasting Yanfly's Ace Status Menu in my materials, but when I took it out again it still didn't start.
I also tried to copy all the files into a new project, didn't start.
I looked up if I changed anything different in the scripts, didn't found anything.
I even tried if it starts when I remove all scripts, but nope.
Also there is no error message if I change anything in a default script and then try to open it, it then also closes instandly.
But I found out that it must be something in the 'Data' folder. Because when I copied the folder into a new project it couldn't run anymore, too.

I've searched for hours and hours for the reason, but I just can't find it nor a solution. Maybe someone knows the problem and can help me?

(Also I'm sorry if I posted this in the wrong place, I just joined the site. I was only a reader before.)
Did you accidentally delete the 'Main' slot from the default script?
How many projects do you have? Does this happen with all of them, or only one in particular? If you only have one, if you create a brand new project and do a test play, does the same thing happen?

Have you had any windows updates recently? I'm wondering if it could be a graphics or audio driver issue, and maybe you need to do a manual update from the manufacturer's site rather than use the windows one, which sometimes causes issues as they are often out of date.
Did you accidentally delete the 'Main' slot from the default script?
No I didn't. And I only have a font changer in it.
How many projects do you have? Does this happen with all of them, or only one in particular? If you only have one, if you create a brand new project and do a test play, does the same thing happen?

Have you had any windows updates recently? I'm wondering if it could be a graphics or audio driver issue, and maybe you need to do a manual update from the manufacturer's site rather than use the windows one, which sometimes causes issues as they are often out of date.
No It's only with that one game. And as I said, starting a new project game is no problem, but when I put the Data folder of that game in, it doesn't start, so it must be something in the Data folder.
And so it can't be something with windows updates either, also there were no widnows update recently.
As I said, it was suddenly not playable anymore after I installed that script.

Note: I'm not using steam or anything, I have a downloaded version.
No I didn't. And I only have a font changer in it.
Hmm, try to create one slot on top of every custom scripts. Write
Code:
rgss_main { SceneManager.run }
Save and playtest. See if it runs the game without issue.
I'll tell you the next step afterward.
YESSSS! That was it! Thank you so much! So the script error was that I did accidentally delete that line. But what was the next step you wanted to tell me? Because everything works already now.
it would be to put that line at the bottom. This is the script call to start the game. without it nothing runs.
If you don't have it at the bottom then none of your custom scripts will be loaded. and you will probably get an error after exiting
YESSSS! That was it! Thank you so much! So the script error was that I did accidentally delete that line. But what was the next step you wanted to tell me? Because everything works already now.
No next step, because you technically delete 'Main' in that sense which what I was asking.
Ok thanks again. Yes I didn't see that I accidentally delete that line. I have it at bottom of Main again. But why does that not have an error message?!?
Ok thanks again. Yes I didn't see that I accidentally delete that line. I have it at bottom of Main again. But why does that not have an error message?!?
Because it is technically not an error.
Everything works as intended. You just take out the trigger to make the game run. As if you're missing the power button from your PC.
Alright then.

Original thread: https://forums.rpgmakerweb.com/threads/game-closes-itself-with-no-error-message.121319/