MZ Crash Guard - automatically prevent crashes for your players

Crash Guard for RPG Maker MZ v1.0
BitQuest Studio
​

Introduction
Crash Guard provides a multi-layer safety system that catches and handles the most frequent RPG Maker MZ runtime errors, especially those triggered by event manipulation or plugin conflicts. Instead of crashing to a black screen, your game will recover gracefully while logging helpful debugging info to the console. Ideal for complex projects that use advanced event systems or multiple custom plugins.

Features
  • Prevents “Cannot read property 'erase' of null” errors
  • Adds safety checks for invalid event access in custom plugins
  • Protects against null/undefined event method calls
  • Ensures safe handling of event initialization and setup
  • Guards against out-of-bounds event array access
  • Handles spriteset event cleanup errors
  • Works with Hendrix Action Engine, DotMoveSystem, and most event plugins
  • Logs all intercepted errors to the console with [ErrorFix] prefix
  • Activates only when necessary. All normal behavior is untouched

How to Use
Simply drop the plugin at the top of your plugin list and it works automatically!

Download
Itch.io

Terms and Credits
  • Free for commercial and non-commercial RPG Maker MZ projects
  • Modification allowed for personal or project-specific use
  • Redistribution not allowed (do not re-upload or resell this plugin)
  • Attribution appreciated but not required
Hi there!

First of all, I'm sorry. My intention is not waterdown your work. I Just have some doubts about this plugin(If I understood it right). I'm curious.

Usually the errors/crash have a utility to show the developer/player that something is wrong, so we can fix it. If you avoid that, the game can keep going to a point that it simple will not work. Like, no errors pops up but the player can be stuck on a place where he will not know what do.

Imagine a scenario where the player is inside a house, and when trying to leave, he will be transfered to another map. But, the developer made a mistake. On the transfer event he put the player to Map Id 11. But he deleted Map Id 11 for some reason and forgot to update the transfer event.

The player may attempt to transfer to another map and result in a black screen, or freeze on the same scene, or simply nothing happens when he tries to transfer. If no errors pops up, will be harder to debug a problem on that situation. Unless you have someway to restart where the player was before the error(because you say that the game will recover gracefully and avoid a black screen).

Of course I understand that can have some situations that the game can proceed. Like an image that fails to load for example. Even if the game does not show that image, the player may continue playing normaly.

Another problem is, putting those log errors on the console is not helpful, because Deployed games cannot open the console(and usually the player does not know about that too).

I guess will be nice if the error log can be shown on the screen or exports a .txt file with the error.

Unless that plugin is designed specifically for playtest. Then you can forget about everything I said ^^'

Original thread: https://forums.rpgmakerweb.com/threads/crash-guard-automatically-prevent-crashes-for-your-players.180030/