rpg_managers.js Can't save game?

Somehow my project started to bug out horribly... Now when I want to save I just get a beep sound and the game doesn't save...


Sometimes it would save but in the next try it would beep and erase the game save immediately!


Via console it seems the error is in the rpg_managers.js core plugin, I have no idea what is going on...


Also this seems to have started happening after I used "sprite map cache" and "ark save engine" plugins. I don't know if that helps...


Please help! Otherwise I would have to scrap the whole project because this bug completely broke the whole game...
Please post the whole stacktrace (press F8 to open the console) and links to the plugins.
I think the issue is being caused by "Ark Engine"; I just read the topic, and some user reported that bug. Apparently, and if I understand correctly, there's an error when you try to load the game, but it happens at random times, though it's pretty easy to reproduce the bug >.<
Please post the whole stacktrace (press F8 to open the console) and links to the plugins.

 Got it, will do when I arrive home.
I attached a rar whit all plugins I use plus the ark save engine plugin.


As for the console screenshots... are these useful? If I kept expanding the error table it would keep going like what you see on screenshot 2 forever...


The error is "object too deep", also why does it keep happening even after I removed the ark save engine plugin? No plugin I have ever used did this before...

View attachment plugins.rar

Error1.png

Error2.png
Object to deep means that something is calling itself in a recursive loop until the stack overflows - that the savefile is erased is not the bug itself but a consequence of failing to complete the save.


You'll have to find that recursive call, which may or may not be connected to saving - it often happens if you have either a plugin installed two times under different names, or that two plugins overwrite the same function in a way that is incompatible to each other.


Deactivate one of your plugins after another until you know which plugins are involved.
Solved my own problem last night...


Turns out that having events on map that have plugin calls and comments on them while the plugins that use these commands and comments are turned off is a really bad idea...


After erasing said events I can save normally and I tested it a lot already even whit ark save engine.


Went further and spawned on a test map whit no events and the same pligins turned off, I could save because events who made use of these plugins where not present...


LESSON LEARNED.

Original thread: https://forums.rpgmakerweb.com/threads/rpg_managers-js-cant-save-game.57835/