1
0
Selaa lähdekoodia

Merge remote-tracking branch 'bgkjdgbizgblzdgbr/master'

KevinSmarts 3 vuotta sitten
vanhempi
säilyke
e8793a03a8
2 muutettua tiedostoa jossa 24 lisäystä ja 0 poistoa
  1. 14 0
      locations/saveg.qsrc
  2. 10 0
      locations/saveupdater.qsrc

+ 14 - 0
locations/saveg.qsrc

@@ -1,4 +1,18 @@
 # saveg
+!! This file is for adding version numbers to save games, 
+!! which is be used by the save game updater to change save variables that have been replaced by newer variables. 
+
+!! If you change a variable, then you should update the version is this file. (In most cases just increase version_patch by 1.)
+!! Then the version number of your new version will be ((100*version_major +version_minor)*100+version_revision)*100+version_patch.
+!! For example if version_major = 0, version_minor = 8, version_revision = 2, version_patch = 4 then the new version number is 00080204.
+
+!! You should then add the updates of the variables in the bottom of saveupdater.qsrc starting with adding a line: 
+!! if ((100*version_major +version_minor)*100+version_revision)*100+version_patch  < "new version number":
+!! where "new version number" should be replace by the number you got here. (In the example above this would be 00080204.)
+!! Then add you replacement of variables after this line.
+
+!! When you do this you should always commit this file and saveupdater.qsrc at the same time.
+
 version_major = 0
 version_minor = 8
 version_revision = 2

+ 10 - 0
locations/saveupdater.qsrc

@@ -1,4 +1,14 @@
 # saveupdater
+!! This file is for updating save game when one variable have been replaced by another.
+
+!! If you have replaced a variable for another, then you should first go to saveg.gsrc and update the version number as instructed there.
+!! Then at the bottom of this file just before the last end add the following line:
+!! if ((100*version_major +version_minor)*100+version_revision)*100+version_patch  < "new version number":
+!! where "new version number" should be as instructed in the start of saveg.qsrc
+!! Then add you replacement of variables after this line. You can see how this is done by looking through this file. 
+
+!! When you do this you should always commit this file and saveg.qsrc at the same time.
+
 
 if ((100*version_major +version_minor)*100+version_revision)*100+version_patch  < 00080202: