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.

---
James

_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to