1999Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] In&#45;Game Languages -->
<!--X-From-R13: [vpunry Vburafrr <zvpunryNfcnegn.znvafgernz.arg> -->
<!--X-Date: Sun, 4 Apr 1999 20:18:00 &#45;0700 -->
<!--X-Message-Id: 370821B1.3CEE1F42#sparta,mainstream.net -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199904041600.KAA04557@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] In-Game Languages</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:michael#sparta,mainstream.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="msg00008.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00010.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00008.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00010.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00009">Author</A>
&nbsp;|&nbsp;<A HREF="#00009">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00009">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] In-Game Languages</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] In-Game Languages</LI>
<LI><em>From</em>: Michael Hohensee &lt;<A HREF="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</A>&gt;</LI>
<LI><em>Date</em>: Mon, 05 Apr 1999 02:36:33 +0000</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:michael#argos,nyu.edu">michael#argos,nyu.edu</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; [Eli Stevens:]
&gt; 
&gt;  &gt;It works by converting each of the 26 letters of the English alphabet into
&gt;  &gt;one of the ten characters that define the language.
&gt; 
&gt; This is an interesting technique. Certainly faster than others I've
&gt; heard of. I'm curious as to how you came up with it. Is there some
&gt; linguistic basis behind needing only ten letters? Certainly the full
&gt; 26 aren't really needed, but I'm surprised that only 10 are. Can you
&gt; give some of the "philosophy" behind this, or was it mostly trial and
&gt; error to produce something that works as desired?
&gt; 
&gt; How does someone with the given language skill read the output? Do they
&gt; simply get the untranslated version, and others get the translated version?
&gt; Does this work for written material too? (It could - you would just have
&gt; to have a language flag on all text, and do the translation on final
&gt; output to the player, so that a player could carry around a Dwarvish
&gt; book, and finally read it after learning the skill.)
&gt; 

I didn't mean for this reply to get so long, but it kinda grew in the
writing:

We must be careful in how we implement this, however.  If you're doing a
simple rot-X or substitution code, enterprising players might deduce it
through learning the language, writing one letter in it, and showing it
to an ignorant character.  The player might then write a script for some
client which translates the language on the fly, and that would kinda
ruin the neatness of languages.

One solution to this is to show ignorant players random gibberish
whenever someone speaks, but that precludes the example of writing a
book in dwarvish.  (What sort of book has different letters in it each
time you look at it?)

A better solution would be to store the dwarvish text in plaintext on
the server, and translate it into code for those who can't read it. To
make it harder for someone to deduce this code, make the word-munging a
function of the numerical version of the character's name.  This makes
it next to impossible for someone to produce a way to cheat the system,
and has another added bonus of doing a little RP enforcement:

Boffo, who cannot read dwarvish, has a dwarven sword with the words
"hwjel ahofi" inscribed upon it.  This is a unique sword, and if anyone
stole it, he'd recognize it based upon the inscription, even though he
cannot read it.  Suppose this sword is stolen by Buffy, who runs off
with it and shows it to Bubba, who happens to be run by the same player
who runs Boffo.  Bubba is also ignorant of dwarvish, and can't read the
inscription.  If the player saw "hwjel ahofi" on it, however, he'd know
that it was Boffo's sword, and might take some inappropriate action. 
But since Bubba's name is different from Boffo's, he sees something
else, like "klsj ewilhf", and doesn't suspect anything.

The only drawback to this would be that players couldn't sound out the
foreign words to one another with any degree of consistency: "Hey Bubba,
what's 'kahas' mean?  It's written on this sword." (Bubba, instead of
seeing "kahas" sees "najs", and begins to lose his sense of immersion). 
It also prevents Bubba from copying down these foreign words, which he
should be able to do.  This could be solved by a slightly more complex
system:

Each language translates cleartext letters into multi-letter
combinations which do not generally exist in english.  Which combination
is assigned to which letter depends on the character's name.  The goal
is to make sure that no combination of cleartext letters can create a
remotely english word.

If we are dealing with multiple languages, divide the letter-combination
space into as many chunks as you have languages.  Then use the
character's name as a method for picking letter combinations out of
these spaces to correspond to cleartext letters.  If we use combinations
of three or four letters, this should work for a few languages.  Note
that nonalphanumeric characters should be given the same form in each
language, for reasons which will become apparent in the example below.

Check each word that the player says to see if it fully matches a
possible word in some language unknown to that player.  Do this with the
following C pseudocode:

struct each_word
{
	int language;
	char *cleartext;
};

for (each word in string)
{
foreignword = FALSE;

if (word can be evenly split into chunks of N letters)
{
	foreignword = TRUE;

	for (chunk = chunk#1;lang = language chunk#1 belongs to;
	     chunk != NULL;
	     chunk = chunk-&gt;next)
	{
	if (language chunk belongs to != lang)
	  foreignword = FALSE;
	}
}

struct each_word clearword;

if (foreignword)
{
  clearword = reverse_translate(word, lang, character_name);
}
else
{
  clearword = make_word(current language of speaker, word);
}
}

We then generate all our output in terms of these "clearwords",
translating them as necessary.  This allows:

Bubba: (speaking Human) "Hey Buffy, what's 'klahs' mean?"

