On Sat, Sep 19, 1998 at 06:34:07AM -0500, Patrick Dughi wrote: > Has anyone thought of adding versions to their player files (binary) ? > > That is, if you want to make a pfile change, you go ahead and do > it, make the new structures, but keep the old ones. Then have a way to > check for version of pfile, and then load up, setting up defaults for each > new thing, and you're set. > > How? Oh, I don't know. Maybe make the first element of each struct > an integer with a version number, and for each file do something like read > the size of an int , determine struct type, rewind, load up correct struct > type. > This doesn't seem too hard to me, what do you think? > > PjD DG uses versioning for the player files. It uses seperate binary files for each player though, not one huge one. The idea came from David Berry in FL. Eric +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST