Help with error - Object too deep

I have no idea of wtf may be causing this, has anyone found it yet?
It happened during a play test. An actor leveled up and then when i've opened the menu to check any actor in any scene besides Save and Item i got this error.
 

View attachment 42642
You running this out of the box vanilla, or do you have plugins that are enabled? 
I do have plugins, i'm almost sure it's being caused by YEP Base Param Control. 
Yesterday it was not happening till i've updated a couple of plugins today w.e this one had no updates avaliable and the formulas i'm using might be the issue.
I'm still testing though.
Just a guess, but sounds like one of the plugins is trying to save data that has a variable that points to something that contains the same variable. That is to say, it's a circular system, for lack of a better word. Think of it this way: In order to save the actor, we need to save all it's data. Ok, cool. So we have their health, mana, other stats, armor, and this super special weapon that needs to know who is using it, so that weapon has it's own variable that points back to the actor. Well, now in order to save the actor we have to:

  • Save the weapon, which means we have to
  • Save the actor (remember, the weapon has a variable that points to the actor), which means we have to
  • Save the weapon, which means we have to
  • Save the actor...



After a very large number of times going in a circle, the computer is incapable of storing anything else in the list of functions to return to, so it bring sup the error message saying that it can't do it.


That was all very technical, I understand, but essentially I'm just saying it's probably something trying to save data that loops into itself.
Basically, "object to deep" can only be caused by a recursive/looping definition in the plugins. There are only three possibilities that can cause this:


1) you installed a plugin twice and/or mixed up the plugin filenames (since you can't have two plugin files of the same name, the second is automatically part of the first cause).


So please check all plugins if they still have the filename the original creator gave them


2) two plugins are incompatible in a way that they're using the same variable/function/object name.


You'll need to find out which of the plugins are conflicting by deactivating them one after another two times, until both are identified, and then get a compatibility patch or rename the critical function n one


3) recursive loop in a function


That can only happen if the plugin is written wrong, which means either you're writing it and are in bughunting on it or you've used a plugin that is not yet fully functional (bug or beta)
I've found the culprit...now i'm in tears cuz combat won't be as good as before.


Issue was being caused by Liquid_EnemyEnmity. 


It's pretty much like in MMO games where the more you attack a target the more it will focus on you.


Enmity is stored a variable based on actor's actions in combat and uses it to force the enemy Ai to perform actions based on the actor with the highest enmity vallue.


I'm not sure if the variable was being reseted at the end of battle. Is there a way to check this myself?
 

Original thread: https://forums.rpgmakerweb.com/threads/help-with-error-object-too-deep.65199/