1999Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Collecting ideas for a MUD server... (fwd) -->
<!--X-From-R13: Dnuhy Evaun <efvaunNtyhr.hzq.rqh> -->
<!--X-Date: Wed, 22 Dec 1999 21:36:33 &#45;0800 -->
<!--X-Message-Id: Pine.LNX.4.10.9912221632140.11208&#45;100000@localhost.localdomain -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.LNX.3.96.991222021912.384A&#45;100000@maul.sith.vpn -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:rsinha@glue.umd.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="msg00749.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00750.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00742.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00753.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00751">Author</A>
&nbsp;|&nbsp;<A HREF="#00751">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00751">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: "Wesley W. Terpstra" &lt;<A HREF="mailto:terpstra#iota,dhs.org">terpstra#iota,dhs.org</A>&gt;</LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</LI>
<LI><em>From</em>: Rahul Sinha &lt;<A HREF="mailto:rsinha#glue,umd.edu">rsinha#glue,umd.edu</A>&gt;</LI>
<LI><em>Date</em>: Wed, 22 Dec 1999 21:45:07 -0500 (EST)</LI>
<LI><em>cc</em>: Rahul Sinha &lt;<A HREF="mailto:rsinha#glue,umd.edu">rsinha#glue,umd.edu</A>&gt;, <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></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>
On Wed, 22 Dec 1999, Wesley W. Terpstra wrote:

&gt; -----BEGIN PGP SIGNED MESSAGE-----
&gt; Hash: SHA1
&gt; 
&gt; &gt; &gt; Our plans (at present) are to make a compiler/interpreter for a custom
&gt; &gt; &gt; OO language and build the actual MUD completely in this language. As I
&gt; &gt; &gt; understand it, MOO already takes this approach. What I would like to
&gt; &gt; &gt; gather is a list of features that people consider essential to a MUD
&gt; &gt; &gt; programming language.
&gt; &gt; 
&gt; &gt; is this more advantageous than coding the mud in C++ and making it
&gt; &gt; scriptable via this language, that way you can have whatever language
&gt; &gt; features you need to write the mud, and still avoid making the scripting
&gt; &gt; langauge overcomplicated....
&gt; 
&gt; Well... The idea is that we would like to be able to change the underlying
&gt; protocol without needing a reboot. This is because we wanted to have a
&gt; special client program to render graphics. That way we can use openGL. :-)
&gt; 
&gt; Writing a scripting language isn't that difficult using flex&amp;bison - two
&gt; tools I've used quite often. Besides, I would make it a purists langauge:
&gt; super short EBNF. ;-) Just to knit-pick, I meant a programming language -
&gt; not a scripting language. :-)
&gt; 
&gt; &gt; &gt; I also wanted to know of what MUDs currently implement any of the
&gt; &gt; &gt; following: multithreading
&gt; &gt; A Good Thing...
&gt; Of course, but how do current in-MUD programming languages handle race
&gt; conditions? Do they do something similar to the java synchronize keyword?
&gt; Do they use semaphores? What? What? And what is the best in peoples
&gt; opinions?

well our intention (keeping in mind that it is mostly vapor, aside from
much brainstorming we have some classes written, but ... (project only
began 1 1/2 months ago, with a temporary halt for finals)) was to have
single threads per zone, iterate through players per tick, have all
threads block until tick is over.  we dont need thread-per-player as the
netowrk stuff is in its own process-per-player...

&gt; 
&gt; &gt; &gt;guis
&gt; &gt; making your mud room-less?
&gt; &gt; so long as you keep your mud interface agnostic its ok... this will
&gt; &gt; distract you from the rest of the mud, as a decent gui interface takes
&gt; &gt; work (if you are doign more than simply applying menus and mapping as gui
&gt; &gt; stiff...)
&gt; agnostic? I don't get the analogy...
&gt; There are several of us. One of us will be writing the client and telling
&gt; the server programmers what he wants for the protocols etc.
&gt; So, I have no problems with shunting work on him. :-)
&gt; We had planned on the actual gui being customizable between worlds, but
&gt; for the first server we would have a birds eye view like Ultima 6. (great
&gt; game!)

what I meant by interface agnostic is that the game can be played either
via text client or gui, but I guess you want gui...

&gt; Yes, I know. But making it have a gui already forces our hand, so why not
&gt; suck on their processor to lighten the servers burden?
&gt; Not being an openGL techie myself, I don't even know if java can do
&gt; openGL. Or if it can whether it can do it portably. Time to call up Alex.

you _can_ make it cross platform, GL is cross platofrm, the only platform
dependant part is the DirectX stuff (iow the screen grabber) but that is
not too hard to duplicate (directx for windows, DRI for Xwindows, and the
equivalent that I am sure exists for BeOS and Macs)

