Re: Version Information?

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 09/21/98

Yup, You would have to use separate files for each player.  Think about this:
What happens when you save the larger struct into the space of a smaller one?
Yikes!   I have just settled for putting off additions that will change the size
of the pfile until a couple stack up and then converting the pfile with a simple
executable.  The only REAL excuse for a pwipe on a machine with binary pfiles is
changing to a machine where they are compatible.  Though, there should be a way
around this too.

______________________________ Reply Separator _________________________________
Subject: Re:   Version Information?
Date:    9/20/98 9:59 PM

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.


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST