Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
dev13

Script Error on line 219, 239

Question

EDIT: I guess the game just couldnt switch from one character to another, So I just went back to my first way of transforming using a button, and setting variables and switches...

 

Please can anyone help me?

 

It says this when I try and save:

 

Script 'Scene_File' line219: TypeError occurred. no marshal_dump is defined for class Sprite_Character

 

I also get a: Script 'Scene_File' line 239: EoFError occurred. End of file reached.

 

So I've searched around and couldn't find any help that related to me...I am using Jets side-view battle system. This is also a script I have but I dont even think it works.

 

[spoiler=Spoiler Title]

=begin

From an event, call

 set_bfloor(filename,x,y,z,opacity)

to set the battlefloor. You can just call

 set_bfloor

to restore defaults. You do not have to use all of the variables, but they must
be in order, eg:

set_bfloor(filename)
set_bfloor(filename,x,y)

=end

class Spriteset_Battle
 def create_battlefloor
@battlefloor_sprite = Sprite.new(@viewport1)
@battlefloor_sprite.bitmap = Cache.system($game_system.battlefloor[0])
@battlefloor_sprite.x = $game_system.battlefloor[1]
@battlefloor_sprite.y = $game_system.battlefloor[2]
@battlefloor_sprite.z = $game_system.battlefloor[3]
@battlefloor_sprite.opacity = $game_system.battlefloor[4]
 end
end

class Game_System
 attr_accessor :battlefloor
 alias initialize_bfloor initialize unless $@
 def initialize
@battlefloor = ["BattleFloor",0,192,1,128]
initialize_bfloor
 end
end

class Game_Interpreter
 def set_bfloor(filename="BattleFloor",x=0,y=192,z=1,opac=128)
$game_system.battlefloor = [filename,x,y,z,opac]
 end
end

 

 

The problem normally occur after I use my transform skill in battle for the first time, then try to save. I need to continue working on this but I cant save and load the game, so its hard for me to playtest to make sure everything works..Please help

Edited by dev13

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I'd probably have to take a look at your battle system script to pinpoint the exact error, but I can already tell you why it's happening: somewhere in the script, a Sprite_Character object is being added to an object that is written to the save file when you save.

 

Sprite_Character, does not have any way to be serialized (Ruby refers to this as Marshalling), therefore you get the "no marshal_dump" issue (marshal_dump is the internal method that Ruby uses to Marshal objects)

 

But to fix it, I'd need to see the offending script

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...