On Fri, Dec 21, 2012 at 11:33:59AM -0800, James Paige wrote: > I am happy with the RELOAD format, and I feel like it is a nice > improvement, but I just ran into something that reminds me that no > format is magical enough to avoid the need to think carefully about file > formats. > > RSAV already has a node like this: > > * battle_menus > * menu > * attack > * spells > * items > > heroes.reld has a node like this: > > * battle_menus > * menu > * kind > * weapon > * attack > * spells > * items > > > Notice the difference? Not only the extra "kind" node, but also the way > that RSAV stores the attack ID of the equipped weapon, but heroes.reld > stores a weapon node indicating that the attack of the current weapon > should be used. > > These are tricky to reconcile, and after some thought, I have decided > that the battle_menus node in RSAV has to be obsoleted. > > Fortunately, I lucked out here. There was never any really important > reason to be saving battle menus in RSAV because there is no way to > change them, so I can simply document the node as obsolete, and stop > writing it to RSAV. > > However, if at some point in the future, we want to add play-time > customization of battle menus, and want them to persist in save games, > the obvious node name "battle_menus" is forever forbidden to us because > it would break old RSAV files.
Actually, I guess since RSAV is version, it would be perfectly possible to name a new node the same as an old node, but the loading code would have to check the version number and distinguiish how it should interpret the node. The documentation would also have to mention the old node structure --- James _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
