View Single Post
  #10    
Old July 30th, 2012 (2:06 PM). Edited July 30th, 2012 by Rai Rai.
Rai Rai's Avatar
Rai Rai Rai Rai is offline
Master of everything!
     
    Join Date: Aug 2010
    Gender: Male
    Posts: 267
    Quote:
    Originally Posted by I-Like-Shiny-Pichu View Post
    It is now giving me an error upon loading the game.."Cannot convert Game_Switches to integer". Any ideas what the problem is? Thanks so much for all your help so far, I can feel that we are very close to solving this
    I got a feeling it's because I made a little mistake on this part of the code:
    Code:
        savefile=(RTP.getSaveFileName("Game.rxdata"))
        if safeExist?(savefile)
          File.open(RTP.getSaveFileName("Game.rxdata"),"wb"{|f|
             Marshal.dump($game_variables,f)
             Marshal.dump($game_switches,f)
          }
        end
    Change this line File.open(RTP.getSaveFileName("Game.rxdata"),"wb"{|f| to File.open(RTP.getSaveFileName("Game.rxdata")),"wb"{|f|
    I accidentally missed one bracket on the line XD. Hopefully that should fix it.

    EDIT:
    Ignore that, it seems the method for saving the file information is a bit different compared to what I was expecting. I'll add in a fix soon as I can.
    __________________
    Reply With Quote