MUD-Dev
mailing list archive

Other Periods  | Other mailing lists  | Search  ]

Date:  [ Previous  | Next  ]      Thread:  [ Previous  | Next  ]      Index:  [ Author  | Date  | Thread  ]

Re: Greetings. :)



> From: Shawn Halpenny <malachai#iname,com>
> On Apr 6,  8:23am, coder#ibm,net wrote:
> >   Objects have Unique IDs.
> 
> I've been kicking this unique ID/object around as well, and was
> wondering about how you generate them?  I haven't been able to find
<snip>
> Any magical algorithms? :)

Well, I use an static double integer (64 bit).  I simply increment it every time I created 
an object.  On boot up, I save the highest object number loaded.
I've seen servers which recalculate all the object numbers at a reboot to recover
the holes.  I don't do this as of yet.

BTW Does anyone know how to create a "magic number" from any given size
block of memory?





Other Periods  | Other mailing lists  | Search  ]