1999Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Naming and Directories? -->
<!--X-From-R13: [nex Uevggre <znexNreqbf.Egnasbeq.SRG> -->
<!--X-Date: Thu, 11 Mar 1999 23:44:54 &#45;0800 -->
<!--X-Message-Id: 199903120744.XAA16394#erdos,Stanford.EDU -->
<!--X-Content-Type: text -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Naming and Directories?</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:mark#erdos,Stanford.EDU">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00546.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00548.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00551.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00548.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00547">Author</A>
&nbsp;|&nbsp;<A HREF="#00547">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00547">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Naming and Directories?</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Naming and Directories?</LI>
<LI><em>From</em>: Mark Gritter &lt;<A HREF="mailto:mark#erdos,Stanford.EDU">mark#erdos,Stanford.EDU</A>&gt;</LI>
<LI><em>Date</em>: Thu, 11 Mar 1999 23:44:08 -0800 (PST)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
In MUDs I'm familiar with, directories seem to be done in a very ad-hoc 
fashion.  Objects may have no name associated with them at all, or a
name can be discovered only by exhaustive search.

Dikus are a partiularly bad example here.  Doing a "tell" may involve 
scanning the entire list of online players.  Objects (I mean driver-level
objects including mobs and items) are named only by their location in memory; 
object prototypes have essentially meaningless integer IDs.

There might be some benefit it doing naming explicitly rather than implicitly.
Has anyone had experience with a more structured approach to using directories
in a MUD?  

One obvious benefit would seem to be in persistence--- having a "database" 
of objects rather than just a collection makes them easier
to manage.  (Now that I think more about it, ColdC seems like a good
example, but IIRC, object names are just opaque identifiers.)

A directory of all objects seems particularly useful for administration and 
debugging.  It would be easier to perform searches on the objects in the
game, or identify "problem" objects while debugging.

It might also be useful for implementing communication between NPCs and
NPC memory by providing a basis for identifying entities.  For example, 
information about both specific objects (the sword 'GeekKiller') and classes 
of objects (a longsword) could be tagged using a name recognized using the 
directory service.  This seems preferable to passing pointers around,
anyway.  :)

A potential drawback I see is increased memory usage (perhaps prohibitely
so.)  Benefits to CPU time by doing "smarter" lookups are probably not likely 
to be a big win.

Mark Gritter
mgritter#cs,stanford.edu


_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00550" HREF="msg00550.html">Re: [MUD-Dev] Naming and Directories?</A></strong>
<ul compact><li><em>From:</em> Hans-Henrik Staerfeldt &lt;hhs#cbs,dtu.dk&gt;</li></ul>
<li><strong><A NAME="00548" HREF="msg00548.html">Re: [MUD-Dev] Naming and Directories?</A></strong>
<ul compact><li><em>From:</em> "Matthew D. Fuller" &lt;fullermd#futuresouth,com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00546.html">Re: [MUD-Dev] How to support 1000+ simultaneous connections, and some philosophy.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00548.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00551.html">[MUD-Dev] distributed, _untrusted_ servers</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00548.html">Re: [MUD-Dev] Naming and Directories?</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00547"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00547"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev] Elder Games</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00617" HREF="msg00617.html">Re: [MUD-Dev] Elder Games</A></strong>, 
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Tue 16 Mar 1999, 16:14 GMT
<UL>
<LI><strong><A NAME="00643" HREF="msg00643.html">Re: [MUD-Dev] Elder Games</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Wed 17 Mar 1999, 22:33 GMT
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00606" HREF="msg00606.html">Re: [MUD-Dev] Elder Games</A></strong>, 
Benjamin D. Wiechel <a href="mailto:strycher#toast,net">strycher#toast,net</a>, Tue 16 Mar 1999, 12:14 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00551" HREF="msg00551.html">[MUD-Dev] distributed, _untrusted_ servers</A></strong>, 
Oliver Jowett <a href="mailto:icecube#ihug,co.nz">icecube#ihug,co.nz</a>, Fri 12 Mar 1999, 13:45 GMT
<LI><strong><A NAME="00547" HREF="msg00547.html">[MUD-Dev] Naming and Directories?</A></strong>, 
Mark Gritter <a href="mailto:mark#erdos,Stanford.EDU">mark#erdos,Stanford.EDU</a>, Fri 12 Mar 1999, 07:44 GMT
<UL>
<LI><strong><A NAME="00548" HREF="msg00548.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Matthew D. Fuller <a href="mailto:fullermd#futuresouth,com">fullermd#futuresouth,com</a>, Fri 12 Mar 1999, 11:04 GMT
<UL>
<LI><strong><A NAME="00569" HREF="msg00569.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Sat 13 Mar 1999, 14:13 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00550" HREF="msg00550.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Hans-Henrik Staerfeldt <a href="mailto:hhs#cbs,dtu.dk">hhs#cbs,dtu.dk</a>, Fri 12 Mar 1999, 12:56 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00567" HREF="msg00567.html">Re: [MUD-Dev] Naming and Directories?</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 13 Mar 1999, 12:57 GMT
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>