Re: vnums vs rnums

From: Angus Mezick (amezick@edgil.com)
Date: 08/29/00


Mike,
Vnums are necessary for humans mostly. (there are some code uses for them)

Rnums are the number assigned to the thing on load from the data files.
They represent the position of the thing in the global arrays.  A Rnum for
a certain thing can change between reboots as things are added to and
removed from the mud. (esp things earlier in the list than the thing being
used)

Vnums are the number assigned to the thing by a builder.  Vnums are a handy
way of eternally identifying a thing without having to remember it's rnum
and take into account that the rnum has changed.  Remember, OLC hasn't
always existed.  People (masocists) used to write world files by hand.  So
the mud would not know if something was added or removed.

--Angus

Mike Redick wrote:
>
> Ok, just outta curiousity... why are there both vnums _and_ rnums?  I've
> looked at the code and tried to figure it out, but my conclusion was that
> vnums weren't really necessary so maybe I missed somethinhg... but if
> anyone can explain it to me thanks :)
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>      +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT