1997Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Virtual Chemistry -->
<!--X-From-R13: [ngg Qunggreyrl <ebbgNzcp.qla.zy.bet> -->
<!--X-Date: from stimpy.globecomm.net [207.51.48.4] by in12.ibm.net id 870512102.40446&#45;1 Sat Aug  2 08:55:02 1997 CUT -->
<!--X-Message-Id: Pine.LNX.3.96.970802094141.132A&#45;100000#mpc,dyn.ml.org -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Pine.GSO.3.95q.970801122411.15430A&#45;100000@uhunix2 -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  Virtual Chemistry</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:root#mpc,dyn.ml.org">
</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="msg00332.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00334.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00328.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00348.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00333">Author</A>
&nbsp;|&nbsp;<A HREF="#00333">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00333">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  Virtual Chemistry</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]  Virtual Chemistry</LI>
<LI><em>From</em>: Matt Chatterley &lt;<A HREF="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</A>&gt;</LI>
<LI><em>Date</em>: Sat, 2 Aug 1997 09:54:19 +0000 (GMT)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:neddy#itl,net">neddy#itl,net</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 Fri, 1 Aug 1997, Nathan Yospe wrote:
&gt; On Fri, 1 Aug 1997, Matt Chatterley wrote:
&gt; :On Wed, 30 Jul 1997 clawrenc#cup,hp.com wrote:
&gt; 
&gt; :[Snip my original post]
&gt; 
&gt; :&gt; First thoughts on a representational model:
&gt; 
&gt; :&gt;   Create a coordinate system.  
&gt; :&gt;   The axis of the coordinate system are the principles of your
&gt; :&gt;     alchemy system (yes, lotsa dimensions).
&gt; :&gt;   The purpose of the coordinate system is to define the 
&gt; :&gt;     behaviour of a substance.
&gt; :&gt;   Given a substance, a coordinate location can be computed from 
&gt; :&gt;     its components.
&gt; :&gt;   Given a coordinate location, the effect of the substabce can 
&gt; :&gt;     be derived.
&gt; 
&gt; Ghah, gets messy. I have a series of "universal" chemical attributes, and
&gt; one of "specialized" attributes, that can be inherited by any substance.
&gt; There are few specialized attributes... none so far. But I have individual
&gt; compounds seperately defined. No way am I going to try to _predict_ the
&gt; results of a reaction. Undefined reactions just fizzle.

Works nicely for me - mind you, IIRC, you're more a bio type guy, aren't
you? Maths/Physics are my real areas of interest (along with electronics),
so this sort of model appeals to me from the start.
 
&gt; :I was initially unsure about this, but the more I thought - the more I
&gt; :liked it, and, for what I want to create, it makes perfect sense, and
&gt; :seems to work nicely (at least theoretically).
&gt; 
&gt; Luck to you.

:) It needs a little refinement from the initial ideas JCL prompted, but
it looks good.
 
&gt; :&gt; Thus the leaves of the herb WaggaWagga might have a coodinate weight
&gt; :&gt; of (-5, 8, 3) presuming the simplistic case of only 3 principles.  The
&gt; :&gt; root of the UmbaUmba plant might have a value of (2, 9, -10).  Mix
&gt; :&gt; then together with GooGoo mud (0, 0, 2), and you get a substance (-3,
&gt; :&gt; 17, -5).  That location can be plotted in the coordinate system and a
&gt; :&gt; result computed:
&gt; 
&gt; :&gt;   A minor weakening agent (-3) that also a *really* effective sleeping
&gt; :&gt; draught (17), and reduces physical dexterity (-5).
&gt; 
&gt; With these kinds of properties, do have any idea how _huge_ the list would
&gt; get? (Um. All of the above qualify as "specialized" attributes, now that I
&gt; think of it.)

Frighteningly huge, which is why I'm going to use more general properties,
which determine the 'specific' properties as a sort of 'resultant' effect.
For instance, a good component for a fireball spell might be very volatile
(read: unstable), with high energies of combustion (burns well), and a
high magical capacitance (less 'earthly' and more connected to the flow of
magic, hence more likely to 'ignite' in the spell).
 
&gt; :Yup. Of course, you'd need many more properties tracked.. but still, we
&gt; :have the basic spirit captured here. First things which came to mind were
&gt; :properties to track reactivity of substances, acidity, and magical
&gt; :capacitance. More general things with relevant to the mixing of
&gt; :chemicals. A question rose subsequently here - what about by products? How
&gt; :do we tell if a by product should be produced? I have yet to answer that
&gt; :one.
&gt; 
&gt; I _do_ have ph, solubility in polar and nonpolar, state (crystal, liquid,
&gt; gas, glass, and plasma), density, reactions (actually externally
&gt; tracked... there is a pointer to every derivative, and the derivative
&gt; backpoints to its components... most reactions require some trigger that
&gt; looks to generate reactions, IE heat.), color, maleability, rebound, etc.
&gt; Some of these only apply to solid states, of course.

Naturally - I initially thought perhaps there would be an easy way to do
this (read: simple), then I realised, that for a good system with a degree
of external simplicity, I would have to get quite intensely complex
internally. Hence simple concepts like state tracking, and more complex
ones such as Ph, reactivity (generalised) and so forth. Colour is fun,
lots of nice bubbly liquids to play with (also the need to track
temperature).
 
&gt; :&gt; Or some such similar whatever.  You can then add other weightings,
&gt; :&gt; such taht the WaggaWagga(-5, 8, 3) gets an added (-2, 1, -8) value
&gt; :&gt; added if it is prepared by grinding in a special stone bowl while
&gt; :&gt; chanting the desiderata backwards.  
&gt; 
&gt; :It's easy to add in special cases once you have an established system,
&gt; :almost trivial (some sort of basic db format seems in order, loaded at
&gt; :runtime). Also, consider the states of compouds - mixing two solids
&gt; :(powders) is hard. Or rather, you can mix them easily, but not chemically
&gt; :combine them (unless they *really*really* react!). Of course, its not the
&gt; :same with two liquids, and/or a liquid and a powder. Gases are pretty
&gt; :tricky to react, too (without appropriate equipment).
&gt; 
&gt; Of course, there is the example of charcoal, saltpeter, and sulphur.

Yup. Your classic exceptions. Flour is a good one, too.
 
&gt; :Incidentally, bringing in the concept of tracking state produces a flaw in
&gt; :the design of many stock (LP) bases - you have a drink inheritable, which
&gt; :all drinkable substances must include, defining alchoholic properties etc
&gt; :(this is pretty standard accross LP, excepting very different games). Of
&gt; :course, this is not going to really work with liquids - in theory you can
&gt; :drink any liquid, but you don't want to inherit drink into all of them!
&gt; 
&gt; So isn't a drink a solution of ethanol and something else? And therefore
&gt; liquid state?

Exactly the trail of thought I went along. I was mildly uncomfortable with
splitting objects into clear categories from the start - but initially (a
year ago) I set out to create 'just another LP mud' with some nice
widgets. The evolution since then is remarkable.
 
&gt; :Simple solution: Ditch the lame idea of a drink inheritable, and simply
&gt; :make drinks chemicals with appropriate properties. This also allows the
&gt; :use of common drinks (eg: water) in such reactions as formation of
&gt; :solutions from powders, and dilution of solutions (and also brings in the
&gt; :notion of concentration of solution). Excellent.
&gt; 
&gt; Quite. Well done.

It allows for all sorts of fun things too! Particularly the notion of the
'mad alchemist' trying to create a magic potion to do something, and
gulping down all sorts of smoking, coloured liquids.
 
