Is this possible...?

Started by ForeverZer0, April 14, 2010, 05:58:05 pm

Previous topic - Next topic

ForeverZer0

I was curious if anybody knew if a Proc could be saved with the usual Marshal.dump.  I was using Zeriab's Scheduler script, and used something like this:

Quote

class Game_System

   attr_accessor:schedule

alias zer0_schedule_init initialize
def initialize
zer0_schedule_init
    @schedule = Scheduler.new
  end
end


I thought this would allow the current framewait to be saved, since it is in Game_System,
but I get an error saying that no marshal_dump is defined for Proc class.

I know that certain objects cannot be written to file, but I was just wondering if this was one of them. The Help File is not very specific on this topic.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.