No Marshal_Dump Error ACE Save System Compatibility

Hi Everyone,

I'm have a problem where I can't ever save due to a marshal.dump error. The exact error is:

no marshal_dump is defined for class Proc

the line is: 

header[:map]           = Marshal.load(Marshal.dump($game_map))

in Yanfly's Ace Save System.

After reading through everything I can so far, this means that the system is having a problem when loading the dump of a Map file.

If I comment that line out the error is on the next line:

header[😛layer]        = Marshal.load(Marshal.dump($game_player))

Finally if I comment out that line the error is in the DataManager on the line:

Marshal.dump(make_save_contents, file).

There are a lot of other scripts in my project and I'm pretty sure it is a compatibility issue.

My main scripts are:

All Yanfly Engine Scripts

- Yami classical ATB

- Yami Battle Symphony

- yami pop messages

any ideas would be helpful. I'm not new to programming, just new to Ruby and RPG Maker Scripting in general.

Thanks
Figure out which script is causing the problem. One of them is storing a proc in an object that will be saved.
Hello, the problem is very easy to fix, but its exact location must be known first. Paste the following code in a new slot above Main:

module DataManager class << self alias_method🙂procfix_original_make_save_contents, :make_save_contents) def make_save_contents str = "PROC PROBLEM! Location: " contents = procfix_original_make_save_contents contents.each do |key, object| object.instance_variables.each do |variable| value = object.instance_variable_get(variable) if value.respond_to?🙂default_proc) && value.default_proc msgbox "#{str} class #{object.class.name}, variable #{variable}" end end end end endendAttempt to save again, and it will tell you the location of the error. Take a screenshot of that error message box and post it here, also, perform a global search in the script editor to find the variable that the error message shows. That wil point you exactly to the script causing the problem. Once you have those two things, post them here. 🙂
Whoa hey Tsukihime! I was actually using your script of 
 

module DataManager def self.save_game(index) save_game_without_rescue(index) endendTo track down the problem.

It turns out of all things it was a Pathfinding Script that was not allowing the game to be saved. Removing that fixed the problem.

And thanks to SOURCE for the new script, definitely going to be helpful in the future when things break again.

Thanks for replying everyone.
I have that problem to and the problem I know is coming from schala abs system script. It allows me to save when I new game by the save point but once i move in a house and walk back out to save again it has that error.

KOC-316, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.



Odds are your issue is going to be a different cause, and we prefer you to make a new thread for that reason.

Original thread: https://forums.rpgmakerweb.com/threads/no-marshal_dump-error-ace-save-system-compatibility.35144/