YanFly Save Core crashing game ;-;

Sooo, I've been trying to figure out what's going on here for awhile now. Every time I save with Yanfly's Save plugin it will always give me this:


j08svc.jpg



I made a new project, used the plugin, it saved perfectly fine. So I just thought another plugin was messing up, I turned everything off besides YEP_SaveCore and tried to save again, same thing happened.


Console:

Spoiler
TypeError: undefined is not a function
    at Scene_Save.Scene_File.onSaveSuccess (/C:/Users/Darko%20Pentagon/Desktop/TYTQ/js/plugins/YEP_SaveCore.js:1248)
    at Scene_Save.onSaveSuccess (/C:/Users/Darko%20Pentagon/Desktop/TYTQ/js/plugins/YEP_SaveCore.js:1260)
    at Scene_Save.Scene_File.performActionSave (/C:/Users/Darko%20Pentagon/Desktop/TYTQ/js/plugins/YEP_SaveCore.js:1240)
    at Scene_Save.Scene_File.onActionSave (/C:/Users/Darko%20Pentagon/Desktop/TYTQ/js/plugins/YEP_SaveCore.js:1233)
    at Window_SaveAction.Window_Selectable.callHandler (rpg_windows.js:896)
    at Window_SaveAction.Window_Command.callOkHandler (rpg_windows.js:1420)
    at Window_SaveAction.Window_Selectable.processOk (rpg_windows.js:1150)
    at Window_SaveAction.Window_Selectable.onTouch (rpg_windows.js:1080)
    at Window_SaveAction.Window_Selectable.processTouch (rpg_windows.js:1048)
    at Window_SaveAction.Window_Selectable.update (rpg_windows.js:980)
    at Window_SaveAction.update (/C:/Users/Darko%20Pentagon/Desktop/TYTQ/js/plugins/YEP_SaveCore.js:657)



I'm not too too used to Mv just yet, mainly used VX and Ace, so yeah. I'm a noob lol.


Also, Idk why I thought of this, but I have 'formation' disabled in the system options, I turned it back on and it seemed like it was saving corectly giving me the "are you sure you want to overwrite this file?" then it dose the save sound and crashes, this time giving a different error.


2ebco5f.jpg


Spoiler
Uncaught TypeError: undefined is not a functionrpg_managers.js:1588 SceneManager.onError
 file:///C:/Users/Darko%20Pentagon/Desktop/TYTQ/js/plugins/YEP_SaveCore.js SceneManager.onError
/C:/Users/Darko%20Pentagon/Desktop/TYTQ/js/plugins/YEP_SaveCore.js:1248 Uncaught TypeError: undefined is not a function



Any help is welcome, just be gentle :3


PS: I haven't changed it at all, I haven't even gone through all the settings ;-; so lazy today lol.
I've just recently started to have this problem each time I save with Yanfly's save core plugin.


It was working fine a few days ago, I must have changed something, quite possibly the same thing you did!?


Sorry I couldn't help but hopefully someone knows what is going on?


If I find a solution I'll be sure to post it.

Capture.PNG

Capture.PNG
I found the issue; As soon as I finished the update, saving with Yanfly's Savecore works perfectly  😀


Good luck with your project!







Capture.PNG
I already have the latest version, so that can't be my problem :/
Oh dear, sorry about the false victory post haha.


I've no idea what could be the problem then! It's working fine for me, I can post the settings of my Savecore plugin when I get home from work if you like?


That way you could see if you have any different settings that could be causing a problem.
I am getting the same  error.


Line 1248 inside YEP_SaveCore.js is the culprit.


StorageManager.cleanBackup(this.savefileId());


Open up the YEP_SaveCore.js file with notepad++ and scroll to line 1248,


put a "//" minus the quotations infront of the line of code as such:


//StorageManager.cleanBackup(this.savefileId());


and that will fix the crash and it will still save, load and delete perfectly fine as far as my testing went.


I'm not sure what the line of code actually does... saves a backup?
put a "//" minus the quotations infront of the line of code as such:


//StorageManager.cleanBackup(this.savefileId())





 

Wow... after crash I checked the line of code that caused problems... And removing this line from code (with "//", making line a comment) helped! Thanks.
Yay i was looking for an answer for the same problem thanks ^^
@Jory4001
This is a really old thread, but seriously thanks a ton for that! :hswt:
I've been trying to deal with the plugin for a few days now just somehow getting by and after remembering about the console I saw line 1280 in mine too, but I was worried if it was okay to cancel it out..
But it was and the darn thing works right now, thanks a ton!
That last one actually counts as a necropost as does this so apologies in advance (and I'm not trying to micromanage either compared to stating the obvious) however this same madness also happened to me so make what you will.

Aside from the obvious cross check by the script author, the only other request I have is to mark this as a resolved issue.

EDIT: Perfectly-safe change, tested here as well. Also, on my version it's actually line 1394 (cross checked with a code edit view in Visual Studio) but otherwise the fix is the same.

EDIT 2: That's including the header in case you're wondering what the difference is.

EDIT 3: This is also a good reason to check code compatibility if I say so myself. Having just moved development on my project from VXAce to MV because discount deal (and from other programming experience) this cannot be stressed far enough.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-save-core-crashing-game.62303/