1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Net protocols for MUDing -->
<!--X-From-R13: ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO (Quevf Uenl) -->
<!--X-Date: Sat, 21 Mar 1998 02:29:47 +0000 -->
<!--X-Message-Id: 9803210221.8w1l@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Net protocols for MUDing</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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="msg00802.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00804.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00667.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00661.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00803">Author</A>
&nbsp;|&nbsp;<A HREF="#00803">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00803">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Net protocols for MUDing</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] Net protocols for MUDing</LI>
<LI><em>From</em>: <A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A> (Chris Gray)</LI>
<LI><em>Date</em>: Fri, 20 Mar 98 19:21:24 MST</LI>
<LI><em>>Received</em>: by ami-cg.GraySage.Edmonton.AB.CA (V1.17-beta/Amiga)  id &lt;8w1l#ami-cg,GraySage.Edmonton.AB.CA&gt;; Fri, 20 Mar 98 19:21:24 MST</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
[Chris L:]

:Outside a simple, bugger forget the term, XOR where the XOR'ed against 
:value comes from a shared and seperate source (eg the contents of a
:file, or bytes on a CD (music CD's are incredibly popular for this
:in the heavy encryption market as as long as the choice of CD is kept
:secret, the cipher is effectively guaranteed secure as the key is
:indistinguishable from random)) would work well with negligable overhead.

Cool! If the MUD is shipped on a CD, you could use the sound samples and
textures, etc. on that CD - likely just as good.

:This is of course a variation on the colliding space ships, and
:suffers from the "who owns the decision" problem described above.  The 
:key point however is that prediction only goes so far.
:
:I suspec that it is safe for the client to ONLY predict motion, not
:the results of motion, or any side effects (eg Bubba walks the the
:waterfalla and the water splashes on him).  The client predicts
:already started motions only.	All actual decision making is left up
:to the server. 

That sounds right to me. You might be able to go further, too. Consider
simple NPC's, which are known to not have terribly complex behaviour.
You could try to run the behaviour script for those NPC's on the client,
allowing simple interaction with the character. Only when that script
actually had to write something to the DB would you have to interact
with the server to make sure all was well. Back when I was doing my
"effects" client stuff, and thought I actually had time to do all of
this, I had a vision of a pleasant pastoral scene, with trees swaying
in the wind, grass rippling, birds singing, bunnies hopping across from
time to time, maybe a deer wandering on-scene, feeding, etc. All with
no server interaction, since the player was doing nothing other than
watching the pretty stuff. I think you want the server to run all of
the same stuff, just not doing the graphics/sound, and not sending
anything to the client, so that if something the client doesn't know
about influences the action, the client can be informed.

How to do that? Well, from the point of view of the client, all is
well until something has to be written to the DB. Perhaps all that
matters is something written to part of the DB concerned with non-transient
things. I would consider the birds, bunnies, deer, etc. to be transient.
(I'm not suggesting partitioning the DB, just knowing what parts of it
are considered "transient".)

&gt;From the servers point of view, perhaps the server simply needs to know
what all the client knows about. If something needs to generate output
to that client, and the server knows that the client is not running the
code that generates that output (e.g. some programmer has generated a
cougar, and it wanders into the scene, or a PC does something explicit),
then the server has to send explicit event information to the client.
In the case of the cougar, sending the script/description/skeleton for
the cougar, and any updates on the deer and bunnies, might be enough.
I suspect you would want to update the client's copy of the deer/bunny
code whenever the server's copy got updated by that programmer, however.

:  If Bubba happens to teleport in and grab the leaf shortly after the
:client takes over showing the leaf falling without server updates,
:then the server would do update the client.  The result (give big
:latencies) is that the user would see the leaf falling, possibly all
:the way to the ground, Bubba suddenly appearing and grabbing the leaf
:in mid air.

Exactly. If its a playful bear that wanders in and grabs the leaf, you
could update the client with the bear info, then continue running stuff
in the client.

:  I suspect that the lack of sync and logical consistency in the leaf
:position will be willingly overlooked by users.

I agree. Within limits, however. You also might want to add a message
to the text output area indicating that update delays were caused by
network delays, so you have a continual excuse to the player. Yes, I'm
serious about that!

:Programmatically determining what is and is not a significant state
:change could be interesting however.

&lt;nod&gt; Perhaps keeping track of what DB changes result, and asking if
the changes are to DB entities marked as "significant".

--
Chris Gray   cg#ami-cg,GraySage.Edmonton.AB.CA


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00802.html">Re: [MUD-Dev] Net protocols for MUDing (was: Moore's Law sucks)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00804.html">Parlez vous NPC?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00667.html">Re: [MUD-Dev] Net protocols for MUDing</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00661.html">Describe Concept</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00803"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00803"><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><A NAME="00672" HREF="msg00672.html">Tutorial: Let's build a Compiler! - Part XIII: Procedures</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 02 Mar 1998, 21:39 GMT
<LI><strong><A NAME="00671" HREF="msg00671.html">Tutorial: Let's build a Compiler! - Part XII: Miscellany</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 02 Mar 1998, 21:38 GMT
<LI><strong><A NAME="00670" HREF="msg00670.html">Tutorial: Let's build a Compiler! - Part XI: Lexical Scan Revisited</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 02 Mar 1998, 21:38 GMT
<LI><strong><A NAME="00667" HREF="msg00667.html">Re: [MUD-Dev] Net protocols for MUDing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 02 Mar 1998, 09:35 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00803" HREF="msg00803.html">Re: [MUD-Dev] Net protocols for MUDing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 21 Mar 1998, 02:29 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00661" HREF="msg00661.html">Describe Concept</A></strong>, 
Stephen Zepp <a href="mailto:zoran#enid,com">zoran#enid,com</a>, Sun 01 Mar 1998, 22:05 GMT
<UL>
<LI><strong><A NAME="00674" HREF="msg00674.html">Re: [MUD-Dev]  Describe Concept</A></strong>, 
Jon A. Lambert <a href="mailto:Jon.A.Lambert#ix,netcom.com">Jon.A.Lambert#ix,netcom.com</a>, Tue 03 Mar 1998, 07:01 GMT
<UL>
<LI><strong><A NAME="00794" HREF="msg00794.html">Re: [MUD-Dev] Describe Concept</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 20 Mar 1998, 18:40 GMT
<UL>
<LI><strong><A NAME="00832" HREF="msg00832.html">Re: [MUD-Dev] Describe Concept</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 23 Mar 1998, 00:07 GMT
</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>