Check if variable is being cleaned up + help

I had a issue with Liquid Enemy Enmity, it works like in MMO games where enemies focus a target based on how agressive he is and as in MMO they would act individualy.


But i'd like to know if if this plugin is cleaning up the information stored when battle ends (i got an error that might say it's not). If not could somebody solve this?
As the plugin is right now you can't check your actors after battle (you get "Object Too Deep" error), anything else works fine.





And this is the error

/monthly_2016_07/578449759d036_Semttulo.thumb.jpg.eac0210d35e0a77c9e6f33b054d10a5c.jpg
Given that that plugin was released on 1 November 2015, I think if there really IS a problem with it, it would have been reported long, long ago.


What do you mean by "cleaning up the information stored"?  Even if it didn't, it would not cause an error like that.
All i know is that this plugin is causing this, really.
When you start combat you have a certain value of Enmity, when the battle ends it seems that the enmity remains and if you check an actor in the menu the error occurs.


I've tested my project several times till i've found the cause, idk if it's cuz it was not updated to work on the current version of RMMV or cuz it's not compatible with YEP Battle Core and YEP Battle AI Core (though it was made to work with them only), but Liquidize said himself that he wouldn't recommend anyone to keep using his plugin since he can't keep working on it anymore.
Can you provide the exact messages that you're getting, and screenshot from the console?  Also a screenshot of your plugin manager listing all the plugins you have.


I suspect there's a function that might have the same name in more than one plugin.  You may need to disable OTHER plugins until you can play without the error.  This could help identify which other plugin (if any) is using the same function name.


OR go to your js folder and open it in Atom, then do a global search for each function name that's in this plugin.  That will tell you what other plugins you have that use and/or alias the same function name.


OR you can just change the alias names of all functions in this plugin, which might just solve the problem completely (change where they're defined, and where they're called)
I'll look for those solutions, but the last one is something that i can't do...idk a single about JS


Is this the Atom? https://atom.io/



This is my error:


/monthly_2016_07/578449759d036_Semttulo.thumb.jpg.eac0210d35e0a77c9e6f33b054d10a5c.jpg

 
 but the last one is something that i can't do...idk a single about JS

and here you're wrong - it is extremely simple for you to cause the error Shaz was writing about - all you have to do is save the plugin file under the wrong name and nothing will work anymore.


Plugins need to maintain exactly the filename set by the scripter for them, you cannot change that name (not even if you want a better name to appear on your plugin manager.


And that is also one of the reason why Shaz asked for a screenshot of your plugin manager, which you didn't give - if you don't know how to handle an editor like atom, posting  that is a better solution if you want our help (unfortunately it will take a lot longer that way)
I missunderstood what he said about the screenshot :/


About the name, this is the file name when i download it 

Spoiler
enmity.jpg




If i save it with this name the plugin manager won't recognize it as if it's empty and i get an error.
 

Spoiler
Sem título.jpg









And if you remove the last part of the file's name


 

Spoiler
Sem título.jpg





If i knew the right name would it solve the issue?
The later name should be correct, but if that screenshot is from your project, then it shows your mistake:


That script requires two of Yanfly's scripts (it even names them in the description on the screenshot), but your plugin manager doesn't show any other plugins at all.


That plugin cannot work without its requirement.


And if the screenshot doesn't show your project's plugin manager but was just made for answering, then please again show us the screenshot of your project's plugin manager.


We need to see which other plugins are installed to see if all requirements are correct or if there is another conflicting plugin.


EDIT: and please use [alt]-[prtscrn] instead of [prtscrn] for your screenshots, that makes them smaller and better readable by limiting them to the active window
Actually that's a dummy project, mine has both yanfly plugins, i'll provide a list soon cuz it's kinda big.


Man...in the worst case scenario it may be my processor's fault. Today i had a last playtest wile renaming the plugin, it went smooth, i was able to open my menus and check actors and then my pc froze and now it crashed.
It happened by the very 1st time since i've been trying to use this plugin. I hope this is not the case cuz i don't have money to replace it.
Nah, it won't be your processor.  I'm sure of that.


Yes, that is Atom.  Actually, if you can just zip up your entire js folder and subfolders (make sure they're from your REAL project, not a dummy project or the NewData area) and load them up to dropbox or something, I can run those checks for you.


I don't think it's a file naming issue.  I think there might be a function in that plugin that might be using a duplicate name or something, and I want to see what other plugins use the same functions.


You must have over 150 plugins in your project!  I have no words ... though I'm sure others would leave you eating their dust.  I can't comprehend why a project would need that many plugins.  And I'd be surprised if this is going to be the only issue you have due to the sheer number of them.
I got it working! Thx god it was not a plugin related to gameplay.
I had to disable a japanese plugin that i was using to customize window positions. 


This is the plugin http://triacontane.blogspot.in/2016/03/gui.html?m=1



I've checked Liquid Enemy Emnity and it was cleaning up properly stuff.


I still dunno how i'm gonna change the Aliases...i need to understand what a Alias is 1st.



I probably have less than 100 plugins considering that most of mine are from yanfly and i have something close to half of his list + some plugins from other authors (DreamX, Victor, Galv SRD...)



You still has the blood of a moderator, Shaz

Original thread: https://forums.rpgmakerweb.com/threads/check-if-variable-is-being-cleaned-up-help.65247/