Author Topic: Autosave/quicksave/save question  (Read 387 times)

Legacy_Tiggers.no.tail

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +0/-0
Autosave/quicksave/save question
« on: July 12, 2011, 11:22:12 pm »


                Greetings! I'm just wondering what exactly gets saved during the DoSinglePlayerAutoSave() function or by a player quicksaving. My question specifically is, if I decided to store a quest tracking variable on an NPC henchperson, if the player saves, does it save that variable that was stored on the NPC or no? Thanks. Any help is greatly appreciated.
               
               

               
            

Legacy_Rowwena

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +0/-0
Autosave/quicksave/save question
« Reply #1 on: July 12, 2011, 11:52:04 pm »


               Not sure if this is what you are wanting to know, but when you save the game it saves everything that was loaded at initial startup - all quests,characters, and how far along you are on each. For example, you have two areas A & B - and an NPC "Bob" who give a quest involving creatures in both areas. You start the quest and complete half and then save the game. Then you go into the toolset and change some of the creatures, variables, or even delete Bob. If you start a new game it will reflect all the changes, but if you go back to the saved game. everything will be the same as it was before the change including Bob still being there.
               
               

               
            

Legacy_Tiggers.no.tail

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +0/-0
Autosave/quicksave/save question
« Reply #2 on: July 12, 2011, 11:57:11 pm »


               Sorry let me be more specific, I have a character Kesa that I want to store the progress of her 'talking' state. As in "hey this is the first time you've asked about me", "hey now you can ask more about me", etc. If I store the variable on her local variabls as iKesaStory 0/1/2, when they save, does that save the variable that is stored on kesa too?
               
               

               
            

Legacy_Rowwena

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +0/-0
Autosave/quicksave/save question
« Reply #3 on: July 13, 2011, 12:52:51 am »


               Not sure if this helps, but will try again.
The variable states will be saved and I don't think it matters where they are stored. What I was getting at above is that say you save the game between "hey this is the first time you've asked about me" and  "hey now you can ask more about me" that is where it will pick up when you load the save game. If you decided to add another variable in between like "I am still not ready to tell you more" that part of the conversation will only be available for a new game started from the beginning. The saved game would still reflect the old conversation file.
               
               

               
            

Legacy_Tiggers.no.tail

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +0/-0
Autosave/quicksave/save question
« Reply #4 on: July 13, 2011, 01:33:41 am »


               Ah okay, thank you.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Autosave/quicksave/save question
« Reply #5 on: July 13, 2011, 02:05:55 am »


               When you save a Game it saves the entire state of the module. The saved game is larger then the original .mod file. In fact the saved game (.sav) is a Module file (.mod) that has extra information stored in it. So the saved game file can run on its own without the orginal module file. When you reload the saved game you are running the .sav file and no longer running the original module. So yes all of your states will be saved in the saved game and will be the same as when you left the game. A copy of your character will also be saved in the .sav file in the state he was in when the game was saved.

Now if you open the saved game in the toolset and edit something and resave it from the toolset, A lot of the States in the saved game will be lost. The toolset was just not designed to keep track of all of the states in a saved game.
               
               

               


                     Modifié par Lightfoot8, 13 juillet 2011 - 01:06 .
                     
                  


            

Legacy_Tiggers.no.tail

  • Jr. Member
  • **
  • Posts: 82
  • Karma: +0/-0
Autosave/quicksave/save question
« Reply #6 on: July 13, 2011, 02:27:53 am »


               Perfect.