I built a minigame that involves a deck of cards and a lot of array manipulation. It works fine 99.7% of the time. Once in a blue moon, something, somewhere, within the minigame will cause the game to crash so hard the entire thing exits instantly. No error popup window is generated, and because it happens instantaneously, I can't retrieve the contents of the console. It happens when the discard pile is added to the player's hand... but only very, very, very rarely.
I've seen almost every other error under the sun that RPG Maker VX Ace can throw. It's nothing as mundane as a missing quotation mark or closing bracket. Has anyone seen a crash like this before? What kind of error could cause the game to force quit instantly like that?
My assumption is that I've got an off by one error somewhere that's making it try to grab card data from beyond the end of the array, or... something. But any leads from folks more knowledgable about Ruby than I would be appreciated before I spend all weekend tracing my minigame code line by line in those tiny "no horizontal scroll" RPG Maker windows! 😛
So, TL;DR... here is my question, plus two unlikely pipe dreams...
I've seen almost every other error under the sun that RPG Maker VX Ace can throw. It's nothing as mundane as a missing quotation mark or closing bracket. Has anyone seen a crash like this before? What kind of error could cause the game to force quit instantly like that?
My assumption is that I've got an off by one error somewhere that's making it try to grab card data from beyond the end of the array, or... something. But any leads from folks more knowledgable about Ruby than I would be appreciated before I spend all weekend tracing my minigame code line by line in those tiny "no horizontal scroll" RPG Maker windows! 😛
So, TL;DR... here is my question, plus two unlikely pipe dreams...
- Anybody know what kind of script error (probably involving arrays) would cause VX Ace to instantly force quit, skipping the normal error handling for script errors?
- Is there a plugin or other tool to pipe the VX Ace debut console to a permanent log file?
- Is there any plugin, tool, or bit of script I can edit that makes VX Ace's post-crash stack traces a little more... helpful? (If the error's coming from a specific Common Event or Event ID, I'd love to know! Even better if I can know what line it's happening on!)