Game Crashes when items drop due to Battle Result Script

Right, did not want to be a bother and ask for help again due to a script but I have been tackling this for 2 hours now trying to figure out how to get the script to stop crashing the game.

The MOG Battle Result script works normally as it should until a monster drops a item, the game crashes before the battle results are even shown, I did a few tests on monsters that don't drop items which works fine and then when monsters do have a drop table it bombs out.

Been looking into this and trying to solve it for awhile now but can't seem to figure out why, it tells me the error is caused in the 'Game_Enemy' script

Here is a attachment of the error message

Error message.png

Sorry for being a bother once again.
The code on that line is not priorised, it might be that some change due to the MOG script causes it to priorise wrongly.

Please test what happens if you change game_enemy line 96 to:

Code:
     if (di.kind > 0) && (rand * di.denominator < drop_item_rate)
No, still crashes and pops up the same error.
then the error is in a different line and this line only pops up due to stack limitations.


Please temporarely install the following script (read the instructions, it's not your usual script):


http://himeworks.wordpress.com/2013/06/09/custom-main-full-error-backtrace/


It will give you a list of the functions/lines involved with the error message. Most probably it's an incompatibility between several scripts, and all of those scripts can be identified with that output.


(you should make a backup to be able to remove that script later, after the bug is found and removed)
Okay thanks, I will give this a shot and look for the main problem, will make a edit on the progress.

EDIT

Never mind, I found the culprit responsible of the crash, it was the double item drop party ability I put into one of my characters and forgot to take it off, never thought that would be the cause of the crash but thanks to that script I found and sorted out the problem, this issue is solved.

Thanks for the help.
That is...not good, because that ability is a built-in feature.


Well, if you don't need it then it doesn't matter I guess.
I've moved this thread to RGSSx Script Support (you're asking for help with an existing script, not requesting a new one). Please be sure to post your threads in the correct forum next time. Thank you.


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/game-crashes-when-items-drop-due-to-battle-result-script.20761/