Re: Limited Objects

From: Michael K. Lee (
Date: 07/03/95

On Mon, 3 Jul 1995 sjmaster@MIT.EDU wrote:

> >We have implemented this on Death's Domain.
> >What we do is we update the objfile first before assigning
> >the objects to mobs.  That is obvious.
> >What you is read in the objects, and then read in the zone file.
> >If the object is at max or above max, it will not load, due to
> >the constraints in the zone file.
> >You shouldn't have to add another field, referring to the
> >proposed 0 and 1 flag you had for ownership.
> >We don't use any flags of any sort to show if an item is limited.
> >Once again, it reads the objectfile first, like it is loading
> >the players' eq into the game, and it then goes to the zone file.
> I don't think this will quite work, because as far as I can tell 
> Circlemud doesn't read in any individual player's rent file until
> they log in to the game. So the unique objects prototype will be 
> loaded by db.c (obviously) and then the game will create at least 
> one copy of it if its in the zone file. And I think the zone file only
> checks that zone, so if a player gets the unique obj, then leaves the
> zone, on next reset it might put in another (not positive about this,
> but I'm pretty sure if the only copy exists in a rent file then the
> game won't know about it until the guy logs in.) Of course, this could
> be completely wrong...
> I like the idea someone had earlier about giving a unique long int idnum
> to every copy of an object that is loaded, and purging the rent file
> of duplicates on each reboot...  very clever, but I'm havin a bit of a 
> prob trying to implement it!
> Steve

True.  I forgot that circle doesnt read the playerfile until
the player logs in.  What we have done is we load entire file.
It does take a little time in booting, however, it saves time
in creating a new long int for each item.  When the player logs
in, the objectfile is read again.  With a thousand player playerfile and
objectfile, and with 96 zones, over 6000 rooms and who knows how
many objects, it only takes about 3 min to reboot the mud.
That's reading the entire objectfile, world, ALL the numerous
boards we have, text messages, our humongous help file, ...
I know that it only takes like 10 secs or less to boot the current
circle version, but it's the fastest we could do.

(aka Rhys of death's domain and formerly Sorbra of Unknown Mud)

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