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] Loading game using "Call RGSS Script" ?

Status
Not open for further replies.
Some time ago, I've posted a thread that asked how could the game be saved using RGSS scripts, using "Call RGSS Script" command...

The code worked perfectly :

Code:
dummy = Scene_Save.new
file = File.open("Save1.rxdata", "wb")
dummy.write_save_data(file)
file.close
dummy = nil

Ok, saving using scripts is completely resolved....but how can I make this, but instead of saving, loading a saved game?

I would really appreciate if someone could help me out with this !

Thanksss ^^
 
This isn't tested or anything, but try using this:
Code:
dummy = Scene_Load.new
file = File.open('Save1.rxdata', 'rb')
dummy.read_save_data(file)
file.close
dummy = nil
 
hmmmm, the code works fine, but everything freezes after using it, events and stuff..

so I added a $scene = Scene_Map.new after it, and now it works perfectly =)

thanks Daniel, topic is resolved...
 
Status
Not open for further replies.

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