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.

Marshal_dump problem

When I try to save the game after I talk to an NPC it gives the error message:
Script 'Complete Faceset & Inn System' line 1287: TypeError occurred.

no marshal_dump is defined for class Heroe_NPC_Name
 

khmp

Sponsor

Did you add the line below?
Code:
Marshal_dump(Heroe_NPC_Name, file)

Heroe_NPC_Name is a class representing a window. I guess you can save an instance of that class but not the class itself. Not like that. Anyway why would you want to save it? I looked at it and it doesn't look like it contains anything that you would want saved.

Also it's Marshal.dump(object, file) not Marshal_dump(object, file).

In any case delete or comment out that line. It's line 1286 inside Complete Faceset & Inn System. I then deleted the save. Played the game and tried to save and it worked. I was also able to load this save.

Good luck with it Calixte9! :thumb:
 
I think you're trying to dump the class itself not an instance of the class.
EDIT: Okay, I'll read next time >.> (I'll fix it at least then)
EDIT2:

Alright the problem was when $game_system is being marshaled it also marshaled your modified Interpreter which had an instance of Heroe_NPC_Name (@who_window). So in your 'delete' method just add '@who_window = nil' to remove the link to that instance. It should now look like:

Code:
  def delete
    @who_window.dispose
    @who_window = nil
  end
 

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