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.

Saving/Loading errors

Hi all i'm having some issues with saving and loading let me break it down
im using the scripts
actor battle graphics,animated battlers,and map location. funny thing is i can save/load games when i start normally without any fights. but after i get to the world map and after 1 battle when i try to save it gives me this script "scene_file" line 219 no marshal dump is defined for class_sprite battler. I also get line 242 and 239 errors. could it be that the scripts are conflicting? im also using sprited battlers if thats an issue. any help appreciated thanks
 
could you post the scripts?
This is a problem i encountered early on when scripting my own stuff, but was able to make a workaround, give us a look at the scripts, and the error message and i'l see what i can do
 
Has the author of this script made any changes to Scene_File? I can't see any

The game works fine right? And then when you save/load you get the errors.

It seems to me, the author of this script has made a new global variable or something and hasn't aliased read/write data at all to save the changes, which is why stuff is missing. I'm at work at the mo but will investigate further over the next 24 hours.
 
hmmm i know one of the scripts is still in working progress the animated one, so im guessing its still buggy ill try taking the actor/animated battler scripts out and see if any thing works.
 

khmp

Sponsor

krzyflipx":kl9yn2vb said:
hmm i dont know whats happening but something seems weird with the post i posted i added images but how do i post scripts for the save data?

Inside your game directory is folder called "Data". Within that is a file called "Scripts.rxdata". This file contains all the scripts your game is currently using. That is the file I would like you to make available if possible. It will shorten the amount of guesswork we have to do on this end. The only thing I can think of that might be causing the problem is that you tried loading a save game that existed before Minkoff's script was installed. So if you haven't yet create a new save game with the scritps installed. Unless for some reason its crashing upon startup.
 

khmp

Sponsor

I popped that file into a new project and I was able to save and load without crashing. I apologize for asking for more but could you perhaps create a demo of your project? If you don't feel comfortable or for privacy reasons you can pm the link. Again sorry.
 

khmp

Sponsor

Create an empty section directly below Animated Battlers VX and paste the below code into it.

Code:
#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================
class Scene_Battle < Scene_Base 
  def process_victory
    for actor in $game_party.members
      return if actor.sprite.moving
    end
    for actor in $game_party.members
      unless actor.dead?
        # Set sprite to 'Victory' pose
        actor.sprite.pose = 9
        actor.sprite.freeze
      end
    end
    cbs_process_victory
    for actor in $game_party.members
      actor.sprite = nil
    end
  end
end

Good luck with it krzyflipx! :thumb:
 

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