msg00330.html

1999Q2/msg00330.html · 9.7 KB

From the archive 1999Q2.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] ScryMUD 1.9.3 released. -->
<!--X-From-R13: Pra Uerrne <terrneNploreuvtujnl.arg> -->
<!--X-Date: Thu, 27 May 1999 21:37:11 &#45;0700 -->
<!--X-Message-Id: 374E14F1.83CC3679#cyberhighway,net -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199905280347.VAA03341@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] ScryMUD 1.9.3 released.</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:greear#cyberhighway,net">
</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="msg00329.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00331.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00329.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00322.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00330">Author</A>
&nbsp;|&nbsp;<A HREF="#00330">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00330">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] ScryMUD 1.9.3 released.</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>: Re: [MUD-Dev] ScryMUD 1.9.3 released.</LI>
<LI><em>From</em>: Ben Greear &lt;<A HREF="mailto:greear#cyberhighway,net">greear#cyberhighway,net</A>&gt;</LI>
<LI><em>Date</em>: Thu, 27 May 1999 21:00:49 -0700</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:greear#burrito,cyberhighway.net">greear#burrito,cyberhighway.net</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>
Chris Gray wrote:
&gt; 
&gt; [Ben Greear:]
&gt; 
&gt; &gt; Grock habla 'foo'
&gt; &gt; and an English speaker to see:
&gt; &gt; Grock says 'foo'
&gt; 
&gt; A friend of mine who sort-of speaks Esperanto helped me translate my
&gt; simple one-source-file scenario into that language. It sort-of works,
&gt; but some of the stuff got tricky. Do you handle input commands in
&gt; other languages?

My parser is very spartan in nature.  It can't handle modifiers like
the, a, from, to, at....  (It does allow for abbreviation everywhere though,
consider it the UNIX of mud parsers :))

I believe with that restriction in place, and my new alias implementation
scheme, other languages will be supported just as well as English.  For once,
I'm glad at how rudimentary the parsing really is :)

 How? Since Amiga stuff was used more in Europe than
&gt; in North America, I got asked for German and Norwegian(?) versions
&gt; of it, but couldn't figure out how to properly handle commands where
&gt; the verb isn't at the start. My parser is pretty keyed on that. I
&gt; put out some questions on how to approach it, but didn't get any
&gt; useful suggestions back.

If you are interested in my parser, check out the parse.cc, along with the
code_gen tool and the gen_cmds.* files (which the code_gen produces).  It's
not all that clever, but with the auto-gen capability, adding new aliases
(ie commands in other languages), seems like it will be quite easy.  I may
have to do work to beat performance issues, as I couldn't figure out how
to get better than linear lookup (strncasecmp) after doing a switch on the
first letter.  However, at some point you just gotta buy bigger hardware if
it's an issue (and so far, it definately isn't a problem).

&gt; 
&gt; Any general thoughts in the group on how to handle input commands
&gt; where the verb isn't always the first word, and where the parser doesn't
&gt; know all of the words used in the command?

I always force the verb to be at the beginning, and only nouns and numbers
follow.  (Thats generally the case at least.)  So, if you built the world
database in a certain language, and added aliases for the language to the
code-gen process, then you should be pretty much good to go.  In your
case, you might have to have drop-in parsers, that are chosen dynamically
at run-time, based on the language-enum of a particular character.

That said, a great deal of work waits to be done pulling out each and every
constant string (and sprintf pattern) and putting in an external place
(translations.spec).  Only then will it be truly multi-lingual.  However,
I think I've beat many of the technical issues...only the boring work
remains!!  (Famous last words!!)

The interesting part will be allowing the sprintf patterns to work w/different
verb/noun order as you mentioned earlier.  I don't have an automagic idea for
that (other than adding a %I tag that tells my Sprintf to ignore that command..)

&gt; 
&gt; --
&gt; Don't design inefficiency in - it'll happen in the implementation.
&gt; 
&gt; Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA
&gt;                <A  HREF="http://www.GraySage.Edmonton.AB.CA/cg/">http://www.GraySage.Edmonton.AB.CA/cg/</A>
&gt; 
&gt; _______________________________________________
&gt; MUD-Dev maillist  -  MUD-Dev#kanga,nu
&gt; <A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

-- 
Ben Greear (greear#cyberhighway,net)  <A  HREF="http://www.primenet.com/~greear">http://www.primenet.com/~greear</A> 
Author of ScryMUD:  mud.primenet.com 4444        (Released under GPL)
<A  HREF="http://www.primenet.com/~greear/ScryMUD/scry.html">http://www.primenet.com/~greear/ScryMUD/scry.html</A>


_______________________________________________
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>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00329" HREF="msg00329.html">Re: [MUD-Dev] ScryMUD 1.9.3 released.</A></STRONG>
<UL><LI><EM>From:</EM> Chris Gray &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00329.html">Re: [MUD-Dev] ScryMUD 1.9.3 released.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00331.html">[MUD-Dev] [TECHNICAL]  How to generate pre-processor output (template problem).</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00329.html">Re: [MUD-Dev] ScryMUD 1.9.3 released.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00322.html">[MUD-Dev] Re: Quadtrees?</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00330"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00330"><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] [TECHNICAL]  How to generate pre-processor output (template problem).</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00346" HREF="msg00346.html">Re: [MUD-Dev] [TECHNICAL]  How to generate pre-processor output (template problem).</A></strong>, 
Oliver Jowett <a href="mailto:icecube#ihug,co.nz">icecube#ihug,co.nz</a>, Sat 29 May 1999, 02:40 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00328" HREF="msg00328.html">[MUD-Dev] ScryMUD 1.9.3 released.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Fri 28 May 1999, 00:54 GMT
<UL>
<LI><strong><A NAME="00334" HREF="msg00334.html">Re: [MUD-Dev] ScryMUD 1.9.3 released.</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Fri 28 May 1999, 05:32 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00329" HREF="msg00329.html">Re: [MUD-Dev] ScryMUD 1.9.3 released.</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 28 May 1999, 03:48 GMT
<UL>
<LI><strong><A NAME="00330" HREF="msg00330.html">Re: [MUD-Dev] ScryMUD 1.9.3 released.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Fri 28 May 1999, 04:37 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00322" HREF="msg00322.html">[MUD-Dev] Re: Quadtrees?</A></strong>, 
Greg Munt <a href="mailto:greg#uni-corn,demon.co.uk">greg#uni-corn,demon.co.uk</a>, Mon 24 May 1999, 00:26 GMT
<UL>
<LI><strong><A NAME="00323" HREF="msg00323.html">Re: [MUD-Dev] Re: Quadtrees?</A></strong>, 
claw <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Mon 24 May 1999, 03:51 GMT
</LI>
<LI><strong><A NAME="00324" HREF="msg00324.html">Re: [MUD-Dev] Re: Quadtrees?</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Mon 24 May 1999, 09:39 GMT
</LI>
<LI><strong><A NAME="00325" HREF="msg00325.html">Re: [MUD-Dev] Re: Quadtrees?</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lboro.ac.uk">K.L.Lo-94#student,lboro.ac.uk</a>, Mon 24 May 1999, 16:54 GMT
</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>

Site Stats

Snippets: 1791
Codebases: 571