1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: atomic functions -->
<!--X-From-R13: X Q Znjerapr <pynjNhaqre.rate.ftv.pbz> -->
<!--X-Date: Wed, 13 May 1998 11:06:13 &#45;0700 -->
<!--X-Message-Id: 199805131805.LAA09660#under,engr.sgi.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9805070559.8x8m@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: atomic functions</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#under,engr.sgi.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="msg00539.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00541.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00453.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00556.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00540">Author</A>
&nbsp;|&nbsp;<A HREF="#00540">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00540">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: atomic functions</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] Re: atomic functions </LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</A>&gt;</LI>
<LI><em>Date</em>: Wed, 13 May 1998 11:05:03 -0700</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: "Petidomo List Agent -- Kanga.Nu version" &lt;<A HREF="mailto:petidomo#kanga,nu">petidomo#kanga,nu</A>&gt;</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Wed, 6 May 98 22:59:33 MST 
Chris Gray&lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt; wrote:

&gt; [J C Lawrence:] 

&gt;&gt; What if this event daisy chain didn't start from a user command,
&gt;&gt; but was generated by a mobile attempting its normal business of
&gt;&gt; wandering the land?  If the event chain dies with that failed event
&gt;&gt; the mobile itself "dies" -- there are no more events to "animate"
&gt;&gt; it.

&gt; Why must it die? 

There's some underlieing logic going on that mandates this: (I expect
you know this already from the discussions on this area a little over
a year ago).

Events are the ONLY things that are capable of logging new events.
Translation: A successfully executed event is the only thing capable
of causing another event to be executed in the future.

An object is "animated" because of an by an event chain.  Somewhere
back when, there was an "original" event which started the ball
rolling.  That event ran, compleated, and logged a new event.  That
one ran compleated, and logged a new event.  And in this manner, ad
infinitum thru time until the present, the events have daisy-chained,
each one created by the one before, jerk-stepping the mobile thru
virtual reality in seeming animation.  

What would happen if one of those events utterly failed to compleat?
The mobile would die.  Nothing would log a "new" event for that
mobile; nothing would animate it.  There would be no executing events
to log future events to keep the process of change going.  It would
just sit there, utterly dead, until something _external_ came along
and changed it.

Yes, you could do multiple and parallel event chains as you discuss
below.  But what happens if the "master" chain dies?  Do you have a
watchman chain whose only purpose is to ensure that there is a valid
running master chain?  What if the watchman dies?  

This is thorny problem -- solvable, but not elegant.

&gt; From a naive point of view, you want it to stop digging the canal
&gt; because something prevented it from continuing. The digging event
&gt; chain doesn't have to be the only event chain that exists for the
&gt; NPC. It could have a normal chain, that, because it is currently
&gt; digging, doesn't do things like wandering away, but can still do
&gt; things like poses, simple interactions with PC's, etc. The question
&gt; then becomes that of how the main chain knows that the dig chain has
&gt; terminated.

True.  I do this by keeping state variables in the mobile object
(acutally they are activity masks and are thus used to limit possible
simultaneous action).  Thus the digging chain, as you say, runs in
parallel with the "main" chain.  The main chain keeps popping to life,
checks for validity and mostly finds that its inapplicable due to the
digging chain and goes back to sleep by logging a new future event.

&gt; Alternatively, and perhaps simpler, would be to not have a specific
&gt; chain of events for digging, but have a "current background
&gt; activity" function reference attached to the NPC. In its normal (and
&gt; hopefully never failing) chain of activity events, it calls that
&gt; function periodically, and if the function indicates failure, can
&gt; cancel the function by removing the reference to it. Didn't we talk
&gt; about this a while back, including things like having various
&gt; priorities attached to such automated activities?

Yes, yes, I think this came up in the extensive discussion of
attempting to discern a concept of the "intent" state of a player by
noting simple characterisitics of his play style.  Yes....This could
be interesting.  Yes, The character and number of parallel event
chains can effectivly function as the intent stack (see earlier
thread) of the mobile...

-- 
J C Lawrence                               Internet: claw#null,net
(Contractor)                               Internet: coder#ibm,net
---------(*)                     Internet: claw#under,engr.sgi.com
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...

-- 
MUD-Dev: Advancing an unrealised future.

</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="00556" HREF="msg00556.html">[MUD-Dev] Re: atomic functions</A></strong>
<ul compact><li><em>From:</em> "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00453" HREF="msg00453.html">[MUD-Dev] Re: atomic functions</A></STRONG>
<UL><LI><EM>From:</EM> cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray)</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00539.html">[MUD-Dev] Re: Using HTML for a Mud character generator</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00541.html">[MUD-Dev] Re: atomic functions</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00453.html">[MUD-Dev] Re: atomic functions</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00556.html">[MUD-Dev] Re: atomic functions</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00540"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00540"><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>[MUD-Dev] Re: atomic functions</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00511" HREF="msg00511.html">[MUD-Dev] Re: atomic functions</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 12 May 1998, 01:17 GMT
</LI>
</ul>
<LI><strong><A NAME="00437" HREF="msg00437.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Felix A. Croes <a href="mailto:felix#xs1,simplex.nl">felix#xs1,simplex.nl</a>, Wed 06 May 1998, 21:31 GMT
<UL>
<LI><strong><A NAME="00444" HREF="msg00444.html">[MUD-Dev] Re: atomic functions</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 06 May 1998, 22:29 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00453" HREF="msg00453.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 07 May 1998, 06:02 GMT
<UL>
<LI><strong><A NAME="00540" HREF="msg00540.html">[MUD-Dev] Re: atomic functions</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 13 May 1998, 18:06 GMT
<UL>
<LI><strong><A NAME="00556" HREF="msg00556.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Wed 13 May 1998, 21:20 GMT
<UL>
<LI><strong><A NAME="00613" HREF="msg00613.html">[MUD-Dev] Re: atomic functions</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 15 May 1998, 20:44 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00454" HREF="msg00454.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 07 May 1998, 06:03 GMT
</LI>
<LI><strong><A NAME="00455" HREF="msg00455.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Felix A. Croes <a href="mailto:felix#xs1,simplex.nl">felix#xs1,simplex.nl</a>, Thu 07 May 1998, 12:35 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>