NathanKell
...
I finished the upgrade code, and so I'm now testing the adding of the new global variables.
But here's the bad news: it looks very likely that adding anything beyond an int or two--i.e. new objects, especially new object arrays--is causing real trouble.
So I have an alternate idea. Add a 12.1 to 12.2 upgrade function that can be dropped on a 12.1 install (to the console). Have anyone who wants to upgrade add that file, turn on logging, load their save, and press F12.
That will dump all characters and any other vital arrays to text (in the compile log).
Then we write a little program to parse the dumpattribute code into readable POTC code, have the person install 12.2, and ingame press F12 to restore their old gamestate.
Otherwise we'll be ripping out too much of 12.2
(Now, a better way to do this would be to simply parse the save file itself--the data's all there and in plaintext...)
On the plus side, doing it that way will mean we can also upgrade to b13.
But here's the bad news: it looks very likely that adding anything beyond an int or two--i.e. new objects, especially new object arrays--is causing real trouble.
So I have an alternate idea. Add a 12.1 to 12.2 upgrade function that can be dropped on a 12.1 install (to the console). Have anyone who wants to upgrade add that file, turn on logging, load their save, and press F12.
That will dump all characters and any other vital arrays to text (in the compile log).
Then we write a little program to parse the dumpattribute code into readable POTC code, have the person install 12.2, and ingame press F12 to restore their old gamestate.
Otherwise we'll be ripping out too much of 12.2
(Now, a better way to do this would be to simply parse the save file itself--the data's all there and in plaintext...)
On the plus side, doing it that way will mean we can also upgrade to b13.