('klahs' is what Bubba sees whenever the word "dumb" appears in
Dwarvish)
(the MUD interprets this input according to the above algorithm, comes
up with the list:

{Human, "Hey"},
{Human, "Buffy,"},
{Human, "what's",
{Dwarf, "'dumb'"},
{Human, "mean?"};

Since Buffy speaks Dwarvish, she sees:

Bubba says, "Hey Buffy, what's 'dumb' mean?"

Buffy: (in human) "It means 'dumb'."

With the addition of some simple tags, Buffy could have said:

Buffy: (in human) "It's a complement, you my friend, are
&lt;dwarvish&gt;dumb&lt;/dwarvish&gt;."

And Bubba would see:

Buffy says, "It's a complement, you my friend, are klahs."

As you can see, the fun never ends.  By now you've noticed why I
stipulated that nonalphanumeric characters should have the same
translation string in all languages, since they serve for nonverbal cues
(emphasis, tone, timing) which should be apparent to all characters.  If
you want to implement a *really* alien language, you can give it
different translation strings for some letters like !,?, etc.  You can
even make the distinction between being able to read and speak a
language in this manner, by specifying written dwarvish as being a
different language than spoken dwarvish.

Other effects:

Player #1 plays Bubba and Boffo, and neither of them speak or read
dwarvish.  Bubba has, however, seen a lot of dwarvish script, and the
player can usually recognize dwarven inscriptions when Bubba sees them. 
When that same player plays Boffo, however, these same inscriptions look
different, and if Boffo hasn't seen a lot of dwarven inscriptions, the
player won't be able to recognize the language while playing Boffo.

Boffo can decipher elven writing, but cannot understand spoken elvish.  

&lt;Insert cool realistic example here&gt;


Cons of such a system:

More CPU overhead
More bandwidth requirements for foreign words.

These really aren't so bad.  Given modern computing power, the CPU
overhead for such a system shouldn't be too horrible, and the bandwidth
increase due to the tripling or quadrupling of the amount of foreign
text transmitted over the network shouldn't be too much of an issue. 
It's not like we're transmitting 12k of text on a regular basis. 

There you have it, my design for a MUD language system, devised on the
fly.  Does anyone see any flaws/room for improvement in this system?

Michael Hohensee
michael#sparta,mainstream.net
<A  HREF="http://pages.nyu.edu/~mah248/">http://pages.nyu.edu/~mah248/</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>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00022" HREF="msg00022.html">Re: [MUD-Dev] In-Game Languages</A></strong>
<ul compact><li><em>From:</em> "David Bennett" &lt;ddt#discworld,imaginary.com&gt;</li></ul>
<li><strong><A NAME="00011" HREF="msg00011.html">[MUD-Dev] Confined Gameworld</A></strong>
<ul compact><li><em>From:</em> Ling &lt;K.L.Lo-94#student,lboro.ac.uk&gt;</li></ul>
<li><strong><A NAME="00010" HREF="msg00010.html">Re: [MUD-Dev] In-Game Languages</A></strong>
<ul compact><li><em>From:</em> Ben Greear &lt;greear#cyberhighway,net&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00003" HREF="msg00003.html">Re: [MUD-Dev] In-Game Languages</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="msg00008.html">Re: [MUD-Dev] In-Game Languages</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00010.html">Re: [MUD-Dev] In-Game Languages</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00008.html">Re: [MUD-Dev] In-Game Languages</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00010.html">Re: [MUD-Dev] In-Game Languages</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00009"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00009"><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] In-Game Languages</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00005" HREF="msg00005.html">Re: [MUD-Dev] In-Game Languages</A></strong>, 
Matthew D. Fuller <a href="mailto:fullermd#futuresouth,com">fullermd#futuresouth,com</a>, Mon 05 Apr 1999, 01:26 GMT
<UL>
<LI><strong><A NAME="00019" HREF="msg00019.html">Re: [MUD-Dev] In-Game Languages</A></strong>, 
Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Wed 07 Apr 1999, 06:10 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00006" HREF="msg00006.html">RE: [MUD-Dev] In-Game Languages</A></strong>, 
Eli Stevens (KiZurich) <a href="mailto:c718157#showme,missouri.edu">c718157#showme,missouri.edu</a>, Mon 05 Apr 1999, 01:27 GMT
</LI>
<LI><strong><A NAME="00008" HREF="msg00008.html">Re: [MUD-Dev] In-Game Languages</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Mon 05 Apr 1999, 01:28 GMT
</LI>
<LI><strong><A NAME="00009" HREF="msg00009.html">Re: [MUD-Dev] In-Game Languages</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Mon 05 Apr 1999, 03:18 GMT
<UL>
<LI><strong><A NAME="00010" HREF="msg00010.html">Re: [MUD-Dev] In-Game Languages</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Mon 05 Apr 1999, 17:01 GMT
<UL>
<LI><strong><A NAME="00016" HREF="msg00016.html">Re: [MUD-Dev] In-Game Languages</A></strong>, 
Michael Hohensee <a href="mailto:michael#sparta,mainstream.net">michael#sparta,mainstream.net</a>, Tue 06 Apr 1999, 16:25 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00011" HREF="msg00011.html">[MUD-Dev] Confined Gameworld</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lboro.ac.uk">K.L.Lo-94#student,lboro.ac.uk</a>, Tue 06 Apr 1999, 05:00 GMT
<UL>
<LI><strong><A NAME="00012" HREF="msg00012.html">RE: [MUD-Dev] Confined Gameworld</A></strong>, 
Eli Stevens (KiZurich) <a href="mailto:c718157#showme,missouri.edu">c718157#showme,missouri.edu</a>, Tue 06 Apr 1999, 05:56 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</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>