[Resolved] Help with marshal.dump

hey there, this is my first time posting and I've found this site to be useful before, so I decided to give it a try!
anyway!

I've been working on a game for a quite a while now and ive added a few scripts along the way.
Recently, I found this awesome Bestiary and Item Book script and placed it in my game.
It works perfectly, and records all monsters and items without any flaws.

My problem is that when you open up your Bestiary and or Item Book, to check them out, you cant Save your game after. When you try to save it crashes saying, Script 'Scene_Save' line 73:TypeError occured then, no marshal_dump is defined for class Window_BookItem for the Item Book, and no marshal_dump is defined for class Window_Enemy for the Bestiary.

I know almost nothing about scripting, just a few things here and there, and I would really appreciate if someone could help me with this :3
Please and thank you :]
Hmmmm, seems strange that it's trying to dump Window_ objects. Normally you just dump data structure objects.
Can you point me to the script(s) you are using?
would you like a quick demo? I set it up quickly for this sort of predicament
Ok, it looks to me like he's saving way too much data to $game_system. He should be using $game_temp for disposable data.
The Marshall dump function is fussy.
You should contact the author, and get him to fix it. I don't recognize the name "Cold Strong", where is he from?
He's from Brazil, so is the guy who made the Menu add-on. I got the script from another site.
I'll try to contact him then, thanks for helping as much as you could :]
*bump*
Post the demo so we can see the scripts.
Sorry, I had a demo up before but nobody responded.
There you go :p

http://www.megaupload.com/?d=VAAY8577
too lazy to look at the demo but maybe try changing the lines to marshal.dump instead of marshal_dump?
I may have fixed it. Insert this script below the Books System:
  1. #==============================================================================
  2. # Game_System
  3. #==============================================================================
  4.  
  5. class Game_System
  6.   def clear_save_hash
  7.     @save_hash = {}
  8.   end
  9. end
  10.  
  11. #==============================================================================
  12. # Scene_Save
  13. #==============================================================================
  14.  
  15. class Scene_Save
  16.   alias_method :seph_coldbooksfix_scnsav_init, :initialize
  17.   def initialize(*args)
  18.     $game_system.clear_save_hash
  19.     seph_coldbooksfix_scnsav_init(*args)
  20.   end
  21. end
  22.  
Expand to see the code.


Let me know
YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Sephiroth you did it :D!!!!! THANK YOU THANK YOU THANK YOUU!!!!
./end seizure

thx everybody who gave a damn and attempted to help me :]
Sepherothspawn:

Had the same problem with Cold's script, and the fix worked great. Thanks, and you'll be credited -- Traverse
Klassifiziert

Hey,

I'm using also this script.
2 Things which I couldn't figure out:

Firstly, the Enemy Picture is taken from the enemy ID and since I use the animated battlers, it doesn’t look very good. Means, he takes the battler sprite with 4 rows and 11 lines (usual for animates battlers)
How can I put in an order path, in order I can store a normal picture from the enemy.
Hope you know what I mean.

Secondly, how can I hide enemies, which should not be listed in the book. Or also when defeated once, the "???" stays and are not showing the status figures.

Really hope you can help me =) Maybe SephirothSpawn? Since you already took a look into this script.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=61849