&gt; 
&gt; &gt; I personally am splitting up the traditional mud structure into a
&gt; &gt; inetd-based concurrent server that is jsut the client program (ie here
&gt; &gt; lies presentation, mapping stuff, etc), that connects via loopback to a
&gt; &gt; "event server" that handles movement, etc, all physically manifested
&gt; &gt; stuff, both using MySql for data storage, and IC AI stuff is implemented
&gt; &gt; by virtual clients connecting to the event server from mob programs.
&gt; IC AI stuff? What is this? Some sort of 'bot that connects to your server
&gt; locally on one of the more programatical ports? That's interesting. I will
&gt; have to think on that.

mobs are controlled by a single program that logs into the event server
multiple times (this is being re-evaluated, for efficiency reasons prob
going to allow mult chars to be controlled by one connection (for the
queuing of commands in the event daemon) even though players will nto
be able to hook into this)

&gt; Is inetd really a good choice? You'll be fork()ing like mad. How are your
&gt; components talking - TCP or some memoryish IPC?
&gt; You are storing your data in MySQL. That's a pretty good idea as long as
&gt; you have some major program level caching going on. Mind if I borrow it?

yes, but only the 2nd stage client will fork, only the program that
outputs messages etc does this, not much overhead

&gt; 
&gt; Our model was going to be more just one virtual machine which opens a
&gt; bunch of ports and connects objects (inMUD language) to the sockets and
&gt; tags on a thread or two. :-) Any problems with this model that
&gt; people have run into?
&gt; 
&gt; Of course, there's alot to be said for your model 'cept for the overhead
&gt; it's very modular. Hmmm. Hybridization time. *grin*

keep in mind, the eventd does not know about the room descs for example,
meaning that we get to shrink the eventd's ram requirements by a lot.  The
db delivers that sort of data directly to the clients (if MySql can handle
the beating it takes in the corporate sector, it can handle delivering
room descs to 100 simultaneous connections ...

anyway, since these components talk over network stacks, you can run the
mud on 3-4 different computers, allowing VERY easy load sharing... just
dont try to do it across Inet (iow the 4 computers ought to be on a LAN,
as while bandwidth is not so much of an issue, latency is very important)

&gt; 
&gt; &gt; all commands are implemented as shared libraries, so that they can be
&gt; &gt; dlopen()ed during runtime (so as to not have to take down server)
&gt; Hmmm. That's interesting. I didn't think of that. In fact, I like that
&gt; very much. That's certainly faster than an interpreted language.  Maybe
&gt; the MUD should allow you to code in C++ and compile to .so files which it
&gt; then loads on the fly. Of course this is a security can of worms, but... 
&gt; I will have to think about this. Maybe a virtual machine isn't the only
&gt; solution. 

the best part is that one of the .sos is going to allow perl/python/etc
scripts to be used, and via perl modules reach into the mud
datastructure...

oh and the .so model is also being used for rooms; you odnt HAVE to have a
.so per room (that woudl be heinous) but can transparently add them, such
that you can have a house somewhere that does all sorts of logic outside
of the mud itself.  Allowing hooks to outside logic gives total
configurability and control of the mud (asuming you can also reach into
the mud to change any data value, which is what the perl module is for)

&gt; 
&gt; &gt; &gt;pgp
&gt; &gt; umm if you are talking about encrypting the text stream, just pawn off ssh
&gt; &gt; now that there is an opensource version of it... pgp is more for
&gt; &gt; non-streaming data authenticaiton and encryption
&gt; &gt; 
&gt; &gt; &gt; certificates about players so their characters can move from one server
&gt; &gt; &gt; to another w/o the two servers ever talking directly.
&gt; &gt; servers talking is much better than trusting the client.  Clients can be
&gt; &gt; reverse-engineered...
&gt; You're not understanding my goal here:
&gt; 
&gt; I want clients to store certificates - player stats on their own machines.
&gt; 
&gt; We wanted to make this mud a sort of mud network that allows players to
&gt; move between systems freely and without needing to trust the new server.

but their is inherent trust issue server vs server

&gt; 
&gt; So, when you 'save' your character the server runs a pseudo-diff on the
&gt; player status compared to the last save. It then timestamps and signs
&gt; these changes with the server's public key. The client program then
&gt; receives them.
&gt; 

well it signs them with the private key; the public key is used to
unencrypt them

&gt; What this gives you: a player can import the things they gained from one
&gt; server into another server as long as the new server trusts the old one.
&gt; 
&gt; You can even have trusted server rings like 'The All Canadian Magi League'
&gt; or something which is a ring of servers who all sign spells known with
&gt; their key, and include their public key signed by the leagues private
&gt; key. Hence a player can traverse these realms with all his spell casting
&gt; intact.
&gt; 
&gt; You see the potential? Forgetten realms characters can walk into Ravenloft
&gt; and some of their skills carry over and some don't. They are now under the
&gt; Ravenloft admin's jurisdiction and any missing skills can be explained
&gt; away as: "physically impossible to do a flying roundhouse kick from a
&gt; ..."

this is fine, but isn't this easier via a separete server-server protocol

unless you want tforward the actual packets,  you are going to have to
make the user reconnect to the new server.  So he does, enters the name of
the old server, the name of the char, and then the new server contacts s
the old one, the old one presents a challenge that is answered
cryptographically (think rsa keys) by the player. (there is an assumption
of trust among the various servers, else the propagation of data back from
the new server to the old is ludicrous) the old server then gives the new
the vital stats, no need for pgp, and this can also allow for encrypted
connectiosn..

&gt; PGP was designed for a web of trust, and this is exactly the use I want to
&gt; put it to on an inter-mud network. :-)
&gt; 
&gt; Also, this system lets a player who was wronged by some server admin just
&gt; drop that certificate from his character. It means he's now out of sync
&gt; with that server and will be rejected in future connection attempts, but
&gt; that he probably never planned on going back!
&gt; 
&gt; So, to summarize:
&gt; Servers keep state of the players.
&gt; Players keep incremental character diffs signed by the servers they were
&gt; obtained on.
this information is not reliable though

