1997Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] C&#38;C and Event Rescheduling -->
<!--X-From-R13: pynjerapNphc.uc.pbz -->
<!--X-Date: Thu, 14 Aug 1997 19:29:52 +0000 -->
<!--X-Message-Id: 199708141928.MAA26131#xsvr3,cup.hp.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9708120437.8b94@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, Re: [MUD-Dev] C&amp;C and Event Rescheduling</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:clawrenc#cup,hp.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="msg00557.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00559.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00484.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00561.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00558">Author</A>
&nbsp;|&nbsp;<A HREF="#00558">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00558">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] C&amp;C and Event Rescheduling</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>: Re: [MUD-Dev] C&amp;C and Event Rescheduling</LI>
<LI><em>From</em>: <A HREF="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</A></LI>
<LI><em>Date</em>: Thu, 14 Aug 97 12:09:12 -0700</LI>
<LI><em>Reply-to</em>: <A HREF="mailto:claw#null,net">claw#null,net</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 &lt;<A HREF="msg00484.html">9708120437.8b94#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;, on 08/12/97 
   at 08:14 AM, cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray) said:

&gt;[Chris L:]

&gt;:  Please enters the following very rapidly:
&gt;:
&gt;:    N, S, E, W.

&gt;It seems to me that, even if they are all on the same input line,
&gt;they are separate commands from the user. 

As a general rule, yes.  There are exceptions.  Consider the case:

  &gt; dig panama canal
  You begin digging.
  ...many hours later...
  You are still digging.
  You are attacked by the Orcs!
  &gt; kill orcs
  Sorry, you'll have to wait till you're done digging.
  &gt; oops

A silly implementation to be sure, but it illustrates.  Another:

  &gt; n,n,n,n,n,n,n,n,n,e,e,e,e,e,e
  You go north
  ...
  There an incredibly valuable diamond here.
  You go north.
  You go east.
  You go east.
  ...
  &gt; Go back!  Go back!
  ...
  &gt; l
  There is nothing here.

The summary we arrived at last time was that by default user commands
should be executed strictly sequentially.  This was to be done via
sequence number dependancies.  However, we also saw a use in commands
which were to be explicity executed in parrallel with other user
commands.  One of the primary uses for such was an interrupt command
which more or less said, "kill the entire command queue NOW!".

(Hey Jon!  This is another thread to add your list of things to dig up
-- the one about command sequencing, priority commands, command
interrupts, and job control for asynchronous command execution.  It
was mainly between CG and myself.).

&gt;I'd say that an input
&gt;command from a user cannot even be ready for execution until all
&gt;previous commands from that user have C&amp;C'd. 

In the general case yes.  An explicit exception should be made for
interrupt commands.

&gt;Haven't we talked about just this
&gt;before?

Yup.  However our new members didn't catch that thread.

&gt;:While rooms are an odd example to chose here, try any other command
&gt;:which launches a sequence of operations where each operation is
&gt;:dependant on the one before.

&gt;This suggests to me not that there be anything in the DB to handle
&gt;this, but that their be something in the system to handle it. First,
&gt;I assume that the programmer doing this has checked the correctness
&gt;of the two routines before trying this. If not, then, if that kind of
&gt;online modification is allowed by the administration, all bets are
&gt;off and no-one can complain about anything that happens. If, however,
&gt;there are administrative controls on this sort of thing (not
&gt;something I've thought about yet!), then it behooves the programmer
&gt;to do the change in a way that won't mess things up. The simple
&gt;answer is to have all changes happen in one C&amp;C. I'm not sure of the
&gt;mechanism in your system or others, but in mine, it just means that
&gt;the programmer should make a function that does a set of function
&gt;assignments/updates. Then, a single call to that function does an
&gt;atomic update of all that is involved.

&gt;That may not be possible in a direct-call situation (i.e. where the
&gt;functions in question are called directly by name, rather than by
&gt;being retrieved via pointer from the DB), in which case I would
&gt;suggest some mechanism within the MUD system whereby edits to code
&gt;can be "held back", and then all released in a batch. It's manual,
&gt;sure, but likely only the programmer can properly judge what all
&gt;needs to be updated.

I don't have a direct solution.  I have indirect corrective tools, and
tool features which help programmers aware of the problem to avoid it:

  Given such a created logical inconsistancy, the object(s) in
question can be rolled back thru time to a point to the logical
inconsistancy and restarted from there.

  My in-game editor has the capability to load several objects for
editing, and then commit those objects in one swell foop (single C&amp;C). 
This does not of course handle the circumstance where the problem
object is a child of the edited object.
  
  I allow an object to be locked when it is being edited.  The result
is that it and all children will not allow any methods other than
those related to security and editing to be called on them.  This
isn't really a very good or strong lock, more of an advisory really,
but it tries. -- 
J C Lawrence                           Internet: claw#null,net
(Contractor)                           Internet: coder#ibm,net
---------------(*)               Internet: clawrenc#cup,hp.com
...Honorary Member Clan McFUD -- Teamer's Avenging Monolith...



</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="00618" HREF="msg00618.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></strong>
<ul compact><li><em>From:</em> Adam Wiggins &lt;nightfall#user1,inficad.com&gt;</li></ul>
<li><strong><A NAME="00602" HREF="msg00602.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></strong>
<ul compact><li><em>From:</em> Nathan Yospe &lt;yospe#hawaii,edu&gt;</li></ul>
<li><strong><A NAME="00563" HREF="msg00563.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></strong>
<ul compact><li><em>From:</em> Shawn Halpenny &lt;malachai#iname,com&gt;</li></ul>
<li><strong><A NAME="00561" HREF="msg00561.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></strong>
<ul compact><li><em>From:</em> Richard Woolcock &lt;KaVir#dial,pipex.com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00484" HREF="msg00484.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</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="msg00557.html">Re: [MUD-Dev] Graphic MUDS/Ultima Online</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00559.html">Re: [MUD-Dev] Graphic MUDS/Ultima Online</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00484.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00561.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00558"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00558"><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]  Introduction</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00585" HREF="msg00585.html">Re: [MUD-Dev]  Introduction</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Thu 14 Aug 1997, 22:45 GMT
</LI>
</ul>
</ul>
</ul>
</LI>
<LI><strong><A NAME="00522" HREF="msg00522.html">DemonScape</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 13 Aug 1997, 20:57 GMT
<LI><strong><A NAME="00517" HREF="msg00517.html">Re: [MUD-Dev] New to this mailing list</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 13 Aug 1997, 14:50 GMT
<LI><strong><A NAME="00484" HREF="msg00484.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Tue 12 Aug 1997, 06:06 GMT
<UL>
<LI><strong><A NAME="00558" HREF="msg00558.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Thu 14 Aug 1997, 19:29 GMT
<UL>
<LI><strong><A NAME="00561" HREF="msg00561.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></strong>, 
Richard Woolcock <a href="mailto:KaVir#dial,pipex.com">KaVir#dial,pipex.com</a>, Thu 14 Aug 1997, 20:04 GMT
<UL>
<LI><strong><A NAME="00588" HREF="msg00588.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Thu 14 Aug 1997, 23:08 GMT
<UL>
<LI><strong><A NAME="00590" HREF="msg00590.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></strong>, 
Richard Woolcock <a href="mailto:KaVir#dial,pipex.com">KaVir#dial,pipex.com</a>, Thu 14 Aug 1997, 23:38 GMT
<UL>
<LI><strong><A NAME="00604" HREF="msg00604.html">Re: [MUD-Dev] C&amp;C and Event Rescheduling</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Fri 15 Aug 1997, 16:45 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</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>