Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[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 :]
 
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?
 
I may have fixed it. Insert this script below the Books System:
[rgss]#==============================================================================
# Game_System
#==============================================================================
 
class Game_System
  def clear_save_hash
    @save_hash = {}
  end
end
 
#==============================================================================
# Scene_Save
#==============================================================================
 
class Scene_Save
  alias_method :seph_coldbooksfix_scnsav_init, :initialize
  def initialize(*args)
    $game_system.clear_save_hash
    seph_coldbooksfix_scnsav_init(*args)
  end
end
 
[/rgss]

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 :]
 

vengan

Member

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.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top