Cannot Remove Property 'removeAgro' of undefined

Hey all, 


So, I have encountered a problem that crashes the game when a user goes to save a game.   Any time they select a save file slot and click save the error "Cannot Remove Property 'removeAgro' of undefined" appears.   I have events that "autosave" which still seem to work and will save over slot one.   Manual saving seems to break everything.   Also if i try manual saving over slot 1 (the autosave 1) the next time I try to load the game i get a new error "undefined is not a function"  If I disable YEP_SaveCore then the save file works again and I can autosave. 


Steps I am taking:

  1. Event Autosaves on saveslot 1 (autosave continues to work)
  2. Player accesses the menu to save game - selecting any save slot (excluding save slot 1) causes the game to crash with error "Cannot Remove Property 'removeAgro' of undefined."  The save file can still be loaded.
  3. Player accesses the menu to save game - selecting save slot 1 causes the game to crash with error Cannot Remove Property 'removeAgro' of undefined.  The save file will not load with error: "undefined is not a function"
  4. Disabling the YEP_SaveCore plugin fixed the "undefined is not a function" error


  • I am using Yanfly YEP_Savecore along with several other Yanfly plugins and Quasi plugins for ABS.  (See images elderine1+2)
  • I have tried disabling plugins but still seem to have the same issue.
  • I have tried the debug console to get more information but now it seems to be broken too :S  I get  "detached from the target" error (see elderine3.png)



elderine1.PNGelderine2.PNG


View attachment 47593
please give a screenshot of the console output of that error, we need to know all plugins involved in it.
Hey Andar, unfortunately my console doesn't seem to be working either.  I have this error when i load it.elderine3.PNG
Did you try making a new save and seeing if it happens with it?


Some plugins do not accept save files made before they were added...


[Edit] Nevermind, reread the thread. Tried turning off every save and checking if it may be the problem? Compatibility is not always guaranteed...
Restarting the game with no saves is fine and saves seems to work ok, but as you progress in the game and have autosaves I think the problem occurs.  I shall test some more and see if I can pinpoint the issue. 
Sorry, I said saves, I meant plugins.


Did you add one when the problem started? maybe the problem is compatibility. The problem may even be with an older plugin it altered.
I am getting this very same error when I try to save in-game.  I am also using quasi-abs and I am inclined to believe that the error is associated with that plugin specifically, though I have no idea how to fix it, unfortunately.  I do not have the yep save core plugin, by the way.


After disabling all plugins except the quasi-plugins I am once again able to save the game...thought the problem might be plugin compatibility issues...I went through the list enabling one plugin at a time but the problem disappeared and hasn't returned yet...


All I can say at this point is that it seems to be a problem related to something that changes in-game...


My guess is that removeagro is some code from quasiABS(since "removeagro" sounds like a real-time battle variable), and there is some kind of error when it tries to save information about quasiABS enemies you have defeated in the previous area...that seems to match the criteria that triggers the save error for me.  The error happens when I defeat enemies, move onto another map, then try to save.  There are other errors I have had with saving and loading enemies in quasiABS so if nothing else I am fairly certain that the quasiABS plugin is the source of the error.
I think that might be the case.   The plugin text does detail removeAgro twice. 

Original thread: https://forums.rpgmakerweb.com/threads/cannot-remove-property-removeagro-of-undefined.68402/