1999Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Marc Hernandez' Server -->
<!--X-From-R13: [nep Vreanaqrm <znepNvnf.wo.pbz> -->
<!--X-Date: Wed, 19 May 1999 22:18:44 &#45;0700 -->
<!--X-Message-Id: Pine.LNX.3.93.990519003158.781B&#45;100000#ias,jb.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 000201be9ee2$193bcea0$5e83e6cf@amd400 -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Marc Hernandez' Server</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:marc#ias,jb.com">
</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="msg00313.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00315.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00291.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00320.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00314">Author</A>
&nbsp;|&nbsp;<A HREF="#00314">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00314">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Marc Hernandez' Server</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>: Re: [MUD-Dev] Marc Hernandez' Server</LI>
<LI><em>From</em>: Marc Hernandez &lt;<A HREF="mailto:marc#ias,jb.com">marc#ias,jb.com</A>&gt;</LI>
<LI><em>Date</em>: Wed, 19 May 1999 01:17:00 -0700 (PDT)</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>
[Greg Munt]
&gt; &gt; [Marc Hernandez]
&gt; &gt; 	Yeah I have been doing this also.  I decided to stop running and
&gt; &gt; implement.  My first and second passes were under C++ with the later one
&gt; &gt; (or is it two now?) under Java[1].
&gt; What made you move from C++, to Java?

	Hmm.  A little personal background.  I resisted even learning java
out of spite.  All the hype around it was pretty annoying.  Eventually I
had to write a compiler in java for my compiler class (we targed the java
.class file format.  It was easy.  And the compiler had the instant
ability to call any other .class file thus giving the compiler the unique
ability of being useful :-).
	So I learned java and found that when I wanted to do something the
language and API support seemed to make it easier.  In C++ I always felt I
was reinventing and reimplementing.  Probably more a personal problem then
one with the language. 
	I do miss templates and operator overloading but there are
actually java compilers with that.  I have not found I have missed
pointers at all and for compiler the lack of aliasing can mean much better
optimisations.
	On the other hand Sun does not directly support linux so the
versions can lag.

&lt;question to Ola about switching code design snipped&gt;

&gt; &gt; 	Do you actually get much on paper?  I find I get a bit then decide
&gt; &gt; to go implement because I do not know how this or that will work.
&gt; &gt; Probably just immaturity in designing multiuser servers.
&gt; 
&gt; Immaturity? I don't think so. Sounds like evolutionary prototyping to me.

	Well that is what I would say in a interview of course.  But then
evolutionary prototyping is good when one does not exactly know the
necessary specifications for the problem neh?  (which is everything but
'Hello World').

&gt; &gt; 	At the core the system is driven by events.  Everything that
&gt; &gt; happens has an event that makes it happen.
&gt; 
&gt; But what makes an event happen? What is the process (ie event/object
&gt; interaction) that causes a character to speak, for example? Do you have an

	Hmm.  I had not made this explicit in the design as I did not
know.  In theory any object (component) can create and send an event.
After getting some game in the game it would probably be good to formalize
this stuff and look at gross inefficiencies[1].

&gt; event source that throws its own kind of event at an event manager (your
&gt; Server object?), which then throws it at the right destination object, which
&gt; reacts accordingly?

	Actually the event manager is a seperate object (in the Java
sense) and not part of the 'world'.  The server is however a 'game'
object.  It handles the sockets for the different client types as well as
the mapping between unique object IDs and the persistant objects.
Probably because I never thought of sending the event manager events ;-).
That might be useful.
	One could give the Server object a body and kill it.  That would
be fun :-).  I currently have the server saying 'Hi' to me since I am the
only one on testing.

&gt; I remember JCL having something with four distinct components. Anything like
&gt; what I've described above?

	Probably.  I did not explicitly read about it but will probably go
look up the past threads on this.

&gt; &gt; Events can be targeted, area or generic.

