1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: mud websites -->
<!--X-From-R13: Epnggre <fpnggreNguribegrk.pbz> -->
<!--X-Date: Wed, 10 Jun 1998 15:05:14 &#45;0700 -->
<!--X-Message-Id: 357F0F56.41C67EA6#thevortex,com -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: mud websites</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:scatter#thevortex,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="msg00945.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00947.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00915.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00956.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00946">Author</A>
&nbsp;|&nbsp;<A HREF="#00946">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00946">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: mud websites</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: mud websites</LI>
<LI><em>From</em>: Scatter &lt;<A HREF="mailto:scatter#thevortex,com">scatter#thevortex,com</A>&gt;</LI>
<LI><em>Date</em>: Wed, 10 Jun 1998 22:57:53 +0000</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#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>
I'm developing an LPmud using the MudOS driver. I worked for 
a while on a mud with what I considered to be a superb 
supporting website (if you're interested, it's at 
<A  HREF="http://eclipse.cs.pdx.edu">http://eclipse.cs.pdx.edu</A>) and having found that website
useful, I naturally wanted a similarly good supporting site. 
A chance visit to <A  HREF="http://www.imaginary.com/~beek">http://www.imaginary.com/~beek</A> introduced 
me to "WWWlib" - a minimalistic HTTP 0.9 text/html webserver 
written in LPC for MudOS.

Ding! Idea! Incorporate the webserver into the mud. I've now 
written my own HTTP 1.0 webserver (not quite complete, as 
yet no form support) in LPC and incorporated it into my 
mudlib. Now suddenly there is so much potential for interaction 
between the webserver object and other objects within the 
mud that the possibilities seem overwhelming. Pages can be 
read from static files or be generated on the fly by "page 
objects" - transparent as far as the web browser is concerned.

The few help pages I'd already written were in a subset of 
HTML with the intention of being able to use the same files 
in the mud and on the webserver - my online help system uses 
the tags to format and colourize the pages. Now, I have a 
"help index" object that scans all the available helpfiles 
and generates an HTML page dynamically containing a link to
each of them. So if I add a new help page, it's immediately 
available on the web - no extra work needed, not even a 
copy. Updates to help pages are also of course instantly
available.

Since every command on the mud is modelled as an object, 
and contains within it help for that command, it was a 
few minutes more work to create another "page object" that 
would take URLs of the form "/help/commands.html?blah" 
and generate a help page for the "blah" command, or an 
index of links to such URLs if no "?blah" part is given. 
Add a new command, and with no extra work that command and 
its help are available on the website.

A webpage to show who's currently online was trivial. 
Ditto pages to "finger" players. 

I'm planning an interface to read the message boards, and 
since pages can require character name/password authorisations 
I can also provide secure (well, at least as secure as logging 
in via telnet) interfaces for posting to the boards, and 
reading and sending mud-mail. They'd be the same boards and 
mail as available in the game, but with a much prettier and 
friendlier interface than a command line can provide.

This is, of course, just the start. I want to put a web 
interface up for new character creation. New players can 
then make all the decisions needed to create a character 
with _all_ of the muds help within easy reach and links 
provided to appropriate help pages in context. No java or 
javascript required! :) The "stateless" nature of HTTP 
might cause a couple of hiccups but since I'm in the unique 
position of being able to edit the webserver, I can add tricks 
that avoid the need for cookies. State could be remembered 
by the server (or maybe better, by the page objects) based 
on the a simple key - the connecting IP perhaps, or a 
hidden field containing a unique key embedded in the form. 

Then there are the possibilities of allowing creators a web 
interface for building standard rooms and objects (though 
they'd still need to add LPC code to the generated files 
for any non-standard features they want).

A web interface for my bug/suggestion report tracking system 
would be nice too. Generated images are beyond me though,
so it would have to do without pie-charts and progress
graphs... :)

Something I could do is a web-based interface to allow you 
to even play the game - doubtful though. Probably what I 
would do is to find a free Java telnet applet and modify
it to connect directly to the mud.

I guess my point is really this: 

Look how much you can do easily when your webserver is just 
another object in your mud! It can talk to, gain information 
from and build pages based on any other object in the mud, is 
always up to date, can identify characters and grant them 
the authorisations they have within the mud... 

Writing a HTTP 1.0 compliant webserver was fairly easy - a 
couple of hours work. It's less than 20k of LPC code. Since 
practically any mud server is going to have socket, telnet, 
network code already, would it take much more than that to 
place a webserver in any server. With this in mind and all 
the possibilities above, why wouldn't you want one? :)

There are only a couple of caveats I can see. Firstly the extra 
overheads of CPU and bandwidth that the server would generate. I 
don't find the former too worrying (unless you are anticipating huge 
numbers of hits). The latter could be a problem, I intend to link 
things like common images from a seperate website so that 
they don't eat into the mud's bandwidth. The second is simply that
it does mean that if the mud is down, then the website is also
down. 

Something to think about?

-- 
Scatter ///\oo/\\\


</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="01151" HREF="msg01151.html">[MUD-Dev] Re: mud websites</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#under,engr.sgi.com&gt;</li></ul>
<li><strong><A NAME="00956" HREF="msg00956.html">[MUD-Dev] Re: mud websites</A></strong>
<ul compact><li><em>From:</em> Oliver Jowett &lt;oliver#jowett,manawatu.planet.co.nz&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="msg00945.html">[MUD-Dev] Telepathy Rules</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00947.html">[MUD-Dev] Re: skill system</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00915.html">[MUD-Dev] Re: Mud websites</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00956.html">[MUD-Dev] Re: mud websites</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00946"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00946"><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="00917" HREF="msg00917.html">[MUD-Dev] META: Erroneous bounce messages.</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 09 Jun 1998, 19:06 GMT
<LI><strong><A NAME="00911" HREF="msg00911.html">[MUD-Dev] RE: Mud websites</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Tue 09 Jun 1998, 17:45 GMT
<UL>
<LI><strong><A NAME="00948" HREF="msg00948.html">[MUD-Dev] Re: Mud websites</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 10 Jun 1998, 23:09 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00915" HREF="msg00915.html">[MUD-Dev] Re: Mud websites</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Tue 09 Jun 1998, 18:50 GMT
</LI>
<LI><strong><A NAME="00946" HREF="msg00946.html">[MUD-Dev] Re: mud websites</A></strong>, 
Scatter <a href="mailto:scatter#thevortex,com">scatter#thevortex,com</a>, Wed 10 Jun 1998, 22:05 GMT
<UL>
<LI><strong><A NAME="00956" HREF="msg00956.html">[MUD-Dev] Re: mud websites</A></strong>, 
Oliver Jowett <a href="mailto:oliver#jowett,manawatu.planet.co.nz">oliver#jowett,manawatu.planet.co.nz</a>, Thu 11 Jun 1998, 02:33 GMT
</LI>
<LI><strong><A NAME="01151" HREF="msg01151.html">[MUD-Dev] Re: mud websites</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Sat 20 Jun 1998, 02:13 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00954" HREF="msg00954.html">[MUD-Dev] Re: Mud websites</A></strong>, 
John Bertoglio <a href="mailto:alexb#internetcds,com">alexb#internetcds,com</a>, Thu 11 Jun 1998, 00:21 GMT
<UL>
<LI><strong><A NAME="00966" HREF="msg00966.html">[MUD-Dev] Re: Mud websites</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Thu 11 Jun 1998, 17:23 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>