MV Irina's Collectible Card Game crashes after a single pack open

Hey, everyone. I recently purchased Irina's bundle on itch, and all of the card game stuff works great so far except for the pack opening bit. I'm on RMMV 1.6.3.

If I just want to open one pack of cards, it will show me the card pack opening, show me all the cards I got, take me back to the main menu, and then when I hit X/Escape to attempt to go back to the overworld to control my character, the game crashes.

No warning, no error, nothing. Not even the console stays open so I can't provide anyone with any information as to why I think this is going on. I've been trying to figure it out for an hour now, but I'm out of ideas.

The weird thing is that if I try and open up any quantity of pack that isn't a single pack, it works fine. 5/10/20/80/99/etc., all good. So I have no idea why an errorless crash happens upon attempting to go back to the overworld upon opening a single pack.

Any help is appreciated, and if you need anything else from me, let me know (first time posting here so I'm sure I'm forgetting to include something important.)

Thanks in advance. 🙂
I found some time to day to troubleshoot, so I went through my plugin list and turned all of them off one by one and found the issue. It appears to be the "Random Loot System" plugin (located here https://mythatelier.itch.io/random-loot-system)

This is a massive hit to my vision of the game because it will eventually rely heavily on this plugin, so not having it is seriously going to ruin all the design decisions that I have.

In addition, I have actually yet to use this plugin at all, so there are no notetag edits/edits to the plugin parameters/etc. that have been made to anything, period. So I have no idea why having this plugin enabled in the first place is causing the crashes.

This still doesn't explain why pulling a single pack causes the came to crash with no errors to display when 2x-99x packs are fine, but that level of troubleshooting far exceeds my knowledge of RMMV.
If you want random loot chests, you can event it using common events. Unfortunately, I don't know how to give random loot after battles without a plugin.

Evented random loot chests can be influenced by party level, and what you get can be weighted to make some weapons, armour or items more likely to be given. It is easier to set up your weapons, armour and item pages of the database first, at least for the things that appear in random chests. Let us know if you want more details.
If you want random loot chests, you can event it using common events. Unfortunately, I don't know how to give random loot after battles without a plugin.

Evented random loot chests can be influenced by party level, and what you get can be weighted to make some weapons, armour or items more likely to be given. It is easier to set up your weapons, armour and item pages of the database first, at least for the things that appear in random chests. Let us know if you want more details.
Thanks for the reply. I did a little digging on how I could do this and what I found was actually very useful, worked well, and I will likely end up using it. So thanks, I wouldn't have thought to seek out info like this without your help.

But to quickly sidetrack, I guess the fact that you didn't mention it means you don't really have an idea as to why my plugin won't work? I figured I'd ask again because it's so cool and I'm mega bummed I can't use it. ;-;
I found some time to day to troubleshoot, so I went through my plugin list and turned all of them off one by one and found the issue. It appears to be the "Random Loot System" plugin (located here https://mythatelier.itch.io/random-loot-system)

This is a massive hit to my vision of the game because it will eventually rely heavily on this plugin, so not having it is seriously going to ruin all the design decisions that I have.

In addition, I have actually yet to use this plugin at all, so there are no notetag edits/edits to the plugin parameters/etc. that have been made to anything, period. So I have no idea why having this plugin enabled in the first place is causing the crashes.

This still doesn't explain why pulling a single pack causes the came to crash with no errors to display when 2x-99x packs are fine, but that level of troubleshooting far exceeds my knowledge of RMMV.
I don't have any specifics for you, but I do have a sneaking suspicion you may have a null value hiding in your code somewhere, likely in the configurations of the plugin... It's happened to me a lot these past few days while dealing with CCG plugins.
I don't have any specifics for you, but I do have a sneaking suspicion you may have a null value hiding in your code somewhere, likely in the configurations of the plugin... It's happened to me a lot these past few days while dealing with CCG plugins.

Thanks for the huge lead, your comment actually caused me to find an unintended workaround. I fear that the one small change I've made could turn into a "1 bug fixed, but I just created 99 more down the line that I'm not aware of yet" situation, but I'll explain what I did in the very unlikely scenario someone else has my exact same issue, then worry about making a new post when I inevitably and reluctantly cross the "time to fix the 99 new bugs problem" bridge in the future.

Anyways, thanks to your comment, I did some digging in the plugin parameters of CCG core and found this line under "JS: Booster Commands"

"var quantities = [5, 10, 20, 40, 60, 80, 100];"

I noticed that "1" wasn't included as a variable, which I thought was odd, until I realized the default "use" option technically would be "1" in this case since you're using an item, and thus uses it once. And since "use" in this case crashes my game with no explanation, I edited the line to be this now.

"var quantities = [1, 5, 10, 20, 40, 60, 80, 100];"

The above works great and just like the sample project does, or how the game works without my Random Loot plugin turned on. No crashes!

I've attached the pictures below of what the menu was like before and how it is now. I've also made it so it's not possible to select the "use" option anymore. It's a bit of an eye sore being grayed out and all (which is fine, anything for peace of mind at the moment), but I'm sure there's a way to fix that later.

Now, does this explain why the "use" option for 1 pack crashes my game with the Random Loot plugin turned on? Nope, not to me at least. Does this work for the time being? Heck yeah.

Again, thanks for your comment. I've been doing literally everything else for my game that isn't RMMV related for 2 days now because of how annoyed this was making me.
Whatever shall work shall work... Glad to have gotten things running at least.
Thanks for the reply. I did a little digging on how I could do this and what I found was actually very useful, worked well, and I will likely end up using it. So thanks, I wouldn't have thought to seek out info like this without your help.

But to quickly sidetrack, I guess the fact that you didn't mention it means you don't really have an idea as to why my plugin won't work? I figured I'd ask again because it's so cool and I'm mega bummed I can't use it. ;-;
Sorry, I don't know why that plugin caused your game to crash. I have never used that plugin. Indeed, I can't recall trying any of MythAtellier's.
Sorry, I don't know why that plugin caused your game to crash. I have never used that plugin. Indeed, I can't recall trying any of MythAtellier's.
It's ok. 😀 you allowed me to find an alternative to the random loot plugin should I need to re-disable it. So I appreciate your help. 🙂
So it crashes when you "use" a booster pack, but not when you "open" a booster pack? Interesting. I suppose there must be something in the loot plugin that does something when you use items, which is causing a conflict?

Original thread: https://forums.rpgmakerweb.com/threads/irinas-collectible-card-game-crashes-after-a-single-pack-open.183733/