&gt; Maybe I am making things overly complex (or am I?), but I don't see the need
&gt; for event classifications. First, let's look at targeted and area events:
&gt; these are quite similar. They both propogate events to their contents, it's
&gt; just that targeted events are never sent to areas (assuming that you
&gt; distinguish between rooms and areas - or even if your server has the concept
&gt; of a room at all). For example, you would never send an area event to a
&gt; single character, you would always send it to an area. (I'm starting to feel
&gt; like I'm missing something now.) Generic events need not be handled any
&gt; differently - just have internal objects that provide an interface to the
&gt; system. For example, the ShowThreads event could be sent to, say, the Log
&gt; object.

	Correct.  In some senses it is/could be an optimisation.  Targeted
events do not currently have a position (possible design mistake.  A
'MudLib' will determine if that needs to change).  There are a bunch of
unanswered questions there.

&gt; &gt; 	Area events are a bit different.  They get produced and filtered
&gt; &gt; at production like other events.  Then they get filtered by the area they
&gt; &gt; are in.  The area filters them and decides how to propagate them.  Then
&gt; &gt; the area passes the events to the various objects that care.

&gt; Why aren't targeted events filtered at their destination too?

	Well it is an evolution :-).  They are I probably either a&gt; have
not explicitly programmed it or b&gt; did not clearly state it.  When I work
on this I find I have a nice 'what I want' vision but then have to go deal
with java.lang.reference not quite working right or finalizers not being
called or why my objects immediatly unload just to be reloaded etc.

&gt; &gt; 	For my object system (objects are called components) I wanted a
&gt; &gt; uniform handling of abilities.  Thus components are really just
&gt; &gt; 'containers' for Attributes.  An attribute is where all the work gets
&gt; &gt; done.  Some attributes:
&gt; &gt; Physical: maintains where a component is, including its connectedness.
&gt; &gt; Material: Any materials a component is made of.
&gt; &gt; Contain: this component can contain others that can be contained.
&gt; &gt; ContainedBy: this attribute maintains who it is contained by
&gt; &gt; (I use the 2 above for areas also.  Areas can contain other areas.)
&gt; &gt; Mind: A mind controls a body.  Some minds include: Text- this is a telnet
&gt; &gt; control for a body, Away- this is for controlled bodies that do not have a
&gt; &gt; connected human, NPC- for smarter NPC characters, MOB- for simple run
&gt; &gt; around creatures.

&gt; Can you give some examples of how the Material attribute would be used?

	The material attribute represents the constition of the object and
any physical properties it might have.  Basically things are made of some
material and some process can change them to another material.  Thus
applying heat to metal causes it to soften then melt, while wood burns.  I
do not plan on having a full physical system, but I hope to have some
consistancy.  

&gt; &gt; 	Rather than use simple pointers between components I have Slots.
&gt; &gt; Slots can have constraints placed on them.  Another component is placed in
&gt; &gt; a slot assuming it fits the constraint.
&gt; &gt;
&gt; &gt; 	Taking control of a body is as simple as changing the 'mind' of
&gt; &gt; the character.  If the character is reincarnated or turned into a goat you
&gt; &gt; just change the characters 'body'.

&gt; I *love* these two aspects of your design!

	Thanks.  I think the slot/constraint and event/filter models might
be able to be merged into the same system.  But for now they are not.  I
am still determining how to handle minds put into bodies that suddenly
have new or suddenly do not have capabilities.  Again, 'Game' will
determine that.

&lt;LOTR skipped.  Will respond in seperate thread&gt;

&gt; &gt; 	Oh yeah.  It is for a graphical system but will support anything.
&gt; &gt; I currently have a text based system running atop it, since that way I do
&gt; &gt; not have to develop a client right away.

