MV YEP, Ramza_Dualwield, & Ramza_BlockChance Compatibility Issue (Probably my fault) :)

I'm currently utilizing RMMV, YEP plugins, and I just bought Ramza_Dualwield & Ramza_Blockchance plugins (which are awesome btw), and it's causing my game to crash whenever an enemy pokes at me. I'm like 99% certain it's the order of my plugins as they're mixed w/various YEP plugins. For the most part, I followed Ramza's tips (unless I overlooked something) when inserting them into the plugin list. Screenshots provided for the Crash, and the Plugin Order 1 - 4, from top to bottom. Any help would be appreciated. Thanks!
Hey there.

The error seems to be pointing to the stat allocation plugin. Given the line from the block plugin it references in the error stack, as well as the name of the function being called form stat allocation, I can assume it has something to do with how I've defined block chance as xparam(10).

The line it shows from block chance in the error is actually the line where it defines it, so it would appear that the statallocation plugin is trying to see how many times each xparam has been upgraded, including blk, but since it only expects 10 xparams, it ends up trying to pull from element 11 in that array for block rate, and crashes.

I tried briefly to duplicate this crash on my end, but I can't, and I expect it's because your setup of the stat allocation plugin is different than the default. I think if you look around line 992 in the stat allocation plugin, you will find a line that looks something like this:
this._xparamAllocationTimes[classId] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
If you change it to have 11 elements instead of 10, I think it'll probably stop this crash.
this._xparamAllocationTimes[classId] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];

Your plugin order seems to be correct, at least as far as what plugins mine should be loading after. I tried to look at the yanfly ones to see if maybe they were out of order, but my eyes kind of glazed over. lol.

Anyways, give that a try and see if we can cause a different error after 😉

edit:
My reading comprehension is bad today. Good news, though. I could duplicate the problem once I actually noticed you said the crash happens when enemies hit you. And even better news is that the fix I said might work, actually does work. Your version of the statallocation plugin is newer than mine, so the line numbers aren't the same between yours and mine, but change that one array to add an extra element, and it should work.
Ramza,

You're a beast as always, thanks!

This has been [SOLVED]

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yep-ramza_dualwield-ramza_blockchance-compatibility-issue-probably-my-fault.136614/