1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Event handling (was: request for comments) -->
<!--X-From-R13: f001tzhNabin.jevtug.rqh -->
<!--X-Date: Mon, 12 Jan 1998 15:13:00 +0000 -->
<!--X-Message-Id: Pine.PMDF.3.95.980112094149.543169343B&#45;100000#nova,wright.edu -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199801112043.MAA04583#under,Eng.Sun.COM -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Event handling (was: request for comments)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:s001gmu#nova,wright.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="msg00209.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00211.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00207.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00220.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00210">Author</A>
&nbsp;|&nbsp;<A HREF="#00210">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00210">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Event handling (was: request for comments)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Event handling (was: request for comments)</LI>
<LI><em>From</em>: <A HREF="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</A></LI>
<LI><em>Date</em>: Mon, 12 Jan 1998 10:13:29 -0500 (EST)</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>

On Sun, 11 Jan 1998, JC Lawrence wrote:

&gt; On Fri, 9 Jan 1998 13:51:24 PST8PDT 
&gt; s001gmu &lt;s001gmu#nova,wright.edu&gt; wrote:
&gt; 
&gt; &gt; On Fri, 9 Jan 1998, Vadim Tkachenko wrote:
&gt; 
&gt; &gt;&gt; s001gmu#nova,wright.edu wrote: &gt; &gt; On Thu, 8 Jan 1998, Vadim
&gt; &gt;&gt; Tkachenko wrote: &gt;
&gt; 
&gt; &gt; *nod* our end goal is to not make it obvious to the player that the
&gt; &gt; game is turn based, but the underlying mechanics will be.  The more
&gt; &gt; that I think about it, the less I like the 'tick' idea... Why
&gt; &gt; artificially impose a less granular clock on top of the system
&gt; &gt; clock?  Why not just let the system clock determine the timing?
&gt; &gt; Situations where the character's speed should be far faster than the
&gt; &gt; players typing speed (IE: combat, etc), can (and should?) be handled
&gt; &gt; by the computer (IE: the computer is generating the events, not
&gt; &gt; player commands).  All other commands don't need to be turn-based,
&gt; &gt; as speed has already been deemd uniportant by the designer (me), by
&gt; &gt; that system not being coded as an auto-generated event.
&gt; 
&gt; This sounds very much like the the argument I went thru with myself.

Well, keep in mind I'm not arguing for events to be processed as fast as
possible...  there is still a game imposed delay inherent to every action
(save out-of-game actions, like "score", or "help!").  I know you've
mentioned a few times, JC,  that kookey idea that humans shouldn't be
waiting on computers...  ;)
 
&lt;snip event chains vs. event-process model&gt;

&lt;...&gt;

&gt; In the case of sensitivity to interruption I currently handle this
&gt; poorly (almost not at all).  
&gt; 
&gt; However, previously I discussed having the system track the osers
&gt; activities, and from that attempt to determine that they user's
&gt; _intentions_ are.  From there it can appropriately attempt to filter
&gt; the available data against a dynamic LOE (level of expectation) filter
&gt; which changes as the system changes its understanding of the user's
&gt; goals.
&gt; 
&gt; This may be extensible to handling interruptions.  Essentially (all
&gt; Wiggin's solution) the server would track the activities (of duration)
&gt; that the user is engaged in, and dynamically remove and add entries as
&gt; the world changes.  Some things would get deleted from the list (you
&gt; cease to dig the Panama Canal as the world is obliterated by a passing
&gt; Vogon fleet), and others would merely be surpressed temporarily (you
&gt; pause in digging the Panama Canal to eat a vegemite sandwhich before
&gt; returning to digging).

I'm not sure that I like these kinds of filters, etc.  The computer trying
to figgure out what I am up to seems prone to error.  Heck, other ppl
trying to figgure out what I'm up to is prone to error.  I think the
problem you are trying to solve is, when the user types 'eat sandwhich'
whilst diggging the panama canal, they most likely mean 'pasue for a while
to eat this sandwhich, then get back to work'.  You want to automate that
returning to work, because forcing them to re-type the 'dig panama canal'
command leads to tedium, and possibly some confusion on the parser's part
(what do you mean, dig panama canal?  it's half built already!).

Why not offer a "pause to/for" operator, and push the resposibility of
realiing theyw ant to continue the action after a small break onto the
user?  This greatly simplifies the problem of event interruption, as you
don't have to worry about wether the player intended to continue the
action or not.
 
&gt; &gt; That being the case, I'd still prefer to let events spend their
&gt; &gt; delay time on the queue, instead of in a thread.  Each sleeping
&gt; &gt; thread is a thread that could be used by something else.  Why
&gt; &gt; allocate a scarse resource before it's 100% needed?  Again, this
&gt; &gt; harks back to my initial goals, of building a non-cpu intensive
&gt; &gt; game... well, at least, less so than other games... ;)
&gt;  
&gt; Precisely.

The downside to this, as Vadim pointed out in a previous post, is that you
trade a scarce resource for more CPU cycles spent on event scheduling,
etc.  Leans back towards the age-old memory v. computation cycles
tradeoff.

I snipped the rest of this message to be handled in a seperate response,
as it is wandering away from the topic of event handling some... and I
have a meeting in 20 minutes and prolly can't finish responding before
then.  ;)

-Greg


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00195" HREF="msg00195.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></STRONG>
<UL><LI><EM>From:</EM> JC Lawrence &lt;claw#under,Eng.Sun.COM&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00209.html">Event handling (was: request for comments)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00211.html">Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00207.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00220.html">Event handling (was: request for comments)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00210"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00210"><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] Event handling (was: request for comments)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00245" HREF="msg00245.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, 
JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Fri 16 Jan 1998, 04:31 GMT
<LI><strong><A NAME="00246" HREF="msg00246.html">Event handling (was: request for comments)</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Fri 16 Jan 1998, 15:35 GMT
</LI>
</LI>
</ul>
<LI><strong><A NAME="00195" HREF="msg00195.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, 
JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Sun 11 Jan 1998, 20:44 GMT
<UL>
<LI><strong><A NAME="00207" HREF="msg00207.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, 
Matt Chatterley <a href="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</a>, Mon 12 Jan 1998, 10:02 GMT
</LI>
<LI><strong><A NAME="00210" HREF="msg00210.html">Event handling (was: request for comments)</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Mon 12 Jan 1998, 15:13 GMT
</LI>
<LI><strong><A NAME="00220" HREF="msg00220.html">Event handling (was: request for comments)</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Mon 12 Jan 1998, 22:12 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00169" HREF="msg00169.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, 
JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Sat 10 Jan 1998, 03:53 GMT
<UL>
<LI><strong><A NAME="00214" HREF="msg00214.html">Re: [MUD-Dev] Event handling (was: request for comments)</A></strong>, 
Vadim Tkachenko <a href="mailto:vadimt#4cs,com">vadimt#4cs,com</a>, Mon 12 Jan 1998, 17:54 GMT
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00167" HREF="msg00167.html">Re: [MUD-Dev] request for comments (was: Mud-Dev FAQ)</A></strong>, 
JC Lawrence <a href="mailto:claw#under,Eng.Sun.COM">claw#under,Eng.Sun.COM</a>, Sat 10 Jan 1998, 03:38 GMT
</LI>
</ul>
</ul>
</ul>
</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>