So, I went through the variables I add and made them local variables where I can. But that may not be enough, it may be that there's a limit on the *total* number of variables, local and global combined, but the missing local variables don't cause a crash when loading a save game that has those variables unless you're in that specific area.
So I came up with a new macro that, instead of adding variables, deletes them. I'm adding this to the Fixpack, which will mean that v4.0 will NOT be compatible with any save games that came before. The purpose of this thread is to document which variables I'm deleting.
If someone later wants to do a mod where they actually make use of such stored information (on the assumption that if they wrote the variables, that demonstrates at least some intent to do something with them that was just never implemented), knock yourselves out, just let me know on this thread and I'll stop deleting them. No longer deleting the variables wouldn't cause any save game compatibility issues going forward. But, for now, if the variables serve no purpose whatsoever, better to remove them and reduce the possibility of hitting that hard limit.
There are *tons* of either totally unused or "written but never read" variables in PS:T. I know I've noticed a great many in my fixing stuff. So if you're planning on modding, don't let "I don't want to deal with running out of variables" dissuade you, there'll be plenty of useless variables we can delete for almost anything (within reason) that you want to do, just let me know how many you need and I'll hunt 'em down.
Qwinn
Edited by Qwinn, 28 December 2009 - 12:51 AM.