&gt; When connecting, the player transmits any diffs the server hasn't seen.
this is unsafe, even with encryption, better that the servers talk amongst
themselves

&gt; The server chooses to accept them or not based on its trust of the signing
&gt; servers.
sas you are trusting the servers here, why not just keep this a server
issue
&gt; If a player is abused, he drops that servers diff and is now out of sync
&gt; with that server so cannot reconnect. However, he may continue to play
&gt; elsewhere.
&gt; 
&gt; Cool 'eh? This is why I want to know if anyone has already done this or
&gt; whether I can stamp my name on it. ;-)
&gt; If we get going on this, I fully intend to include this. Now if only RSA
&gt; was proven secure... *sigh*
rsa != rsaref, I think the hole was a rsaref-specific problem, but je ne
suis pas un cryptographer

	Rahul Sinha
Computer Science/ Government,
University Of Maryland College Park
AIM: qui dire	ICQ: 9738191	(301)935-5542







_______________________________________________
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="00765" HREF="msg00765.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>
<ul compact><li><em>From:</em> Greg Miller &lt;gmiller@classic-games.com&gt;</li></ul>
<li><strong><A NAME="00758" HREF="msg00758.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw@kanga.nu&gt;</li></ul>
<li><strong><A NAME="00753" HREF="msg00753.html">[MUD-Dev] PGP player certificates (was: collecting ideas...)</A></strong>
<ul compact><li><em>From:</em> "Wesley W. Terpstra" &lt;terpstra@iota.dhs.org&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00749.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00750.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00742.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00753.html">[MUD-Dev] PGP player certificates (was: collecting ideas...)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00751"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00751"><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] Collecting ideas for a MUD server... (fwd)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00752" HREF="msg00752.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
Rahul Sinha <a href="mailto:rsinha@glue.umd.edu">rsinha@glue.umd.edu</a>, Thu 23 Dec 1999, 05:39 GMT
<UL>
<LI><strong><A NAME="00761" HREF="msg00761.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
Wesley W. Terpstra <a href="mailto:terpstra@iota.dhs.org">terpstra@iota.dhs.org</a>, Thu 23 Dec 1999, 17:00 GMT
<UL>
<LI><strong><A NAME="00768" HREF="msg00768.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
J C Lawrence <a href="mailto:claw@kanga.nu">claw@kanga.nu</a>, Thu 23 Dec 1999, 17:08 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00742" HREF="msg00742.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Thu 23 Dec 1999, 00:29 GMT
</LI>
</ul>
<LI><strong><A NAME="00751" HREF="msg00751.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
Rahul Sinha <a href="mailto:rsinha@glue.umd.edu">rsinha@glue.umd.edu</a>, Thu 23 Dec 1999, 05:36 GMT
<UL>
<LI><strong><A NAME="00753" HREF="msg00753.html">[MUD-Dev] PGP player certificates (was: collecting ideas...)</A></strong>, 
Wesley W. Terpstra <a href="mailto:terpstra@iota.dhs.org">terpstra@iota.dhs.org</a>, Thu 23 Dec 1999, 05:39 GMT
<UL>
<LI><strong><A NAME="00766" HREF="msg00766.html">Re: [MUD-Dev] PGP player certificates (was: collecting ideas...)</A></strong>, 
David Bennett <a href="mailto:ddt@discworld.imaginary.com">ddt@discworld.imaginary.com</a>, Thu 23 Dec 1999, 17:00 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00758" HREF="msg00758.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
J C Lawrence <a href="mailto:claw@kanga.nu">claw@kanga.nu</a>, Thu 23 Dec 1999, 07:50 GMT
</LI>
<LI><strong><A NAME="00765" HREF="msg00765.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
Greg Miller <a href="mailto:gmiller@classic-games.com">gmiller@classic-games.com</a>, Thu 23 Dec 1999, 17:00 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>