The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Essentials Script Multiple save files 2.2

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #26    
Old August 5th, 2014 (1:55 PM).
mej71's Avatar
mej71 mej71 is offline
     
    Join Date: Mar 2014
    Location: Omnipresence
    Gender: Male
    Posts: 1,222
    Just a note, I realized that Mystery Gifts won't work for any past the first file, at least I don't believe. I'll probably fix that at some point.
    Reply With Quote
      #27    
    Old August 5th, 2014 (2:33 PM).
    Wootius's Avatar
    Wootius Wootius is offline
    Glah
       
      Join Date: Mar 2013
      Gender: Male
      Posts: 300
      All right, I'll hold off on that. Didn't really have anything major planned for it.
      __________________
      Pokemon Rebalanced: Red
      Where every Pokemon is useful.
      Reply With Quote
        #28    
      Old August 28th, 2014 (7:34 PM).
      Dragonau Dragonau is offline
         
        Join Date: Aug 2014
        Posts: 2
        I can't seem to get this working. It will only save to slot 4. Looking at variable 99 it seems to be 4 every time I start a new game although by changing


        Code:
        $game_variables[99]=(savenum==1)? 0:(savenum==2)?2:(savenum==3)?3:4


        The 4 to a 1 I can get it to save in slot 1 but the other slots still wont work. Also is variable 32 important?
        Reply With Quote
          #29    
        Old August 28th, 2014 (8:43 PM).
        mej71's Avatar
        mej71 mej71 is offline
           
          Join Date: Mar 2014
          Location: Omnipresence
          Gender: Male
          Posts: 1,222
          Sorry, change this portion, I'm highlighting the additions in red

          right under the line
          Code:
          elsif cmdNewGame>=0 && command==cmdNewGame
          Code:
          savefile=RTP.getSaveFileName("Game.rxdata")
                  savenum=1
                  if safeExists?(savefile)
                    savefile=RTP.getSaveFileName("Game2.rxdata")
                    savenum=2
                    if safeExists?(savefile)
                      savefile=RTP.getSaveFileName("Game3.rxdata")
                      savenum=3
                    if safeExists?(savefile)
                      savefile=RTP.getSaveFileName("Game4.rxdata")
                      savenum=4
                    if safeExists?(savefile)
                      if !Kernel.pbConfirmMessage(_INTL("All current save slots are full.  If you continue you will write over a save slot.  Is this okay?"))
                     savefile=RTP.getSaveFileName("Game.rxdata")
                    retry
          Don't know how I missed that. If you didn't have to choose the slot to replace, savenum didn't get set. So it would always use the "else" option of 4.
          Reply With Quote
            #30    
          Old August 28th, 2014 (9:22 PM).
          Dragonau Dragonau is offline
             
            Join Date: Aug 2014
            Posts: 2
            Thanks It's all good now. Only a slight bug left when saving in slot one for the first time, It will warn you about overriding even if there isn't a save file.
            Reply With Quote
              #31    
            Old September 8th, 2014 (7:52 PM).
            Bowlstir's Avatar
            Bowlstir Bowlstir is offline
            Media Arts and Game Development
               
              Join Date: Apr 2008
              Location: USA
              Gender: Male
              Nature: Adamant
              Posts: 198
              Did everything correctly on a clean version but I'm still getting an Error on line 42 of PokemonSave.

              Anyone else?
              __________________


              Reply With Quote
                #32    
              Old September 23rd, 2014 (11:52 PM).
              mej71's Avatar
              mej71 mej71 is offline
                 
                Join Date: Mar 2014
                Location: Omnipresence
                Gender: Male
                Posts: 1,222
                Quote:
                Originally Posted by Bowlstir View Post
                Did everything correctly on a clean version but I'm still getting an Error on line 42 of PokemonSave.

                Anyone else?
                Super late, but did you install it by copy-pasting the script from here? In several browsers, the formatted view shows up incorrectly. Try clicking Thread Tools, and Show Printable Version from there. That should give you the correct text. I'm also fairly certain this is the problem, seeing as line 42 and even above are from a vanilla v13.
                Reply With Quote
                  #33    
                Old September 30th, 2014 (8:37 PM).
                mej71's Avatar
                mej71 mej71 is offline
                   
                  Join Date: Mar 2014
                  Location: Omnipresence
                  Gender: Male
                  Posts: 1,222
                  Complete revamp of the script. Supports way more save files, autosave files, looks nicer, easy deletion of files, works with Mystery Gifts (haven't actually tested that part out, but by all logic it should).

                  Check it out
                  Reply With Quote
                    #34    
                  Old October 1st, 2014 (6:34 AM).
                  Derxwna Kapsyla's Avatar
                  Derxwna Kapsyla Derxwna Kapsyla is offline
                  Derxwna "The Badman" Kapsyla
                     
                    Join Date: Jun 2011
                    Location: Margate, FL
                    Age: 25
                    Gender: Male
                    Nature: Lax
                    Posts: 394
                    Got an error upon updating. Cause?
                    Code:
                    ---------------------------
                    Touhoumon Faith & Prayer Version 1.8
                    ---------------------------
                    Exception: NameError
                    
                    Message: uninitialized constant PokemonLoadScene::TrainerWalkingCharSprite
                    
                    PokemonLoad:302:in `pbSetParty'
                    
                    PokemonLoad:479:in `pbStartLoadScreen'
                    
                    Scene_Intro:107:in `closeSplash'
                    
                    PBEvent:54:in `call'
                    
                    PBEvent:54:in `trigger'
                    
                    PBEvent:49:in `each'
                    
                    PBEvent:49:in `trigger'
                    
                    EventScene:686:in `update'
                    
                    EventScene:590:in `main'
                    
                    Scene_Intro:139:in `main'
                    
                    
                    
                    This exception was logged in 
                    
                    C:\Users\Andrew_2\Saved Games/Touhoumon Faith _ Prayer Version 1_8/errorlog.txt.
                    
                    Press Ctrl+C to copy this message to the clipboard.
                    ---------------------------
                    OK   
                    ---------------------------
                    For reference, this is on Essentials Build 13. I think this has to do with the error being related to something added in Version 14 of Essentials, which I haven't updated to yet (and wont be until after this demo of my game is released), so is there a way I can revertt back to the 13 version of the continue screen without the trainer animation?
                    __________________
                    Development Blog:
                    For more information future news and updates to any projects, the following blogs are where I post information. You can usually hit me with a message there when it comes to bug reports or feedback, or general conversation about something.
                    Game Projects:
                    In Progress:
                    Reply With Quote
                      #35    
                    Old October 1st, 2014 (6:38 AM).
                    mej71's Avatar
                    mej71 mej71 is offline
                       
                      Join Date: Mar 2014
                      Location: Omnipresence
                      Gender: Male
                      Posts: 1,222
                      Quote:
                      Originally Posted by Derxwna Kapsyla View Post
                      Got an error upon updating. Cause?
                      Code:
                      ---------------------------
                      Touhoumon Faith & Prayer Version 1.8
                      ---------------------------
                      Exception: NameError
                      
                      Message: uninitialized constant PokemonLoadScene::TrainerWalkingCharSprite
                      
                      PokemonLoad:302:in `pbSetParty'
                      
                      PokemonLoad:479:in `pbStartLoadScreen'
                      
                      Scene_Intro:107:in `closeSplash'
                      
                      PBEvent:54:in `call'
                      
                      PBEvent:54:in `trigger'
                      
                      PBEvent:49:in `each'
                      
                      PBEvent:49:in `trigger'
                      
                      EventScene:686:in `update'
                      
                      EventScene:590:in `main'
                      
                      Scene_Intro:139:in `main'
                      
                      
                      
                      This exception was logged in 
                      
                      C:\Users\Andrew_2\Saved Games/Touhoumon Faith _ Prayer Version 1_8/errorlog.txt.
                      
                      Press Ctrl+C to copy this message to the clipboard.
                      ---------------------------
                      OK   
                      ---------------------------
                      For reference, this is on Essentials Build 13
                      Sorry, that was an addition in v14, I forgot about it. Replace that line with
                      Code:
                      @sprites["player"]=IconSprite.new(64,64,@viewport)
                            @sprites["player"].setBitmap("Graphics/Characters/"+filename)
                      and it should work
                      Reply With Quote
                        #36    
                      Old October 1st, 2014 (6:42 AM).
                      Derxwna Kapsyla's Avatar
                      Derxwna Kapsyla Derxwna Kapsyla is offline
                      Derxwna "The Badman" Kapsyla
                         
                        Join Date: Jun 2011
                        Location: Margate, FL
                        Age: 25
                        Gender: Male
                        Nature: Lax
                        Posts: 394
                        And it does work, thanks! One question - I have a second save file from the previous build, how do I convert it so it works with the newer script, since I'm getting the message that there is no other save file.
                        __________________
                        Development Blog:
                        For more information future news and updates to any projects, the following blogs are where I post information. You can usually hit me with a message there when it comes to bug reports or feedback, or general conversation about something.
                        Game Projects:
                        In Progress:
                        Reply With Quote
                          #37    
                        Old October 1st, 2014 (6:44 AM).
                        mej71's Avatar
                        mej71 mej71 is offline
                           
                          Join Date: Mar 2014
                          Location: Omnipresence
                          Gender: Male
                          Posts: 1,222
                          Quote:
                          Originally Posted by Derxwna Kapsyla View Post
                          And it does work, thanks! One question - I have a second save file from the previous build, how do I convert it so it works with the newer script, since I'm getting the message that there is no other save file.
                          What is it named? Save names should be either Game or Game_(with a number 2 or greater), or any of those with _autosave afterwards.
                          Reply With Quote
                            #38    
                          Old October 1st, 2014 (6:46 AM).
                          Derxwna Kapsyla's Avatar
                          Derxwna Kapsyla Derxwna Kapsyla is offline
                          Derxwna "The Badman" Kapsyla
                             
                            Join Date: Jun 2011
                            Location: Margate, FL
                            Age: 25
                            Gender: Male
                            Nature: Lax
                            Posts: 394
                            It was initially game2.rxdata, I just now renamed it to Game_2.rxdata and it's working now, much appreciated again!
                            I can also confirm that Mystery Gift seems to be working on the second save as well, so I guess that can be chalked up to compatable
                            __________________
                            Development Blog:
                            For more information future news and updates to any projects, the following blogs are where I post information. You can usually hit me with a message there when it comes to bug reports or feedback, or general conversation about something.
                            Game Projects:
                            In Progress:
                            Reply With Quote
                              #39    
                            Old October 1st, 2014 (6:50 AM).
                            mej71's Avatar
                            mej71 mej71 is offline
                               
                              Join Date: Mar 2014
                              Location: Omnipresence
                              Gender: Male
                              Posts: 1,222
                              Quote:
                              Originally Posted by Derxwna Kapsyla View Post
                              It was initially game2.rxdata, I just now renamed it to Game_2.rxdata and it's working now, much appreciated again!
                              Awesome! Glad to know it's working.
                              Reply With Quote
                                #40    
                              Old November 2nd, 2014 (7:12 AM).
                              MrVokan's Avatar
                              MrVokan MrVokan is offline
                              Developer of Pokémon FireRedux Overhaul
                                 
                                Join Date: May 2014
                                Location: Norway
                                Gender: Male
                                Posts: 13
                                Heyo! Absolutely awesome script! It works perfectly in my game, but i seem to be having some problems with the Save screen.

                                I'm not the best with scripts but i think i know, somewhat, how i could go about fixing it.
                                In short: When saving, it puts the "Pokédex" text the same row as "Save File:", cutting of the actual save file number and makes the save windows very wide.
                                I'd post a screenshot but it seems i havent reached the post-requirement for that yet ;)

                                If you know, and could help me with this, that would be great. I'll admit ill just screw things up if i start fiddling with the code myself.
                                Reply With Quote
                                  #41    
                                Old November 2nd, 2014 (8:36 AM).
                                mej71's Avatar
                                mej71 mej71 is offline
                                   
                                  Join Date: Mar 2014
                                  Location: Omnipresence
                                  Gender: Male
                                  Posts: 1,222
                                  Quote:
                                  Originally Posted by MrVokan View Post
                                  Heyo! Absolutely awesome script! It works perfectly in my game, but i seem to be having some problems with the Save screen.

                                  I'm not the best with scripts but i think i know, somewhat, how i could go about fixing it.
                                  In short: When saving, it puts the "Pokédex" text the same row as "Save File:", cutting of the actual save file number and makes the save windows very wide.
                                  I'd post a screenshot but it seems i havent reached the post-requirement for that yet ;)

                                  If you know, and could help me with this, that would be great. I'll admit ill just screw things up if i start fiddling with the code myself.
                                  Sorry about that, I guess I never checked that. Find this part in PokemonSave, and add the thing I've colored red.
                                  Code:
                                  if $Trainer.pokedex
                                        loctext+=_INTL("Pokédex<r><c3={1}>{2}/{3}</c3><br>",textColor,$Trainer.pokedexOwned,$Trainer.pokedexSeen)
                                      end
                                  <br> is the code for a line break in text, that's all it needed.
                                  Reply With Quote
                                    #42    
                                  Old November 4th, 2014 (9:15 AM).
                                  MrVokan's Avatar
                                  MrVokan MrVokan is offline
                                  Developer of Pokémon FireRedux Overhaul
                                     
                                    Join Date: May 2014
                                    Location: Norway
                                    Gender: Male
                                    Posts: 13
                                    Quote:
                                    Code:
                                    if $Trainer.pokedex loctext+=_INTL("Pokédex<r><c3={1}>{2}/{3}</c3><br>",textColor,$Trainer.pokedexOwned,$Trainer.pokedexSeen) end
                                    <br> is the code for a line break in text, that's all it needed.
                                    Thanks! Figured it was something like that ;)
                                    Reply With Quote
                                      #43    
                                    Old November 5th, 2014 (6:06 PM).
                                    kcgcrazy kcgcrazy is offline
                                       
                                      Join Date: Nov 2013
                                      Location: Canada
                                      Gender: Male
                                      Posts: 119
                                      Thanks so much for the awesome script, i was looking everywhere for this!
                                      Reply With Quote
                                        #44    
                                      Old December 8th, 2014 (4:25 PM).
                                      mej71's Avatar
                                      mej71 mej71 is offline
                                         
                                        Join Date: Mar 2014
                                        Location: Omnipresence
                                        Gender: Male
                                        Posts: 1,222
                                        Update thanks to MrVokan's suggestions

                                        Includes:
                                        Now finds your last saved/loaded file to use automatically.
                                        Now can help prevent files from being copyied for games with GTS systems
                                        Reply With Quote
                                          #45    
                                        Old December 9th, 2014 (12:33 PM).
                                        MrVokan's Avatar
                                        MrVokan MrVokan is offline
                                        Developer of Pokémon FireRedux Overhaul
                                           
                                          Join Date: May 2014
                                          Location: Norway
                                          Gender: Male
                                          Posts: 13
                                          A great improvement over the previous version :D Great work as always.

                                          Some of the users on my forum have been testing it a bit and as far as we can see, there arent any obvious problems or much needed improvements.. yet ^^,

                                          Only problem we've found is that after compressing the game in an encrypted archive through rpgmaker, the game becomes unable to find the seed.dat file inside the archive.
                                          Reply With Quote
                                            #46    
                                          Old December 9th, 2014 (1:06 PM).
                                          mej71's Avatar
                                          mej71 mej71 is offline
                                             
                                            Join Date: Mar 2014
                                            Location: Omnipresence
                                            Gender: Male
                                            Posts: 1,222
                                            Quote:
                                            Originally Posted by MrVokan View Post
                                            A great improvement over the previous version :D Great work as always.

                                            Some of the users on my forum have been testing it a bit and as far as we can see, there arent any obvious problems or much needed improvements.. yet ^^,

                                            Only problem we've found is that after compressing the game in an encrypted archive through rpgmaker, the game becomes unable to find the seed.dat file inside the archive.
                                            I updated PokemonLoad, let me know if that fixes it.
                                            Reply With Quote
                                              #47    
                                            Old December 9th, 2014 (1:25 PM).
                                            MrVokan's Avatar
                                            MrVokan MrVokan is offline
                                            Developer of Pokémon FireRedux Overhaul
                                               
                                              Join Date: May 2014
                                              Location: Norway
                                              Gender: Male
                                              Posts: 13
                                              Quote:
                                              Originally Posted by mej71 View Post
                                              I updated PokemonLoad, let me know if that fixes it.
                                              Close but no cigar ;)

                                              Code:
                                              Script 'SpriteWindow' line 2166:Errno::ENOENT occured.
                                              
                                              No such file or directory - Data/Seed.txt
                                              Reply With Quote
                                                #48    
                                              Old December 9th, 2014 (1:30 PM).
                                              mej71's Avatar
                                              mej71 mej71 is offline
                                                 
                                                Join Date: Mar 2014
                                                Location: Omnipresence
                                                Gender: Male
                                                Posts: 1,222
                                                Quote:
                                                Originally Posted by MrVokan View Post
                                                Close but no cigar ;)

                                                Code:
                                                Script 'SpriteWindow' line 2166:Errno::ENOENT occured.
                                                
                                                No such file or directory - Data/Seed.txt
                                                Try one more time, just a typo on my part I'm pretty sure. I assume the same thing happens for the loading last saved, but I think I fixed that as well.
                                                Reply With Quote
                                                  #49    
                                                Old December 9th, 2014 (1:36 PM).
                                                MrVokan's Avatar
                                                MrVokan MrVokan is offline
                                                Developer of Pokémon FireRedux Overhaul
                                                   
                                                  Join Date: May 2014
                                                  Location: Norway
                                                  Gender: Male
                                                  Posts: 13
                                                  Quote:
                                                  Originally Posted by mej71 View Post
                                                  Try one more time, just a typo on my part I'm pretty sure. I assume the same thing happens for the loading last saved, but I think I fixed that as well.
                                                  Yea you nailed it this time ^^
                                                  Nice work.
                                                  Reply With Quote
                                                    #50    
                                                  Old December 9th, 2014 (3:42 PM).
                                                  ReVaN777's Avatar
                                                  ReVaN777 ReVaN777 is offline
                                                  Creator of Pokemon Titanium
                                                     
                                                    Join Date: Feb 2012
                                                    Location: Moreno Valley, CA
                                                    Gender: Male
                                                    Nature: Calm
                                                    Posts: 108
                                                    very cool, works perfectly
                                                    __________________
                                                    Khaos Projects
                                                    Reply With Quote
                                                    Reply

                                                    Quick Reply

                                                    Join the conversation!

                                                    Create an account to post a reply in this thread, participate in other discussions, and more!

                                                    Create a PokéCommunity Account
                                                    Thread Tools

                                                    Posting Rules
                                                    You may not post new threads
                                                    You may not post replies
                                                    You may not post attachments
                                                    You may not edit your posts

                                                    BB code is On
                                                    Smilies are On
                                                    [IMG] code is On
                                                    HTML code is Off

                                                    Forum Jump


                                                    All times are GMT -8. The time now is 2:41 AM.