OK, need some input from the great minds on this site as to why this might be happening. I solved the issue for my game using the same plugins in question in this thread, and the following is how I fixed it for myself. Zero bugs, Zero issues at all and working perfectly.
Step one: Edit in MOG's script
Code:
//==============================
// * Initialize
//==============================
SpriteEnemyTrP.prototype.gainDropItems = function() {
var items = this._enemy._treasure.item;
$droppeditems = items // Edit: Added for Aftermath conformity
items.forEach(function(item) {
$gameParty.gainItem(item, 1);
});
};
Step 2: Edit to YEP Victory Aftermath so it would replicate the drops exactly
Code:
Window_VictoryDrop.prototype.extractDrops = function() {
BattleManager._rewards.items = $droppeditems // Edit: Added to force match to MOG drops
BattleManager._rewards.items.forEach(function(item) {
if (!item) return;
if (DataManager.isItem(item)) this._dropItems.push(item.id);
if (DataManager.isWeapon(item)) this._dropWeapons.push(item.id);
if (DataManager.isArmor(item)) this._dropArmors.push(item.id);
}, this);
this._dropItems.sort(function(a, b){return a-b});
this._dropWeapons.sort(function(a, b){return a-b});
this._dropArmors.sort(function(a, b){return a-b});
this._dropItems.forEach(function(id) {
var item = $dataItems[id];
if (item && !this._data.contains(item)) this._data.push(item);
}, this);
this._dropWeapons.forEach(function(id) {
var item = $dataWeapons[id];
if (item && !this._data.contains(item)) this._data.push(item);
}, this);
this._dropArmors.forEach(function(id) {
var item = $dataArmors[id];
if (item && !this._data.contains(item)) this._data.push(item);
}, this);
};
Now, when in my game the items drop in the battlefield, show in Aftermath properly with 100% accuracy, and are rewarded into the inventory as expected with 100% accuracy.
When I test the same exact fix in Jenova's game, as soon as Aftermath tries to draw the item rewards, this is the crash it tosses.
I'm wondering how can one cause a crash and the other work perfectly when they are set up the exact same way?
Also, I don't need to be scolded for my probably piss-poor method of making the plugins talk to each other, I am merely looking to see what is wrong and help someone get something working for them as it works for me.