ID:272849
![]() Apr 15 2009, 1:10 pm
|
|
Hello, I am a co-owner of Naruto: The Lost Souls. I and the Owner have been having problems on how to update the game without whiping all the character data. Can anyone explain how that is possible, it'd be appriciated.
|
![]() Apr 15 2009, 1:21 pm
|
|
Provide a game version number in the savefiles. Then you can filter out things you don't want loaded and set to default those variables which are messed up.
|
So everytime you update you add the version number? And that should basically set the savefile in check so players' data doesn't get deleted?
|
This Dream Makers article discusses this very topic.
|
Spunky_Girl wrote:
By NOT deleting their savefiles maybe? >_> I found that to be quite comical. Ha HAAaa -adjusts monocle- |
I highly doubt anyone isn't smart enough to keep the savefile. Plus I found out the problem, the owner never set a version number in his savefile, so thanks anyway for all the help.
|
Ryu-Kazuki wrote:
I highly doubt anyone isn't smart enough to keep the savefile. I'd make an argument against that seeing as how you think adding a version number to the savefile will automatically take care of everything. It won't, you have to do everything yourself. |
The version number has nothing at all to do with the savefiles of your game?
The only problem where it "possibly" could affect the savefiles in some way, would be if you updated the game in some way where you added/deleted variables and/or verbs, causing the savefiles to not load correctly >_> |
Ryu-Kazuki wrote:
So everytime you update you add the version number? And that should basically set the savefile in check so players' data doesn't get deleted? You missed the point entirely. You save the version number. When you load, you check the version number. Depending on the version number, you load certain variables that were valid in that version, make adjustments to values if necessary, and come up with values for variables that weren't available in previous versions. As Kaioken said, this article covers this, particularly in the "Keep Version Info" section. |