&gt; :&gt; The reason for doing a coordinate system rather than a flat expression
&gt; :&gt; for each axis is tht it allows you to put in break values.  Simple
&gt; :&gt; things like values on this axis smaller than X have this effect, and
&gt; :&gt; larger than Y have this totally other effect.  Compound that across
&gt; :&gt; multiple axis, and you can get a result which is far removed from the
&gt; :&gt; intial components.
&gt; 
&gt; What of features like shear? There is no antishear...
&gt; 
&gt; :Definitely. You can literally simulate the change in properties of
&gt; :alchohols as you increase the length of the carbon chain (aka, add CH2 to
&gt; :go up from Methanol to Ethanol, to Propanol and then Butanol, etc). The
&gt; :effects are fairly subtle(ish), but mappable in this way. Woo.
&gt; 
&gt; Of course, this means ignoring the reality, or actually specifying the
&gt; reaction.

Well, yes, to be honest. :) I'm most of the way through a project on
capacitance (and organic di-electrics), written from a physics point of
view, with only a fairly naive amount of chemistry pulled in. It makes
assumptions about the length of carbon chains which I believe to be false
(as a chemist), but which present interesting concepts (leading to
something more close to life) when explored physically (onto polarisation
of molecules, and what is a plausible reason for the changes in behavior).
 
&gt; :&gt; Next up would be to then special case certain combinations (reflective
&gt; :&gt; alchemy), such that components A (which normally has a very simple
&gt; :&gt; effect), and B (similarly simple), in combination do something else
&gt; :&gt; entirely (ie mutate into a totally different coordinate.
&gt; 
&gt; :You could do special cases both by mutation of one or more properties, or
&gt; :just by taking an effect 'out of the hat' and assigning it, so to speak
&gt; :(for instance, a binary liquid, which is harmless on its own, but explodes
&gt; :without explanation on contact with another similar liquid).
&gt; 
&gt; The reason I make these things _always_ specified is that I have almost
&gt; never seen anything that wasn't an exception to logical rules in this
&gt; arena.

Heh. :) Well, luckily I don't really want to simulate RL chemistry - just
'A chemistry', which could quite conceivably be more logical, given the
world theme and history. With your Sci-fi (future of this world?) slant,
it might be a lot harder.

&gt; :&gt; This special casing can be handled without undue difficulty by
&gt; :&gt; building it into the base system.  Again, going back to the simplistic
&gt; :&gt; 3 principles above, just add various other "fake" principles after
&gt; :&gt; that.  Thus WuggaWugga could be (-5, 8, 3, 0, 12, 2) and UmbaUmba (2,
&gt; :&gt; 9, -10, -5, 9, -10).  Then when they're mixed the result is (-3, 17,
&gt; :&gt; -2, -5, 21, -8).  Now you can do your special casing on the fake
&gt; :&gt; values (-5, 21, -8).  Say things like if the first fake value is less
&gt; :&gt; than -5 it was apply (X,Y,Z) to the base matrix, it its over +5 apply
&gt; :&gt; (Q,R,S) etc.  This results in a really simple way to codify the
&gt; :&gt; exceptions and and special cases while allowing new compnents to be
&gt; :&gt; added which have their own unique behaviours.
&gt; 
&gt; :Yup.
&gt; :
&gt; :&gt; &gt;Has anyone actually attempted anything of this nature, or
&gt; :&gt; &gt;contemplated it?
&gt; 
&gt; Something in the same continent, at least.

:) About time this jungle was explored.
 
&gt; :&gt; Nope.
&gt; 
&gt; :Well - that answer is changing now. The above reflect a few of my
&gt; :considerations as I put pen to paper to map this out properly.
&gt; 
&gt; *nod*

This is a good example of something with a lot to add to a mud if well
implemented (and nothing at all if done badly). I've seen badly done
alchemy systems once or twice before (only certain things could be mixed -
you could not just pick up an interesting rock, crush it to dust and throw
it into some viscous blue bubbly stuff in a jar).
 
