MV Bizzare Game Breaking Bug in Battle

Hi, sorry for the vague title, my issue seemed a bit too long to fit in the title.

I'm using the plugin DreamX_ITB, which is a battle system that makes it so you immediately act when you select a skill. It works off of Yanfly's Battle system as well.
The issue I'm having (which I'm not sure why it's happening since it wasn't happening yesterday when I was testing battles) is when the party leader (only the leader, no other members have this issue) is afflicted with a state that causes them to not move, including knockout, they still get a turn but can't do anything except use items and escape; however, when they use items the game crashes and the error message shown below appears.

1627665724886.png

The issue disappears when I turn off the plugin, but my game heavily relies on this plugin for the battle system so I wanted to try to fix it. I've also tried turning off multiple other plugins that affect battle to see if that fixes anything but it doesn't seem to. I have no idea what caused this issue since it was working completely fine the last time I played and I didn't change anything related to battles since then.

If anybody knows how to fix this, I would greatly appreciate it since I can't find any solution currently.

Many thanks,
Spak
1) "of undefined" ALWAYS means that the engine got a reference to a missing data object.
there are exactly four reasons why such a reference can exist:
a) you deleted an object from the database or something similar that is still needed in the game
b) a plugin is configured to use a reference that do not exist (or in other words you failed to configure the plugin correctly
c) two of your plugins are in conflict with each other, overwriting or deleting each others data
d) you loaded an old and now incompatible savefile that does not yet have the required data.

as to point d which is currently my favorite due to your descriptions:
whenever you add or delete a plugin, you have to start a new playtest game because the data in older savefiles is no longer compatible with the current plugin configuration.

your explanation that the error vanishes if you remove a plugin means that it has to be either c or d depending on whether you load a savefile or not. there is a small chance of b if you forgot to configure the plugin removed correctly.
1) "of undefined" ALWAYS means that the engine got a reference to a missing data object.
there are exactly four reasons why such a reference can exist:
a) you deleted an object from the database or something similar that is still needed in the game
b) a plugin is configured to use a reference that do not exist (or in other words you failed to configure the plugin correctly
c) two of your plugins are in conflict with each other, overwriting or deleting each others data
d) you loaded an old and now incompatible savefile that does not yet have the required data.

as to point d which is currently my favorite due to your descriptions:
whenever you add or delete a plugin, you have to start a new playtest game because the data in older savefiles is no longer compatible with the current plugin configuration.

your explanation that the error vanishes if you remove a plugin means that it has to be either c or d depending on whether you load a savefile or not. there is a small chance of b if you forgot to configure the plugin removed correctly.
I'm guessing that based on what you've said is that it's C. I should've mentioned that I was getting this error from both in game battling and the battle test feature (in fact that screenshot was from battle test). I'm gonna go around and test out turning off some plugins then. Thanks for the help though!
the battle test feature
as soon as you use plugins, the battletest may no longer be a valid test.
the problem is that battletest uses shortcuts to get to the battleengine directly, and there are a lot of plugins that react badly to having their initialisation skipped.
Moved to: Plugin Support

Original thread: https://forums.rpgmakerweb.com/threads/bizzare-game-breaking-bug-in-battle.139089/