Will every little error cause actual games to instantly crash?

This is a real annoying issue in past RPG Makers, it doesn't matter how small a error is, instead of having error messages, and letting you continue, it causes the game to crash. Does MV handle things differently or does it work the same as far as that goes?

For whatever reason the system can't locate the sound for a certain SE, crash instead of just skipping the SE, and moving on.  It's quite annoying for every error to bring play testing to a end.
Well, it really depends on the error.


Something like not finding an SE can easily be scripted to be ignored, but except for a few cases like that, I think that crashing by default is OK. You really shouldn't leave anything crash-able on your game.
I can't speak technically for MV (because I haven't seen MV yet, lol), but most crashes in XP/VX/Ace's scripts can be prevented with graceful "rescue" clauses.  This is something that a lot of scripters either forget to do or choose not to do.

There would be little reason to rescue out a bug since that bug should show up so it can be fixed (unless the script was custom-built for a single project), but crashes from minor user error (such as not having a single SE in a single circumstance) could easily be rescued to skip the SE instead of crashing.

Long story short: my guess is that this will continue to be up to the scripter, because it's very hard for RPG Maker to know what to do if it finds something unexpected.
They very well can.  In the real world, even the smallest errors can prove disastrous results.

And dude. "Actual games"?  Games made on RM ARE Actual games, y'know.
Syntax errors in a plugin will cause that plugin to fail to load. Runtime errors will stop the game, however you can force it to continue running, though depending on the error that occurred, it may repeatedly crash with every forced continue. The ability to force it to continue is not in the engine by default and must be added.
Don't you, as a developer, WANT to know about every error?


If you released a game that was buggy and expected people to play it, or even to pay for it, won't they complain if there are errors? Isn't quality one of the most important things? Isn't it your responsibility to make sure the game is fully playable as you intended it?


If something happens that makes it NOT playable as you intended it, don't you want to find that out before you distribute it?


How is the engine to know what is an important bug and what is not? How is it to know that a missing file NEEDS to be there or can be overlooked? What if it was a missing map file? What if it was a missing character sprite, that you had to interact with to move the story along?


One thing I like about MV is that you can play in a browser. That means you can test your game in a browser while still being able to make changes to it. THIS is going to make testing, debugging and polishing a whole lot easier.


I actually prefer it to crash if something has gone wrong that I have caused. I NEED to see that I've done something wrong, and fix it.


Also - in Ace there IS somewhere where it doesn't crash when there's a bug. It's when it's calculating damage based on a formula. How many support threads have been created asking "why is it causing 0 damage on this formula" because someone has entered a formula incorrectly? If it DIDN'T catch and ignore the error, they would have been told EXACTLY why it wasn't calculating any damage. I would prefer it that way.
Don't you, as a developer, WANT to know about every error?

If you released a game that was buggy and expected people to play it, or even to pay for it, won't they complain if there are errors? Isn't quality one of the most important things? Isn't it your responsibility to make sure the game is fully playable as you intended it?

If something happens that makes it NOT playable as you intended it, don't you want to find that out before you distribute it?

How is the engine to know what is an important bug and what is not? How is it to know that a missing file NEEDS to be there or can be overlooked? What if it was a missing map file? What if it was a missing character sprite, that you had to interact with to move the story along?

One thing I like about MV is that you can play in a browser. That means you can test your game in a browser while still being able to make changes to it. THIS is going to make testing, debugging and polishing a whole lot easier.

I actually prefer it to crash if something has gone wrong that I have caused. I NEED to see that I've done something wrong, and fix it.
It's not the knowing about, that's the problem, It's that it completely interupts testing altogether, until X issue is fixed.  It would got a lot smoother, if people could say test for a few hours, then go to fix all the bugs they found.

Normally in game development outside of RPG Maker games, errors cause bugs, they don't crash entire games unless said bug is so serious, It's literally a game breaking bug.

Oh wait, you can even do that, when the game you're making Isn't a browser game? That's pretty cool actually.

Well if the RPG Maker(s) debugging system/error messages actually made sense half the time, it would help a great deal as far as that goes.
Unfortunately the answer to your question is No.

Imo one of the biggest issues with JavaScript, particularly during the development phase. Luckily there exists excellent tooling which mitigates that.

You can try playing around with this Ruby snippet to get a feel of what I mean:

class NilClass def method_missing(*args) nil endend*hugs*

 - Zeriab
There are multiple kinds of errors.

Syntax errors, unless they happen to accidentally resemble the syntax for another command in just the right way, ALWAYS cause exceptions, or else just don't run in the first place. Short of missing files, that's probably most of your crashes right there.