&gt; :Another random one that just flew past:
&gt; 
&gt; :We can represent loose solids in a room easily. Liquids fairly easily
&gt; :(pools that can be manipulated with some difficulty, and that evaporate
&gt; :over time based on their volitality), but what about gases? Should we
&gt; :begin measuring the atmospheric compositions of a room/area/whatever, and
&gt; :allowing for temporary changes?
&gt; 
&gt; Well, it should be taken for granted that I model as much of this as is
&gt; interesting at any point in time. Meaning I don't actually do a barometer,
&gt; unless a room has suffered a sudden serious pressure change (airlock), in
&gt; which case it is fully evaluated. Poison gasses and gas grenades are an
&gt; important factor in my game, as are mists. Evaporation of a fluid happens
&gt; only if it has checked _interesting effect_ and
&gt; _non-infinite-evaporation_. An object (a fluid) is only checked once.

Right. It may be best to assume normal unless otherwise set (and not
bother to check it unless it changes, then start applying effects).
 
&gt; "You? We can't take you," said the Dean, glaring at the Librarian.
&gt; "You don't know a thing about guerilla warfare." - Reaper Man,
&gt; Nathan F. Yospe  Registered Looney                   by Terry Pratchett
&gt; yospe#hawaii,edu   <A  HREF="http://www2.hawaii.edu/~yospe">http://www2.hawaii.edu/~yospe</A>           Meow

Where did you register as a looney? ;)

Regards,
	-Matt Chatterley
	<A  HREF="http://user.itl.net/~neddy/index.html">http://user.itl.net/~neddy/index.html</A>
"Doublethink means the power of holding two contradictory beliefs in one's
	mind simultaneously, and accepting both of them." -George Orwell


</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="00348" HREF="msg00348.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>
<ul compact><li><em>From:</em> Nathan Yospe &lt;yospe#hawaii,edu&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00328" HREF="msg00328.html">Re: [MUD-Dev]  Virtual Chemistry</A></STRONG>
<UL><LI><EM>From:</EM> Nathan Yospe &lt;yospe#hawaii,edu&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00332.html">Re: [MUD-Dev]  Virtual Chemistry</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00334.html">Re: [MUD-Dev]  Virtual Chemistry</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00328.html">Re: [MUD-Dev]  Virtual Chemistry</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00348.html">Re: [MUD-Dev]  Virtual Chemistry</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00333"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00333"><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]  Virtual Chemistry</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00109" HREF="msg00109.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Adam Wiggins <a href="mailto:nightfall#user1,inficad.com">nightfall#user1,inficad.com</a>, Sun 13 Jul 1997, 12:09 GMT
</LI>
<LI><strong><A NAME="00301" HREF="msg00301.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Thu 31 Jul 1997, 07:56 GMT
<UL>
<LI><strong><A NAME="00327" HREF="msg00327.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Matt Chatterley <a href="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</a>, Sat 02 Aug 1997, 05:03 GMT
<UL>
<LI><strong><A NAME="00328" HREF="msg00328.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Sat 02 Aug 1997, 05:42 GMT
<UL>
<LI><strong><A NAME="00333" HREF="msg00333.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Matt Chatterley <a href="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</a>, Sat 02 Aug 1997, 15:55 GMT
<UL>
<LI><strong><A NAME="00348" HREF="msg00348.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Sun 03 Aug 1997, 08:06 GMT
<UL>
<LI><strong><A NAME="00350" HREF="msg00350.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Matt Chatterley <a href="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</a>, Sun 03 Aug 1997, 15:36 GMT
</LI>
<LI><strong><A NAME="00359" HREF="msg00359.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Mon 04 Aug 1997, 04:33 GMT
<UL>
<LI><strong><A NAME="00360" HREF="msg00360.html">Re: [MUD-Dev]  Virtual Chemistry</A></strong>, 
Matt Chatterley <a href="mailto:root#mpc,dyn.ml.org">root#mpc,dyn.ml.org</a>, Mon 04 Aug 1997, 05:06 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</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>