&gt; &gt; 	Wow.  You read to here?  Even I fell asleep halfway through :-).
&gt; 
&gt; I read with excitement and interest. I am myself interested in area events
&gt; related to the senses (talking should be heard in neighbouring rooms, shouts

	And whispering should be heard by people trying to listen in (if
they can or they have help (tech or magic)).  Additionally a giants
whisper is still loud (ref Wheel of Time Ogier).

&gt; shouldn't be heard across the entire world), particularly smell, which
&gt; no-one seems to have dealt with yet. Also a weather system which can cause
&gt; permanent damage to the world, its inhabitants, and their manufactured
&gt; structures. (I digress.)

	Very cool.  All things to make a game more immersive (I would
hope).  Since I am building a graphic server but running a text mud to
test it I am try to have less of a concept of 'room' and 'area'.  More of
an idea of spaces and structures.  

&gt; You don't seem to have marked where this footnote refers to..?

	hmm cannot seem to find 2 either nor my original sent message.


Marc Hernandez 
5 billion neurons can't be wrong.  
[1] You know the N^2 or N! ones that Ola was saying academics are
concerned with. 





_______________________________________________
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="00320" HREF="msg00320.html">[MUD-Dev] Java &amp; MUD servers</A></strong>
<ul compact><li><em>From:</em> "Laurent Bossavit" &lt;bossavit#cybercable,fr&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00267" HREF="msg00267.html">[MUD-Dev] Marc Hernandez' Server</A></STRONG>
<UL><LI><EM>From:</EM> "Greg Munt" &lt;greg#uni-corn,demon.co.uk&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00313.html">Re: [MUD-Dev] Custom Server Roll Call?</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00315.html">Re: [MUD-Dev] Multi-threaded mud server.</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00291.html">RE: [MUD-Dev] Marc Hernandez' Server</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00320.html">[MUD-Dev] Java &amp; MUD servers</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00314"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00314"><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] Marc Hernandez' Server</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00274" HREF="msg00274.html">RE: [MUD-Dev] Marc Hernandez' Server</A></strong>, 
Jay Carlson <a href="mailto:nop#mitre,org">nop#mitre,org</a>, Mon 17 May 1999, 03:48 GMT
<UL>
<LI><strong><A NAME="00281" HREF="msg00281.html">RE: [MUD-Dev] Marc Hernandez' Server</A></strong>, 
Travis S. Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Mon 17 May 1999, 15:25 GMT
</LI>
<LI><strong><A NAME="00285" HREF="msg00285.html">RE: [MUD-Dev] Marc Hernandez' Server</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Mon 17 May 1999, 15:47 GMT
</LI>
<LI><strong><A NAME="00291" HREF="msg00291.html">RE: [MUD-Dev] Marc Hernandez' Server</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Tue 18 May 1999, 06:36 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00314" HREF="msg00314.html">Re: [MUD-Dev] Marc Hernandez' Server</A></strong>, 
Marc Hernandez <a href="mailto:marc#ias,jb.com">marc#ias,jb.com</a>, Thu 20 May 1999, 05:18 GMT
<UL>
<LI><strong><A NAME="00320" HREF="msg00320.html">[MUD-Dev] Java &amp; MUD servers</A></strong>, 
Laurent Bossavit <a href="mailto:bossavit#cybercable,fr">bossavit#cybercable,fr</a>, Fri 21 May 1999, 04:52 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00316" HREF="msg00316.html">Re: [MUD-Dev] LOTR and Mud [was: Marc Hernandez' Server]</A></strong>, 
Marc Hernandez <a href="mailto:marc#ias,jb.com">marc#ias,jb.com</a>, Thu 20 May 1999, 05:20 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00176" HREF="msg00176.html">Re: [MUD-Dev] Custom Server Roll Call?</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 08 May 1999, 05:15 GMT
</LI>
<LI><EM>Message not available</EM><UL>
<LI><strong><A NAME="00211" HREF="msg00211.html">Re: [MUD-Dev] Custom Server Roll Call?</A></strong>, 
Emil Eifrem <a href="mailto:emil#prophecy,lu">emil#prophecy,lu</a>, Wed 12 May 1999, 22:19 GMT
</LI>
</UL>
</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>