Errors in logic don't always do that. And logical errors still happen in RPG Maker. I had an RPG Maker game with a logical error reported by multiple people that scrambled the party order during one event (when the game always expected the main character to be the first party member), but that I could never replicate, that broke the game in the long run, for all intents and purposes, but didn't cause a crash. How, to this day, I wish I had some clue to what was causing it! (Ultimately, I completely rewrote the script that was involved in a different way to circumvent it, but I still don't know what caused it.)

You compare to other game development, but I would guess that most of the crashes you see would fail to compile in languages that require compiling. RPG Maker doesn't exactly compile code in the traditional sense, so most of the the errors will only be caught in runtime.

So I'm with Shaz, by and large. Crashes happen, and what you consider a catastrophic failure and what the machine does won't necessarily see eye to eye. If it detects something is horribly wrong, it should tell you. As for errors in logic, that's for you the designer to find.
Drake Skyline has a 'Missing Materials spider' script which gives you an error message if there is a missing graphic or audio file, but allows you to continue.  I don't have a link, but with a script name like that it should be easy to find.

Obviously it does not stop any other bug from crashing the game because you need to know what will do that.  Personally, I think it is the only sensible way to proceed - you have to fix the bug before you can continue, and you have to know that fixing it this way does not introduce another problem somewhere else.
Saving a game frequently when play testing also helps with this. If you get a crashing bug, or a logic bug, and you want to replay the moments before hitting it, at least you don't have to start over or change the starting position and mess with all the switches and variables and stuff to get back to the right state.
This is a real annoying issue in past RPG Makers, it doesn't matter how small a error is, instead of having error messages, and letting you continue, it causes the game to crash. Does MV handle things differently or does it work the same as far as that goes?

For whatever reason the system can't locate the sound for a certain SE, crash instead of just skipping the SE, and moving on.  It's quite annoying for every error to bring play testing to a end.
Its designed this way and I really do hope they keep this feature.

Unfortunately the answer to your question is No.

Imo one of the biggest issues with JavaScript, particularly during the development phase. Luckily there exists excellent tooling which mitigates that.

You can try playing around with this Ruby snippet to get a feel of what I mean:

class NilClass def method_missing(*args) nil endend*hugs*

 - Zeriab
Too bad Javascript doesnt have method missing, which I lied to you about: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/noSuchMethod

Now for the best Javascript developer ever to speak: http://yehudakatz.com/2008/08/18/method_missing-in-javascript/
As a developer, I agree with Shaz, if there's anything at all wrong, I want the game to crash (ideally with a meaningful error message and a stack trace) so I can fix the problem.

But for players and testers, I see Zoltor's point. It does suck if an issue that is not game-breaking prevents you from playing the game in any case. It's actually a pretty common practice in most major games to have placeholders for missing resources for exactly this reason (and - especially for a tester build - log it in an error file so the developer can fix it later). That said, it's the developer's responsibility to add code to do this. It's not the engine's responsibility to provide this kind of functionality by default (how to best handle this will vary from game to game anyway).
As a developer, I agree with Shaz, if there's anything at all wrong, I want the game to crash (ideally with a meaningful error message and a stack trace) so I can fix the problem.

But for players and testers, I see Zoltor's point. It does suck if an issue that is not game-breaking prevents you from playing the game in any case. It's actually a pretty common practice in most major games to have placeholders for missing resources for exactly this reason (and - especially for a tester build - log it in an error file so the developer can fix it later). That said, it's the developer's responsibility to add code to do this. It's not the engine's responsibility to provide this kind of functionality by default (how to best handle this will vary from game to game anyway).
you could capture the error, send it to a server, have the server email you the stack trace, this way the player can keep playing assuming its not a GAME BREAKING bug, which most bugs that crash the system are.
This is a real annoying issue in past RPG Makers, it doesn't matter how small a error is, instead of having error messages, and letting you continue, it causes the game to crash. Does MV handle things differently or does it work the same as far as that goes?

For whatever reason the system can't locate the sound for a certain SE, crash instead of just skipping the SE, and moving on.  It's quite annoying for every error to bring play testing to a end.
With scripts yes. If you mean the general MV code then not really. I suppose I could see it happening if you made an event move to a location and there was a boulder in the way. That could cause the game to freeze.

What I notice a lot with games people make is they set events in town to move randomly and then you go talk to a person and they move to a location and bump into an NPC that has moved to that location and it freezes the game. It's an easy mistake since when you test the game there's no guatantee an NPC(event) will get in the way so yeah...
This is a real annoying issue in past RPG Makers, it doesn't matter how small a error is, instead of having error messages, and letting you continue, it causes the game to crash.
Every programing tools are like this, lol
Every programing tools are like this, lol
The bane of every dev.
The bane of every dev.

Well if every dev would learn how ton write, catch and throw proper exceptions and test there code .... lol

Original thread: https://forums.rpgmakerweb.com/threads/will-every-little-error-cause-actual-games-to-instantly-crash.46123/