msg00088.html

1998Q3/msg00088.html · 163.3 KB

From the archive 1998Q3.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Summary: The "Extensible Game AI" thread -->
<!--X-From-R13: X Q Znjerapr <pynjNhaqre.rate.ftv.pbz> -->
<!--X-Date: Wed, 8 Jul 1998 11:33:31 &#45;0700 -->
<!--X-Message-Id: 199807081833.LAA07175#under,engr.sgi.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] Summary: The "Extensible Game AI" thread</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#under,engr.sgi.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="msg00089.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00090.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00106.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00089.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00088">Author</A>
&nbsp;|&nbsp;<A HREF="#00088">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00088">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Summary: The "Extensible Game AI" thread</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] Summary: The "Extensible Game AI" thread</LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</A>&gt;</LI>
<LI><em>Date</em>: Wed, 08 Jul 1998 11:33:22 -0700</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>

URL:<A  HREF="http://www.cris.com/%7eswoodcoc/exai.thread.html">http://www.cris.com/%7eswoodcoc/exai.thread.html</A>

February 13, 1997 

Hello Folks: 

This is my best summary of the (rather long and rambling) "Extensible
Game AI" thread that ran over on comp.ai.games newsgroup throughout
December, 1996. This was one of the better threads (in my opinion) to
run on said newsgroup; a lot of excellent ideas were brought up, and
hopefully it will eventually lead to more games that permit user
modification of their AI.

If I missed any posts please let me know; the thread began as
"Warcraft 2" and rapidly split into three parallel and intermingling
threads (the other two beign "ExAI Security Issues" and "Extensible
Game AI"), so I may have missed something.

The posts are presented essentially as is, with some minor editing on
my part to trim out redundant .sigs, spelling errors, etc. I did leave
the first use of a given .sig in for the sake of individuality,
however. ;)

Here are the email addresses for those contributors that I have, in
case the reader wishes to follow up a comment or idea via
email. Again, my profound apologies if I've missed anybody; please let
me know.



     Carl D. Burke cburke#mitre,org 
     Eric Dybsand edybs#ix,netcom.com 
     Seth Golub seth#siesta,cs.wustl.edu 
     Les Howie lhowie#novalis,ca 
     Benton Jackson benton#bitstream,net 
     Doc O'Leary droleary#alpha,temporal.org 
     Scott R Lenser s-lenser#coewl,cen.uiuc.edu 
     Keith M. Lucas sillywiz#excession,demon.co.uk 
     Darrin Robert O'leary olearydr#freenet,msp.mn.us 
     Glen Miner gminer#Newbridge,COM 
     Andrae Muys ccamuys#dingo,cc.uq.oz.au 
     Russell Penney rpenney#cyberspace,net.au 
     Bradley Richards bradley#ai-lab,fh-furtwangen.de 
     Gerry Quinn gerryq#indigo,ie 
     Asbj rn bheid#sn,no 
     Sunir Shah sshah#intranet,ca 
     Nigel Sim Nigel_Sim#msn,com 
     Nate Trost nctrost#pobox,com 
     (unknown) tallent1#airmail,net 
     Mike White mykey#geocities,com 
     Bernd Wolff bwolff#newswire,de 
     Steven Woodcock Swoodcoc#cris,com 

Enjoy! 

Steve 

                                                                    


   This thread began when Nigel Sim posted a simple question regarding
the possibility of modifying the AI in Warcraft 2....




From: Nigel_Sim#msn,com (Nigel Sim)
Subject: War Craft II
Date: 12 Dec 96 12:14:29 -0800

How is it possible to write a new AI engine for War2.  Hack it...if 
so has anyone done it???  Or have a network program that plays in the 
place of human player.
Thanks




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: War Craft II
Date: 12 Dec 1996 17:03:50 GMT

Nigel Sim (Nigel_Sim#msn,com) wrote:
: How is it possible to write a new AI engine for War2.  Hack it...if 
: so has anyone done it???  Or have a network program that plays in the 
: place of human player.
: Thanks

Hello Nigel:

   Well, the short answer is of course...anything's possible.  ;)

   Having made the obligatory smartaleck remark, I don't believe there
are any tools or interfaces built into War2 to allow you to do such a
thing.  The only three games I know of on the market that have any form of
"roll your own AI" are Abuse (they have a LISP-based interface you can
do some things with), Quake (there's a programming kit out there someplace
that many players are using to build Quake 'bots), and the Carriers
At War series (using their scenario builder you can adjust the AI
fairly extensively).

   I suppose one COULD build a program that "pressed the buttoms"
for War2 (basically emulating a human player) and thus play one
side.  I'm not sure how you'd "see" things though.

   Another possibility (this one is more solid) would be to read the
data stream sent out over a War2 network or modem game and inject
your own packets instead.  You'd have to know the formats the data
was being sent in, but theoretically if you could analyze that info
you could change it however you wanted.  That might be a good way to
"see" things.

   Warcraft 2, C&amp;C, etc. weren't really built to allow the players to
mess with the AI much, unfortunately.  We had an interesting thread a
while back on this very newsgroup discussing the desirabilty of such
games, and the general consensus was that it would be a lot of fun
for us AI weenies to play with.  ;)



Steve




From: "Keith M. Lucas" &lt;sillywiz#excession,demon.co.uk&gt;
Subject: Re: War Craft II
Date: Fri, 13 Dec 1996 11:38:44 GMT

In article &lt;58pdtm$nus#herald,concentric.net&gt;,
&gt;
&gt;   Another possibility (this one is more solid) would be to read the
&gt;data stream sent out over a War2 network or modem game and inject
&gt;your own packets instead.  You'd have to know the formats the data 
&gt;was being sent in, but theoretically if you could analyze that info
&gt;you could change it however you wanted.  That might be a good way to
&gt;"see" things.

The data simply consists of the other players mouse and keyboard
clicks. The game "runs" on both machines, regularly resynched over the
network. Not that I asked Blizzard at all...

The differences between this and a client-server are apparent
if one runs experiments regarding timing constructions when run over
two very differing machines. Not that I did this at all, you
understand...

&gt;   Warcraft 2, C&amp;C, etc. weren't really built to allow the players to
&gt;mess with the AI much, unfortunately.  We had an interesting thread a 
&gt;while back on this very newsgroup discussing the desirabilty of such
&gt;games, and the general consensus was that it would be a lot of fun
&gt;for us AI weenies to play with.  ;)

So there'd be some interest in, say, a construction kit which allows
the creation of WarCraft II style games, complete with programming
language for the units ?

One that allows units to order other units about. Complete with full
combat model and all the rest ( customisable economy, add-in graphics
and maybe network play ) ?

Some of us might have such a project on the go, you see, and just need
some encouragement.

 -----------------------------------------------------------------------------
"It's not a personality.. it's a bulldozer"    sillywiz#excession,demon.co.uk
          Current project: Computer wargaming's next generation...
 ------------------------------------------------------------------------------
This site does not wish to receive advertising e-mail, defined in this case as
any mail which is a) sent to more than one user at this site over any span of
time b) mail specifically advertising products or services. This is notific-
ation that we do not wish such traffic to enter this system via its telephone
line. You are not authorised to cause this system to route such mail or to
cause such mail to be routed to this site. Causing such is a violation of
various portions of the Computer Misuse Act. Senders may also be in violation
of the Data Protection Act if mailing lists are held within the UK.
 -----------------------------------------------------------------------------




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: War Craft II
Date: 14 Dec 1996 16:44:14 GMT


Keith M. Lucas (sillywiz#excession,demon.co.uk) wrote:
: &gt;   Warcraft 2, C&amp;C, etc. weren't really built to allow the players to
: &gt;mess with the AI much, unfortunately.  We had an interesting thread a 
: &gt;while back on this very newsgroup discussing the desirabilty of such
: &gt;games, and the general consensus was that it would be a lot of fun
: &gt;for us AI weenies to play with.  ;)
: 
: So there'd be some interest in, say, a construction kit which allows
: the creation of WarCraft II style games, complete with programming
: language for the units ?
: 
: One that allows units to order other units about. Complete with full
: combat model and all the rest ( customisable economy, add-in graphics
: and maybe network play ) ?

   The interest seemed high, but this is an AI newsgroup full of hackers.  ;)
The thread itself centered on the question of how one might design such a
game (with an AI interface) and whether or not it would sell enough
copies to make it worth the extra effort.  While nearly everybody here
thought it would be a great thing to see and fiddle with, there was
massive disagreement over whether the "sales benefits" of  having such
a feature would outweigh the costs of implementing, documenting, and
user-proofing it.

: 
: Some of us might have such a project on the go, you see, and just need
: some encouragement.

  You too eh?  So far my managers love the idea, but since they haven't
had to commit yet talk is, as we say, cheap.

  Good luck!

Steve




From: "Keith M. Lucas" &lt;sillywiz#excession,demon.co.uk&gt;
Subject: Re: War Craft II
Date: Sun, 15 Dec 1996 13:13:51 GMT

In article &lt;58ulgu$ocu#herald,concentric.net&gt;,
Steven Woodcock &lt;Swoodcoc#cris,com&gt; wrote:
&gt;
&gt;Keith M. Lucas (sillywiz#excession,demon.co.uk) wrote:
&gt;: &gt;   Warcraft 2, C&amp;C, etc. weren't really built to allow the players to
&gt;: &gt;mess with the AI much, unfortunately.  We had an interesting thread a 
&gt;: &gt;while back on this very newsgroup discussing the desirabilty of such
&gt;: &gt;games, and the general consensus was that it would be a lot of fun
&gt;: &gt;for us AI weenies to play with.  ;)
&gt;: 
&gt;: So there'd be some interest in, say, a construction kit which allows
&gt;: the creation of WarCraft II style games, complete with programming
&gt;: language for the units ?
&gt;: 
&gt;: One that allows units to order other units about. Complete with full
&gt;: combat model and all the rest ( customisable economy, add-in graphics
&gt;: and maybe network play ) ?
&gt;
&gt;   The interest seemed high, but this is an AI newsgroup full of hackers.  ;)
&gt;The thread itself centered on the question of how one might design such a
&gt;game (with an AI interface) and whether or not it would sell enough
&gt;copies to make it worth the extra effort.  While nearly everybody here
&gt;thought it would be a great thing to see and fiddle with, there was
&gt;massive disagreement over whether the "sales benefits" of  having such
&gt;a feature would outweigh the costs of implementing, documenting, and
&gt;user-proofing it.

Ah -- no. The concept here is to have a system into which user created
systems can be plugged - think DOOM wads. I guess the compiled modules
that are shipped with the games produced under the system could be
"hacked", but there are people who'll do that to non-open
architectures as well.

As for the cost of implementation, it was desigend in from the start,
and turns out to be no harder than a closed architecture. Admitedly
the development environment is a bit unfriendly at the moment ( being
a bundle of command line compilers running under Linux ) but
shiny-spangly intelligence-free Winders interfaces shouldn't prove too
hard.

The "AI" is a tad lower level than most people here are probably used
to -- think an assembly language with some instructions for things like
"find the nearest entity to me".

&gt;: 
&gt;: Some of us might have such a project on the go, you see, and just need
&gt;: some encouragement.
&gt;
&gt;  You too eh?  So far my managers love the idea, but since they haven't
&gt;had to commit yet talk is, as we say, cheap.

Um. _Being_ the manager has some advantages it seems.. I have the
basic system up &amp; running, units are obeying the language ( only about
half is implemented yet ) and the world model seems fine - things can
shoot at other things. There's no large scale navigation routine yet
and the economic stuff is only starting to be tested yet.

Mind you I do keep having to stop and go do "real" work as well..

The big thing is I want to sell games written with it on a shareware
type basis, but give away the system so other people can write
components too. Trouble is no-one really seems to like this idea --
all the publishers go green in the face with the thought of
non-proprietry stuff that hasn't got a lock on each and every byte,
and the public hate the idea of not having a "proper" bit of
software. ( They're the ones who don't like Emacs because it includes
a programming interface and therefore "isn't finished". )




From: tallent1#airmail,net
Subject: Re: War Craft II
Date: 16 Dec 1996 11:07:28 GMT

In &lt;58pdtm$nus#herald,concentric.net&gt;, Swoodcoc#cris,com (Steven Woodcock) writes:
&gt;
&gt;Nigel Sim (Nigel_Sim#msn,com) wrote:
&gt;: How is it possible to write a new AI engine for War2.  Hack it...if 
&gt;: so has anyone done it???  Or have a network program that plays in the 
&gt;: place of human player.
&gt;: Thanks
&gt;
&gt;Hello Nigel:
&gt;
&gt;   Well, the short answer is of course...anything's possible.  ;)
&gt;
&gt;   Having made the obligatory smartaleck remark, I don't believe there
&gt;are any tools or interfaces built into War2 to allow you to do such a
&gt;thing.  The only three games I know of on the market that have any form of
&gt;"roll your own AI" are Abuse (they have a LISP-based interface you can
&gt;do some things with), Quake (there's a programming kit out there someplace
&gt;that many players are using to build Quake 'bots), and the Carriers
&gt;At War series (using their scenario builder you can adjust the AI
&gt;fairly extensively).

Just for the record.  There are two other games that have development
kits for reprogramming their AI.  "Galactic Civilizations", and "Master of the
Empire".  Both of these are OS/2 games, which I presume just bores most
of you out there...  But I thought I'd let it be known anyhow...

take it easy

walter




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: War Craft II
Date: 16 Dec 1996 15:01:44 GMT

tallent1#airmail,net wrote:
: 
: Just for the record.  There are two other games that have development
: kits for reprogramming their AI.  "Galactic Civilizations", and "Master of the
: Empire".  Both of these are OS/2 games, which I presume just bores most
: of you out there...  But I thought I'd let it be known anyhow...

Walter:


   Thanks for the info, guy.  I'm thinking about adding a page to my Game
AI page that talks about games that let you fiddle with their AI, and this is
good info to know.


Steve




From: bradley#ai-lab,fh-furtwangen.de (Bradley Richards)
Subject: Re: War Craft II
Date: Tue, 17 Dec 96 12:21:11 GMT

In article &lt;58ulgu$ocu#herald,concentric.net&gt;, Swoodcoc#cris,com (Steven Woodcock) wrote:
&gt;
&gt;Keith M. Lucas (sillywiz#excession,demon.co.uk) wrote:
&gt;: Some of us might have such a project on the go, you see, and just need
&gt;: some encouragement.
&gt;
&gt;  You too eh?  So far my managers love the idea, but since they haven't
&gt;had to commit yet talk is, as we say, cheap.

Encourage, encourage... I have long been looking for such a game, so I could 
give it to my AI students and say "go thou and practiceth what I preach".
As yet no luck finding a suitable game.

BTW, as long as some game designers do read this group, why isn't this done
as a matter of course? In *any* game that provides computer opponents,
reasonable software engineering demands that the computer opponents work
through some sort of reasonably clean interface. Documenting this interface
and making it available with some sort of add-on toolkit would cost little
and could bring in a lot of additional interest in the game.

If said interface *doesn't* exist, then someone in the game firm needs to
go re-take Software Engineering 101...

Cheers,

Bradley

-----------------------------------------------------------------------
Bradley L. Richards, AI Lab, Fachhochschule Furtwangen, D-78120 Germany
<A  HREF="http://www.ai-lab.fh-furtwangen.de:80/~bradley/">http://www.ai-lab.fh-furtwangen.de:80/~bradley/</A>
bradley#ai-lab,fh-furtwangen.de




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: War Craft II
Date: 17 Dec 1996 17:19:40 GMT

Bradley Richards (bradley#ai-lab,fh-furtwangen.de) wrote:
: In article &lt;58ulgu$ocu#herald,concentric.net&gt;, Swoodcoc#cris,com (Steven Woodcock) wrote:
: &gt;  You too eh?  So far my managers love the idea, but since they haven't
: &gt;had to commit yet talk is, as we say, cheap.
: 
: Encourage, encourage... I have long been looking for such a game, so I could 
: give it to my AI students and say "go thou and practiceth what I preach".
: As yet no luck finding a suitable game.

   As I said in an earlier posting, there are only 6 games I can think
of that come close here:


      * Abuse -- They have a LISP-based interface you can
                 do some things with.
      * Carriers At War series -- Using their scenario builder you can 
                                  adjust the AI fairly extensively.
      * CDDNA -- A Risk-like game that uses genetic algorithms and
                 which offers a little "lab" for breeding new and 
                 better AIs.
      * Galactic Civilizations -- OS/2 game with an AI programming kit
      * Master of the Empire -- Another OS/2 game (from the same company
                                as Gal Civ, I think) with an AI programming
                                kit.  
      * Quake -- There's a programming kit out there someplace
                 that many players are using to build Quake 'bots.

   Maybe one of those will help you with your classes?

: 
: BTW, as long as some game designers do read this group, why isn't this done
: as a matter of course? In *any* game that provides computer opponents,
: reasonable software engineering demands that the computer opponents work
: through some sort of reasonably clean interface. Documenting this interface
: and making it available with some sort of add-on toolkit would cost little
: and could bring in a lot of additional interest in the game.
: 
: If said interface *doesn't* exist, then someone in the game firm needs to
: go re-take Software Engineering 101...

   Heh.  I would have to argue that a BIG part of the reason is indeed
a "poor adherence to software design philosophy" on the part of many
developers.  I've seen games that you couldn't have wedged a linked list
into cleanly.  ;)

   Having said that, however, I think the larger reasons are simply
a.) lack of a demand for such a feature (we can argue whether this is
perceived or real), b.) the return on investment that such a feature
would provide, and c.) fear of revealing company secrets.

   Let's tackle "a" first.  Exactly how much demand for a programmable
AI is there in the marketplace?  Pretty much everybody who reads this
newsgroup would love it, sure, but how many 15 year-old Warcraft II 
players really want a game with an interface that allows them to plug
in their own AI modules?  It's one thing to offer up some options in
the scenario builder to make the AI "agressive", "passive", etc....that's
just clicking buttons, and the user is very restricted in what he
can do.  But it's quite another thing to build in programming and
function interfaces to allow some budding C/C++/Delphi programmer
to "roll his own" AI for a game.

   And that leads neatly to issue "b".  If we were to add such a feature
to (for example) Warcraft II, it would need EXTENSIVE documentation...arguably
more than the game itself.  The interface would need to be robust, so
that the user doesn't do some spectacularly stupid and erase his
hard drive.  It needs to allow for some kind of dynamic linking (since
nobody's going to hand over full game source code), so it'll pretty
much need to be a DLL (don't know what the Mac equivalent is).  You'll
also have to decide what language interfaces to support, whether or not
the user will be allowed to add new extensions to the AI interface,
and how you're going to SUPPORT these budding young developers when
they start calling Blizzard at 3:00 AM with a DLL-interface error.
And don't forget the development time to put this in and test it all
out; it's got to be part of the game's development schedule, and will
only make it longer.  Many developers might think this is worth it, 
but selling it to their managers (whose eyes are always on the budget 
and the schedule) probably won't.

   Issue "c" is a particularly thorny one which I myself have run into
quite often.  Those few developers who *are* AI weenies (such as myself)
are often quite proud of something they've put into a particular game.
It may be a wicked fast pathing algorithm, or an extremely flexible 
targetting algorithm, or just a very compact data structure in which
full unit details are stored.  Depending on the implementation of
your AI interface, you may have to reveal these to the world...or enough
of them for another keen AI developer to suss out what you're doing.
That means you've just handed over a competitive advantage of SOME
kind.  Try running THAT by your boss....

   Don't get me wrong.  Personally I think there's a great market
for a game that provides this kind of adaptability, and an fighting to
include it in a future project or two.  But the problems above are
very real and (in my humble opinion) the main reason why you don't
really see much along these lines today.



Steve




From: ccamuys#dingo,cc.uq.oz.au (Andrae Muys)
Subject: Re: War Craft II
Date: 18 Dec 1996 01:24:55 GMT

Steven Woodcock (Swoodcoc#cris,com) wrote:

: Bradley Richards (bradley#ai-lab,fh-furtwangen.de) wrote:
: : In article &lt;58ulgu$ocu#herald,concentric.net&gt;, Swoodcoc#cris,com (Steven Woodcock) wrote:


: : If said interface *doesn't* exist, then someone in the game firm needs to
: : go re-take Software Engineering 101...

:    Heh.  I would have to argue that a BIG part of the reason is indeed
: a "poor adherence to software design philosophy" on the part of many
: developers.  I've seen games that you couldn't have wedged a linked list
: into cleanly.  ;)

   Surely this only increases the development cost of the game.  After all if
you do have clean interfaces between graphics, ai, networking, game-engine
etc I would have thought this would have reduced development time,
especially of the 'next' version.  Hopefully you can convince management
that a good software design philosophy is a good idea.

:    Having said that, however, I think the larger reasons are simply
: a.) lack of a demand for such a feature (we can argue whether this is
: perceived or real), b.) the return on investment that such a feature
: would provide, and c.) fear of revealing company secrets.

:    Let's tackle "a" first.  Exactly how much demand for a programmable
: AI is there in the marketplace.  Pretty much everybody who reads this
: newsgroup would love it, sure, but how many 15 year-old Warcraft II 
: players really want a game with an interface that allows them to plug
: in their own AI modules?  It's one thing to offer up some options in
: the scenario builder to make the AI "agressive", "passive", etc....that's
: just clicking buttons, and the user is very restricted in what he
: can do.  But it's quite another thing to build in programming and
: function interfaces to allow some budding C/C++/Delphi programmer
: to "roll his own" AI for a game.

   This fails to consider the 'entire' demand.  Naturally direct demand for
the capacity to write your own AI is small, if it wasn't few of us would
have a job :).  However you fail to consider a very signifigant
indirect demand, which if marketed well should form a large market.
Westwood are you listening...  The brother of a friend of my best friend
(no it's not monty python) purchased Red Alert.  Throught that contorted
train I have had a chance to play it.  Personally the AI sucks.  Better
then C&amp;C but then I have all the experience from completing C&amp;C to fall
back on.  I am sorry but it is just too easy to hold my attention.  I will
NOT be purchasing it.  The graphics are fine, the game play has a little
too much mouse clicking then I would like but I can live with it.  The AI
however is very disapointing, (BTW my best friend who is not a programmer,
just a wargame freak, like myself, came the that exact same conclusion
before I even saw it).  I will not buying Red Alert.  I was intending to
but Red Alert.  If I could write my own AI routines/download and install
them off the net I would have already bought Red Alert.  Remember .WADs,
you don't have to be able to design a WAD to use it.  A replacable AI is a
marketable feature, don't market it as a 'programmable AI', sell it as a
'user upgradable AI'.  Then publish the spec's of the interface so that
those of us who do enjoy programming can do your AI development for you.


:    And that leads neatly to issue "b".  If we were to add such a feature
: to (for example) Warcraft II, it would need EXTENSIVE documentation...arguably
: more than the game itself.  The interface would need to be robust, so

   Not that I've seen many well documented games.

: that the user doesn't do some spectacularly stupid and erase his
: hard drive.  It needs to allow for some kind of dynamic linking (since
: nobody's going to hand over full game source code), so it'll pretty
: much need to be a DLL (don't know what the Mac equivalent is).

   So you encapsulate all the information that your AI might need in objects,
and provide the AI read-only access to the data.  Allow the AI to interact
with the game engine thru some form of message passing/member
functions/etc so if they really want to erase their hard-drives they are
going to have to work at it. 

:  You'll
: also have to decide what language interfaces to support, whether or not
: the user will be allowed to add new extensions to the AI interface,
: and how you're going to SUPPORT these budding young developers when
: they start calling Blizzard at 3:00 AM with a DLL-interface error.

   This is just policy, work it out.  What language do you use.  Maybe
provide e-mail only support for the AI.  You should expect AI developers
to read the documentation (if it's readable).

: And don't forget the development time to put this in and test it all
: out; it's got to be part of the game's development schedule, and will
: only make it longer.  Many developers might think this is worth it, 
: but selling it to their managers (whose eyes are always on the budget 
: and the schedule) probably won't.

   It shouldn't take that much longer, not if you are using a clean
interface, and designing the code to be extensiable from the start.  It
will require more resources however as you will have to prepare the
documentation in //'l with the development effort or the documentation
will cause a delay (and therefore be skimped, destroying the use of an
extensiable AI).  I would be surprised if documentation is in the critical
path(provided you have the resources required to prepare it in //'l).

:    Issue "c" is a particularly thorny one which I myself have run into
: quite often.  Those few developers who *are* AI weenies (such as myself)
: are often quite proud of something they've put into a particular game.
: It may be a wicked fast pathing algorithm, or an extremely flexible 
: targetting algorithm, or just a very compact data structure in which
: full unit details are stored.  Depending on the implementation of
: your AI interface, you may have to reveal these to the world...or enough
: of them for another keen AI developer to suss out what you're doing.
: That means you've just handed over a competitive advantage of SOME
: kind.  Try running THAT by your boss....

   So implement the AI interface so you don't.  

   Of course you could also run a competition for the best AI's.  With prizes
for different catagories.  You would then be in a position to purchase the
rights for any particually good code and include it in subsequent
versions.

:    Don't get me wrong.  Personally I think there's a great market
: for a game that provides this kind of adaptability, and an fighting to
: include it in a future project or two.  But the problems above are
: very real and (in my humble opinion) the main reason why you don't
: really see much along these lines today.

   Yes I know you like the idea, and would love to be able to provide it/play
with it.  I just feel that your arguements are a little lopsided.  You
don't sell US on this idea, just the general public, and if you ensure
that there are a few alternative AI's avaliable before you release the
game I think the marketing guru's should be able to sell the general
public on the ide

   'Hey guy's with this game, when you get bored with it, and can beat it
blindfolded, you just plug in a better AI and its a challange again!'

Andrae Muys.

   The only problem I see with this is that if you have a game with
extensiable AI, most people will expect it to have extensiable everything
else. (Graphics, rules, etc).

   Not that is that uncommon these day's.


 --
=========================================================================
andrae#humbug,org.au      | #include &lt;favourite_disclaimer.h&gt;
                          |
Andrae Muys               | Linux... What do you want to DO today!
4th(and a half)Yr CSE     | 
University of Queensland. | Diplomacy is the art of saying "Nice Doggie!"
Australia                 |    till you can find a rock. - Wynn Catlin

--
=========================================================================
andrae#humbug,org.au      | #include &lt;favourite_disclaimer.h&gt;
                          |
Andrae Muys               | Linux... What do you want to DO today!




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: War Craft II
Date: 18 Dec 1996 05:01:39 GMT
Organization: Wyrdhaven Wyrks

   Apologies to all for the length of this post; I felt it  necessary to
include large chunks of quotes so the discussion would be easier to
follow.


Andrae Muys (ccamuys#dingo,cc.uq.oz.au) wrote:
: Steven Woodcock (Swoodcoc#cris,com) wrote:
: :    Heh.  I would have to argue that a BIG part of the reason is indeed
: : a "poor adherence to software design philosophy" on the part of many
: : developers.  I've seen games that you couldn't have wedged a linked list
: : into cleanly.  ;)
: 
: Surely this only increases the development cost of the game.  After all if
: you do have clean interfaces between graphics, ai, networking, game-engine
: etc I would have thought this would have reduced development time,
: especially of the 'next' version.  Hopefully you can convince management
: that a good software design philosophy is a good idea.

   I agree completely, and have worked to design my games accordingly.
That allows me to get the "engine" up and running early and then add
things to it that I can *see* and play with.  

   Still, it's not necessarily the way it's done.  It needs to be, and
I think the industry is going that way for precisely the reasons you
mention.   

: :    Let's tackle "a" first.  Exactly how much demand for a programmable
: : AI is there in the marketplace.  Pretty much everybody who reads this
: : newsgroup would love it, sure, but how many 15 year-old Warcraft II 
: : players really want a game with an interface that allows them to plug
: : in their own AI modules?  It's one thing to offer up some options in
: : the scenario builder to make the AI "agressive", "passive", etc....that's
: : just clicking buttons, and the user is very restricted in what he
: : can do.  But it's quite another thing to build in programming and
: : function interfaces to allow some budding C/C++/Delphi programmer
: : to "roll his own" AI for a game.
: 
: This fails to consider the 'entire' demand.  Naturally direct demand for
: the capacity to write your own AI is small, if it wasn't few of us would
: have a job :).  However you fail to consider a very signifigant
: indirect demand, which if marketed well should form a large market.
: (snip)
: If I could write my own AI routines/download and install
: them off the net I would have already bought Red Alert.  

   I agree again, of course, but that's not necessarily the market you
might think it is.  In order to market a game with a capability you
can "plug into", you need to find a sufficient number of people who
a.) buy your game, b.) can program, and c.) have the time and inclination
to write their own AI.

   I agree that the BEST feature of an upgradable AI is that users
that DO meet those criteria can put things together on a web site for
everybody ELSE to play with.  That's a strong point, and one which
I've made to my management with some success.  They remain dubious, 
however, that there's enough interest out there to warrant this
type of effort (needless to say, I'm saving all of these posts to
show them! ;).

: Remember .WADs,
: you don't have to be able to design a WAD to use it.  A replacable AI is a
: marketable feature, don't market it as a 'programmable AI', sell it as a
: 'user upgradable AI'.  

  The comparison with WAD files came up in the previous discussion, and
it's not one I think is very good.  A WAD file is just a database file,
really...that's not that hard (relatively speaking) to put together
when compared to programming a DLL.  The success of WAD files is what
makes this idea even remotely possible, but beyond that I think
(my opinion) there's a world of difference in terms of scale.

: 
: :    And that leads neatly to issue "b".  If we were to add such a feature
: : to (for example) Warcraft II, it would need EXTENSIVE documentation...
: : arguably
: : more than the game itself.  The interface would need to be robust, so
: : that the user doesn't do some spectacularly stupid and erase his
: : hard drive.  It needs to allow for some kind of dynamic linking (since
: : nobody's going to hand over full game source code), so it'll pretty
: : much need to be a DLL (don't know what the Mac equivalent is).
: So you encapsulate all the information that your AI might need in objects,
: and provide the AI read-only access to the data.  Allow the AI to interact
: with the game engine thru some form of message passing/member
: functions/etc so if they really want to erase their hard-drives they are
: going to have to work at it. 

   Possible, certainly.  That's pretty much the approach I'd take,
anyway.  (Can you tell I've given this a *LOT* of thought?  ;)

: 
: : And don't forget the development time to put this in and test it all
: : out; it's got to be part of the game's development schedule, and will
: : only make it longer.  Many developers might think this is worth it, 
: : but selling it to their managers (whose eyes are always on the budget 
: : and the schedule) probably won't.
: It shouldn't take that much longer, not if you are using a clean
: interface, and designing the code to be extensiable from the start.  It
: will require more resources however as you will have to prepare the
: documentation in //'l with the development effort or the documentation
: will cause a delay (and therefore be skimped, destroying the use of an
: extensiable AI).  I would be surprised if documentation is in the critical
: path(provided you have the resources required to prepare it in //'l).

   This I disagree with.  There's a world of difference between the
game's design and interface spec, which is what a developer will work
from, and real honest-to-gosh documentation that a user is going to
read.  And don't forget the little, assumed thing.  I might "know" to
only hand the AI a sorted linked list of units, to the point that it's
second nature.  The user needs documentation that spells that out,
two or three times, with an example.

   That's why you find books describing the features and functions of,
say, Netscape (arguably one of the simplest pieces of software to use
around).  If you do your AI's job right, you may have some 68 functions
(just to pick a random number from my last design document) that do
various things.  Those all need good documenting, and that adds
to Ye Olde Software Schedule.

   Managers WILL go for that, IF you can show them (up front) that it
will add to the saleabilty and marketability of the product.  The
reasons for why that is so you outlined very well above, and I even
agree with them...the trick is convincing managers that this isn't
a "geek" thing.  ;)

: 
: Of course you could also run a competition for the best AI's.  With prizes
: for different catagories.  You would then be in a position to purchase the
: rights for any particually good code and include it in subsequent
: versions.

   One of the very best reasons for doing it:  publicity.  As someone
once said, "Any publicity is good publicity".  Running contests,
providing regular upgrades ("Now Available:  The Patton Template!"),
etc. are great ways to make the idea more saleable and palatable.
Particularly if the company feels this will be a "hit" game from
the start.

: 
: Yes I know you like the idea, and would love to be able to provide it/play
: with it.  I just feel that your arguements are a little lopsided.  

   They probably are; I felt everybody here already knew the GOOD reasons
why this ought to be done by SOMEBODY.  ;)  But not everybody here knows
how those strange critters called Managers view this....

: You
: don't sell US on this idea, just the general public, and if you ensure
: that there are a few alternative AI's avaliable before you release the
: game I think the marketing guru's should be able to sell the general
: public on the ide

   Another good point.  I'll add that one to my arsenal.

: 
: The only problem I see with this is that if you have a game with
: extensiable AI, most people will expect it to have extensiable everything
: else. (Graphics, rules, etc).
: Not that is that uncommon these day's.

  Hmmmm....good point.  The ultimate extension of this, of course, is
a core game engine that anybody can hang anything off of.  THAT could
be interesting too, though a bit weird to see evolve....


Steve




From: Eric Dybsand &lt;edybs#ix,netcom.com&gt;
Subject: Re: War Craft II
Date: Wed, 18 Dec 1996 14:45:17 GMT

In article &lt;597trj$d01#herald,concentric.net&gt;,
        Swoodcoc#cris,com (Steven Woodcock) wrote:

&gt;
&gt;  The comparison with WAD files came up in the previous discussion, and
&gt;it's not one I think is very good.  A WAD file is just a database file,
&gt;really...that's not that hard (relatively speaking) to put together
&gt;when compared to programming a DLL.  The success of WAD files is what
&gt;makes this idea even remotely possible, but beyond that I think
&gt;(my opinion) there's a world of difference in terms of scale.
&gt;

I'd like to add a point here.  In my "Battles" series of shareware games,
I did place scenario specific AI code and data in a .dll, and called that
..dll from the main engine of the game, to produce the computer opponent 
for a given scenario.  This was not a 'public access' to the AI but more
a way for me to produce specific AI for each scenario, with a minimum 
of fuss on my part.

FWIW, that was far more complex than just producing a .wad or .pud file.


&gt;: 
&gt;: :    And that leads neatly to issue "b".  If we were to add such a feature
&gt;: : to (for example) Warcraft II, it would need EXTENSIVE documentation...
&gt;: : arguably
&gt;: : more than the game itself.  The interface would need to be robust, so
&gt;: : that the user doesn't do some spectacularly stupid and erase his
&gt;: : hard drive.  It needs to allow for some kind of dynamic linking (since
&gt;: : nobody's going to hand over full game source code), so it'll pretty
&gt;: : much need to be a DLL (don't know what the Mac equivalent is).
&gt;: So you encapsulate all the information that your AI might need in objects,
&gt;: and provide the AI read-only access to the data.  Allow the AI to interact
&gt;: with the game engine thru some form of message passing/member
&gt;: functions/etc so if they really want to erase their hard-drives they are
&gt;: going to have to work at it. 
&gt;
&gt;   Possible, certainly.  That's pretty much the approach I'd take,
&gt;anyway.  (Can you tell I've given this a *LOT* of thought?  ;)
&gt;

I view creating the encapsulated interface that is suggested, as
yet another layer of coding, that does not necessarily need to be
done, if the AI access was not going to be public.

Thus, in order to "hide" my AI object properly, I have to wrap it in
yet another object.  That increases the complexity of the AI, makes
it harder to test/debug and increases the development time.

If I don't wrap my AI objects, then their public access must be made
known to all (to be able to access) who want to tweak it.

This is not all bad, but it is an _extra_ cost of development.


&gt;: 
&gt;: : And don't forget the development time to put this in and test it all
&gt;: : out; it's got to be part of the game's development schedule, and will
&gt;: : only make it longer.  Many developers might think this is worth it, 
&gt;: : but selling it to their managers (whose eyes are always on the budget 
&gt;: : and the schedule) probably won't.
&gt;: It shouldn't take that much longer, not if you are using a clean
&gt;: interface, and designing the code to be extensiable from the start.  It
&gt;: will require more resources however as you will have to prepare the
&gt;: documentation in //'l with the development effort or the documentation
&gt;: will cause a delay (and therefore be skimped, destroying the use of an
&gt;: extensiable AI).  I would be surprised if documentation is in the critical
&gt;: path(provided you have the resources required to prepare it in //'l).
&gt;
&gt;   This I disagree with.  There's a world of difference between the
&gt;game's design and interface spec, which is what a developer will work
&gt;from, and real honest-to-gosh documentation that a user is going to
&gt;read.  And don't forget the little, assumed thing.  I might "know" to
&gt;only hand the AI a sorted linked list of units, to the point that it's
&gt;second nature.  The user needs documentation that spells that out,
&gt;two or three times, with an example.
&gt;

I agreed with Steve, 110% on this!  Regardless of how _clean_ the interface
is, or how _extensible_ the design is, adding public access to the game's
AI is going to cost more to develop.  The simple reason is that 'public'
access is not needed in the development of a game that does not support it.

RE: documentation.  IMO, it is at least an order of magnitude more work to
produce a Game AI API Reference Manual than a Game Instruction Manual.


Fundamentally, I like the idea (I've even done it on my own "Battles"
series, although that access was never publicized), however every
publisher I've pitched it to, and developer I've worked with, has not
yet been able to justify the added cost of development, in order to 
do it for another game.

IMHO, when a hit game comes out, in which the public access to the AI 
proves to be the killer selling point, then you will see this feature
provided in _all_ games.  Considering that so many computer game developers
and publishers in the recent past, have prioritized AI development behind
glitz: graphics, animation, frame-rate, killer music and sound; and network
and mulit-player play has reduced the role of the computer AI opponent in
games; then I personally do not hold much hope that it will happen soon.

Now, if any of you folks who want this feature in a computer game would
be willing to put up the $500,000 (or more) for development of a new 
commercial quality computer game with this feature, then I know myself, 
Steve, Andrew, or any number of other computer game AI developers would 
LOVE to be able to put our ideas (some already tested) to work, and provide 
public access to the game's AI via a programmable interface (a .dll actually).

Regards,

Eric




From: "Keith M. Lucas" &lt;sillywiz#excession,demon.co.uk&gt;
Subject: Re: War Craft II
Date: Wed, 18 Dec 1996 17:35:38 GMT

In article &lt;5963ff$9o3#zeus,ai-lab.fh-furtwangen.de&gt;,
Bradley Richards &lt;bradley#ai-lab,fh-furtwangen.de&gt; wrote:
&gt;In article &lt;58ulgu$ocu#herald,concentric.net&gt;, Swoodcoc#cris,com (Steven Woodcock) wrote:
&gt;&gt;
&gt;&gt;Keith M. Lucas (sillywiz#excession,demon.co.uk) wrote:
&gt;&gt;: Some of us might have such a project on the go, you see, and just need
&gt;&gt;: some encouragement.
&gt;&gt;
&gt;&gt;  You too eh?  So far my managers love the idea, but since they haven't
&gt;&gt;had to commit yet talk is, as we say, cheap.
&gt;
&gt;Encourage, encourage... I have long been looking for such a game, so I could 
&gt;give it to my AI students and say "go thou and practiceth what I preach".
&gt;As yet no luck finding a suitable game.

Better be using Linux then !!

( Seriously, A Windows port will not be too far distant as long as I
can find a compiler which doesn't blow the budget. ( I've got DJGPP
for the DOS version. Just got to get started on it !! ))

Sound driver is currently very broken.. I think I may have found a bug
in the Linux sound system, the file never appears to signal
ready-for-writing in a select(). Very scary.

&gt;BTW, as long as some game designers do read this group, why isn't this done
&gt;as a matter of course? In *any* game that provides computer opponents,
&gt;reasonable software engineering demands that the computer opponents work
&gt;through some sort of reasonably clean interface. Documenting this interface
&gt;and making it available with some sort of add-on toolkit would cost little
&gt;and could bring in a lot of additional interest in the game.

No -- it's clear, very clear from many games, that much of the AI is
not as clean as required. C&amp;C uses an AI that can:

a) Build units from the enemy side.
b) Build units without enough money.
c) Build buildings disobeying the rules applied to the humans.
d) See, and issue orders to, many units in parallel.
e) See unexposed areas of ground.

[ I think it cheats to the extent of if you build aircraft and you
can't see its base, the base gets AA guns added. But I can't prove
that yet. ]

WarCraft also cheats.

The AI code seems very deeply embedded in the game, it accesses data
that it should not in order to win. And clean interfaces are a bit of
an anathema to most of the games world.

&gt;If said interface *doesn't* exist, then someone in the game firm needs to
&gt;go re-take Software Engineering 101...

Most games programmers need to go _TAKE_ Software Engineering 101.

Having worked for a large games company I can tell you that structured
methods, revision control and interface design are simply three
mythical subjects to them. It's a source of pride to most of the games
programmers I've met that they have no education beyond age 16 -- they
think it makes them more "dynamic" because they aren't "locked into a
mindset".

Oh yeah -- their code is shit and unmaintainable. All the stunts --
routine does two TOTALLY seperate tasks and a boolean input
picks. Endless loops with no error reports. None of them know what a
manual looks like and tend to program by cargo cult -- they take the
bits of code that worked in the last project and re-use them. Whether
they're needed or not...



Hey, maybe I should post the draft of the embedded language !! Then you
can all critique it. :-( !!




From: ccamuys#student,uq.edu.au (Andrae Muys)
Subject: Re: War Craft II
Date: 19 Dec 1996 00:37:25 GMT

To save on typing I am using the contraction ExAI to replace the multitude
of occurances of Extensiable AI. (don't you just hate it when they use X
as a contraction of Ex :)

Steven Woodcock (Swoodcoc#cris,com) wrote:
: Andrae Muys (ccamuys#dingo,cc.uq.oz.au) wrote:
: : Steven Woodcock (Swoodcoc#cris,com) wrote:



: : 
: : This fails to consider the 'entire' demand.  Naturally direct demand for
: : the capacity to write your own AI is small, if it wasn't few of us would
: : have a job :).  However you fail to consider a very signifigant
: : indirect demand, which if marketed well should form a large market.
: : (snip)
: : If I could write my own AI routines/download and install
: : them off the net I would have already bought Red Alert.  

I feel that I should explain here that my 'raving' concerning Red Alert
was provided as much to provide a 'real' case study of a NO SALE caused
directly by the failure of AI to meet my needs. (AI is the ONLY reason we
haven't/won't bought(buy) this game).

:    I agree again, of course, but that's not necessarily the market you
: might think it is.  In order to market a game with a capability you
: can "plug into", you need to find a sufficient number of people who
: a.) buy your game, b.) can program, and c.) have the time and inclination
: to write their own AI.

My gut feeling (and this is only intuition :) is that in the case of AI,
'sufficient' is no more then half a dozen or so.  All other extensions to
games marketed so far (graphics/senarios) don't change the game play.  So
once you had mastered the game itself all these extensions provided were
pretty pictures and insanely difficult(biased) options.  In the case of
ExAI you are talking about improving the challange of the game across all
senarios.  


: 
: : Remember .WADs,
: : you don't have to be able to design a WAD to use it.  A replacable AI is a
: : marketable feature, don't market it as a 'programmable AI', sell it as a
: : 'user upgradable AI'.  
: 
:   The comparison with WAD files came up in the previous discussion, and
: it's not one I think is very good.  A WAD file is just a database file,
: really...that's not that hard (relatively speaking) to put together
: when compared to programming a DLL.  The success of WAD files is what
: makes this idea even remotely possible, but beyond that I think
: (my opinion) there's a world of difference in terms of scale.
: 

Yes, and No, and No.
Yes it came up last time.
No they aren't a good comparison to ExAI.
But No you didn't read what I actually wrote.  I am fully aware of the
couple of orders of magnitude difference in the complexity of ExAI
compared to .WADs.  I was just making the point that you don't have to be
able to program to be able to take full advantage of ExAI, and that this
is something that you sell to everyone not just us AI weenies.


: : So you encapsulate all the information that your AI might need in objects,
: : and provide the AI read-only access to the data.  Allow the AI to interact
: : with the game engine thru some form of message passing/member
: : functions/etc so if they really want to erase their hard-drives they are
: : going to have to work at it. 
: 
:    Possible, certainly.  That's pretty much the approach I'd take,
: anyway.  (Can you tell I've given this a *LOT* of thought?  ;)
: 

Really OO is the only 'safe' way I can think of doing it currently.  It's
not so much their machine that's the problem, rather retaining a stable
installation of your game.  You can't really afford to have the user
mucking around with the internals of the game without strict access
controls. (ie data access methods).

: : : And don't forget the development time to put this in and test it all
: : : out; it's got to be part of the game's development schedule, and will
: : : only make it longer.  Many developers might think this is worth it, 
: : : but selling it to their managers (whose eyes are always on the budget 
: : : and the schedule) probably won't.
: : It shouldn't take that much longer, not if you are using a clean
: : interface, and designing the code to be extensiable from the start.  It
: : will require more resources however as you will have to prepare the
: : documentation in //'l with the development effort or the documentation
: : will cause a delay (and therefore be skimped, destroying the use of an
: : extensiable AI).  I would be surprised if documentation is in the critical
: : path(provided you have the resources required to prepare it in //'l).
: 
:    This I disagree with.  There's a world of difference between the
: game's design and interface spec, which is what a developer will work
: from, and real honest-to-gosh documentation that a user is going to
: read.  And don't forget the little, assumed thing.  I might "know" to
: only hand the AI a sorted linked list of units, to the point that it's
: second nature.  The user needs documentation that spells that out,
: two or three times, with an example.
:    That's why you find books describing the features and functions of,
: say, Netscape (arguably one of the simplest pieces of software to use
: around).  

But then again I wouldn't expect anyone who needs a netscape book to even
attempt to write their own AI :) (I suspect this might be a strawman
thrown up by some of steves manager's :)
If you reread what I wrote above you will see that I never suggested that
the documentation will be as simple/cheap/etc as game instructions (I
hesitate to call them documentaion).  I am just not convinced that it is
in the critical path, it therefore shouldn't affect the time to market.

: If you do your AI's job right, you may have some 68 functions
: (just to pick a random number from my last design document) that do
: various things.  Those all need good documenting, and that adds
: to Ye Olde Software Schedule.
: 

See above, however of course if you aren't willing to add the necessary
resources to write the documentation, you will find yourself facing
time to market pressures. (and I expect the documentation will be skimped,
the ExAI will fail and so much for a good idea :()

: : Of course you could also run a competition for the best AI's.  With prizes
: : for different catagories.  You would then be in a position to purchase the
: : rights for any particually good code and include it in subsequent
: : versions.
: 
:    One of the very best reasons for doing it:  publicity.  As someone
: once said, "Any publicity is good publicity".  Running contests,
: providing regular upgrades ("Now Available:  The Patton Template!"),
: etc. are great ways to make the idea more saleable and palatable.
: Particularly if the company feels this will be a "hit" game from
: the start.

Sorry that was me being lopsided :).  The right's issue is of course only
a side show (although I would consider it an important one).  The main
game is the publicity you hope to gain for it.

: : Yes I know you like the idea, and would love to be able to provide it/play
: : with it.  I just feel that your arguements are a little lopsided.  
: 
:    They probably are; I felt everybody here already knew the GOOD reasons
: why this ought to be done by SOMEBODY.  ;)  But not everybody here knows
: how those strange critters called Managers view this....

But of course when we discuss this issue hopefully we share arguements in
favour.  Arguements that we might not have thought of otherwise.

: : You
: : don't sell US on this idea, just the general public, and if you ensure
: : that there are a few alternative AI's avaliable before you release the
: : game I think the marketing guru's should be able to sell the general
: : public on the ide
: 
:    Another good point.  I'll add that one to my arsenal.

See :)

: : The only problem I see with this is that if you have a game with
: : extensiable AI, most people will expect it to have extensiable everything
: : else. (Graphics, rules, etc).
: : Not that is that uncommon these day's.
: 
:   Hmmmm....good point.  The ultimate extension of this, of course, is
: a core game engine that anybody can hang anything off of.  THAT could
: be interesting too, though a bit weird to see evolve....
: 

Yes I thought that too when I said it.  But documenting one interface
should be out of the critical path.  Documenting ALL of them just might
put it in there.

Andrae Muys.




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: War Craft II
Date: 19 Dec 1996 01:29:10 GMT

Keith M. Lucas (sillywiz#excession,demon.co.uk) wrote:
: In article &lt;58ulgu$ocu#herald,concentric.net&gt;,
: Steven Woodcock &lt;Swoodcoc#cris,com&gt; wrote:
: &gt;   The interest seemed high, but this is an AI newsgroup full of hackers.  ;)
: &gt;The thread itself centered on the question of how one might design such a
: &gt;game (with an AI interface) and whether or not it would sell enough
: &gt;copies to make it worth the extra effort.  While nearly everybody here
: &gt;thought it would be a great thing to see and fiddle with, there was
: &gt;massive disagreement over whether the "sales benefits" of  having such
: &gt;a feature would outweigh the costs of implementing, documenting, and
: &gt;user-proofing it.
: 
: Ah -- no. 

   Ah...yes.   I think maybe you missed the point (at least what I take
to be the point) of the discussion so far.

: The concept here is to have a system into which user created
: systems can be plugged - think DOOM wads. I guess the compiled modules
: that are shipped with the games produced under the system could be
: "hacked", but there are people who'll do that to non-open
: architectures as well.

   ...which is basically what we're all in agreement with, actually.
What we're trying to figure out are the $$$ reasons that a manager will
understand to let us go and do this thing.  ;)

: 
: As for the cost of implementation, it was desigend in from the start,
: and turns out to be no harder than a closed architecture. 

   Implementation *is* different for such beastie, for the very reasons
that poster Eric Dysband mentioned earlier.  Doing this kind of thing 
means *some* kind of layer between the "game" and the "AI", a layer
which is intrinsically slower than direct access and which must be
documented for a USER to use.  That documentation can't be overlooked...
just look at the C programming language, which has only what? 60 commands?
and yet books can run hundreds and pages and not touch more than a fraction
of the available power.

   If your modular AI is done right (I think my design is, anyway), then
it just might need a book that big to document it.....

: 
: The "AI" is a tad lower level than most people here are probably used
: to -- think an assembly language with some instructions for things like
: "find the nearest entity to me".

   Agreed.  Good analogy.
: 
: Um. _Being_ the manager has some advantages it seems.. I have the
: basic system up &amp; running, units are obeying the language ( only about
: half is implemented yet ) and the world model seems fine - things can
: shoot at other things. There's no large scale navigation routine yet
: and the economic stuff is only starting to be tested yet.

   I'm glad to hear that SOMEBODY is fiddling with this!  I wish
you the best of luck on it.

: The big thing is I want to sell games written with it on a shareware
: type basis, but give away the system so other people can write
: components too. Trouble is no-one really seems to like this idea --
: all the publishers go green in the face with the thought of
: non-proprietry stuff that hasn't got a lock on each and every byte...

  This may be the only way to get this done....I've been toying with
the idea myself.  If successful, THEN publishers might buy into the 
idea.  As you yourself noted, however, they'll take some convincing.
Right now you've got a couple of companies announcing lawsuits over
EDITORS that have been developed for their games....the idea of providing
an interface into the game AI will probably send some of them straight
into a stroke  ;)


Steve




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: War Craft II
Date: 19 Dec 1996 01:43:02 GMT

Andrae Muys (ccamuys#student,uq.edu.au) wrote:
: To save on typing I am using the contraction ExAI to replace the multitude
: of occurances of Extensiable AI. (don't you just hate it when they use X
: as a contraction of Ex :)

   Works for me.  ;)

: In the case of
: ExAI you are talking about improving the challange of the game across all
: senarios.  

   Agreed, and I love the idea.  It's tougher to sell that to a manager,
though.  You can talk about how you can upgrade the AI and sponsor
contests and make continual improvements, and what THEY (often) see
is merely on ongoing drain on resources better put to another game.
The best I've gotten so far from *my* folks is "well, but wouldn't we
just want to save all of that for a sequel?".  That's when I try to
talk to them about the power of using the Net and all those rabid gamers
out there, and how that leverages *my* brainpower, etc., etc., and 
they get that panicked look in their eye that says "I don't  understand
a word he's saying...".

   Though I've been told I can get a bit *passionate* about explaining
this *cool* idea....  ;)

: :   The comparison with WAD files came up in the previous discussion, and
: : it's not one I think is very good.  A WAD file is just a database file,
: : really...that's not that hard (relatively speaking) to put together
: : when compared to programming a DLL.  The success of WAD files is what
: : makes this idea even remotely possible, but beyond that I think
: : (my opinion) there's a world of difference in terms of scale.
: : 
: Yes, and No, and No.
: Yes it came up last time.
: No they aren't a good comparison to ExAI.
: But No you didn't read what I actually wrote.  I am fully aware of the
: couple of orders of magnitude difference in the complexity of ExAI
: compared to .WADs.  I was just making the point that you don't have to be
: able to program to be able to take full advantage of ExAI, and that this
: is something that you sell to everyone not just us AI weenies.

   With luck, it can be an item which SELLS the game even if the average
gamer doesn't plan to use it.  I mean, everybody who bought Warcraft II
has an editor, but very few actually really did more than fire it up
once and take a look.   You're absolutely right about that.

: :    That's why you find books describing the features and functions of,
: : say, Netscape (arguably one of the simplest pieces of software to use
: : around).  
: 
: But then again I wouldn't expect anyone who needs a netscape book to even
: attempt to write their own AI :) (I suspect this might be a strawman
: thrown up by some of steves manager's :)

   Good catch.  ;)

: If you reread what I wrote above you will see that I never suggested that
: the documentation will be as simple/cheap/etc as game instructions (I
: hesitate to call them documentaion).  I am just not convinced that it is
: in the critical path, it therefore shouldn't affect the time to market.
: See above, however of course if you aren't willing to add the necessary
: resources to write the documentation, you will find yourself facing
: time to market pressures. (and I expect the documentation will be skimped,
: the ExAI will fail and so much for a good idea :()

   I agree that most games no longer have documention, just info sheets.  ;)

   My worry is that in order to really USE this functionality it will
require decent documention.  I suppose, however (now that I'm thinking
about it), that since we're already assuming the folks who would do this
are somewhat capable and connected, that you could just post the whole
kit and documentation on the company web page.   Hmmmmmm....that just
might swing some opinions....lemme write that down....

: : 
: :   Hmmmm....good point.  The ultimate extension of this, of course, is
: : a core game engine that anybody can hang anything off of.  THAT could
: : be interesting too, though a bit weird to see evolve....
: : 
: Yes I thought that too when I said it.  But documenting one interface
: should be out of the critical path.  Documenting ALL of them just might
: put it in there.

   Of course, then you start getting towards something more like XConq,
or maybe the VonNeumann Project.

   Good points, Andrew.

Steve




From: "Benton Jackson" &lt;benton#bitstream,net&gt;
Subject: ExAI security issues
Date: 19 Dec 1996 13:42:58 GMT

There's been some talk on this thread about using a .dll to implement
the plug-in ExAI. How do we address the security and/or reliability of
these .dll's? Some hacker could put in a "weapon" type that when a
particular monster shoots you with it, it nukes your hard drive.
Or, it could just be poorly written, and it crashes your game
making you look bad.

-- 
 _   _      ___  _
|_) |_ |\ |  |  / \ |\ |    Benton Jackson, Goat Rider
|_) |_ | \|  |  \_/ | \|   Fenris Wolf Electronic Games
benton#fenriswolf,com    <A  HREF="http://www2.bitstream.net/~benton">http://www2.bitstream.net/~benton</A>   




From: "Carl D. Burke" &lt;cburke#mitre,org&gt;
Subject: Re: ExAI security issues
Date: Thu, 19 Dec 1996 14:25:50 -0500

Benton Jackson wrote:
&gt; 
&gt; There's been some talk on this thread about using a .dll to implement
&gt; the plug-in ExAI. How do we address the security and/or reliability of
&gt; these .dll's? Some hacker could put in a "weapon" type that when a
&gt; particular monster shoots you with it, it nukes your hard drive.
&gt; Or, it could just be poorly written, and it crashes your game
&gt; making you look bad.

Hmmm... I really need to go back and read this thread, but it sounds
like what you need is something like the Java Virtual Machine to
run the AIs.  The security manager in the JVM can prevent things like
access to local files, etc.  The standard security manager class
might not give you what you need, but you may be able to inherit
from it and define a security policy that meets the needs of the game.

-- 
--------------------------------------------------
Carl Burke, cburke#mitre,org -- Morde me, iuvat
My opinions are mine and mine alone, unless you
agree with them.  Then I'll share.
--------------------------------------------------
In the world of nightmares there are three separate
levels... the pits of fire, the mouth of the mud
badger, and telemarketing. -- Jay Martin, "Tommy"
--------------------------------------------------




From: Eric Dybsand &lt;edybs#ix,netcom.com&gt;
Subject: Extensible Game AI (was Warcraft 2 AI)
Date: Thu, 19 Dec 1996 14:35:10 GMT


Since we have renewed the discussion about an Extensible Game AI (ExAI)
and Steve Woodcock has announced that he will be archieving the discussion
for his Game AI web page, perhaps we should overlook the marketability
of such a feature, and ignore the fact that our developers and publishers
and managers fail to see the benefit of this idea, and just for the time
being, focus on what would be the generalized structure, form and the
capabilities of such a game AI feature?

Is anyone interested, in discussing this, without regard to if it could
be actually delivered in a commercial product?


Assuming someone (other than me) is interested, here is a start:


FORM

I would begin with a definition of what form the ExAI takes.

To me, an ExAI is a set of APIs (application program interface) or function
calls, that can be accessed from a sub-module, such as a .dll (data link
library as in Windows).  These functions would allow an outside entity to
cause changes in computer opponent behavior, within the context of the game.

To others, an ExAI may be a set of keyword statements that are ASCII text in
a file, that are input to a computer game, which in turn provide outside
entity control over the game's computer opponent.

Other ideas?  Comments?

Regards,

Eric


Eric Dybsand
Glacier Edge Technology
Glendale, Colorado, USA




From: Eric Dybsand &lt;edybs#ix,netcom.com&gt;
Subject: Re: ExAI security issues
Date: Thu, 19 Dec 1996 16:16:55 GMT

In article &lt;01bbedb1$91e32f40$6fed90ce@blueheron&gt;,
        "Benton Jackson" &lt;benton#bitstream,net&gt; wrote:

&gt;There's been some talk on this thread about using a .dll to implement
&gt;the plug-in ExAI. How do we address the security and/or reliability of
&gt;these .dll's? Some hacker could put in a "weapon" type that when a
&gt;particular monster shoots you with it, it nukes your hard drive.
&gt;Or, it could just be poorly written, and it crashes your game
&gt;making you look bad.
&gt;

Gee Benton, you make the same valid point that my developer and
publisher made when I brought the ExAI idea up to them.

FWIW, we felt it would take an extra layer of code, to provide the
security to prevent _most_ or _some_ of the above mentioned BAD things
from happening.  Of course, if some outsider AI developer linking in
through your publically provided .dll access does crash the game that
a paying customer is playing, then guess who gets the BLAME? 

Regards,

Eric




From: Mike White &lt;mykey#geocities,com&gt;
Subject: Re: Extensible Game AI (was Warcraft 2 AI)
Date: Fri, 20 Dec 1996 00:11:23 -0800

Andrae Muys wrote:
[Snip]
&gt; Well so far we have .DLL, IPC, and scripting.  I would be interested to
&gt; hear if anyone else has thought of any other methods of implementing ExAI.
&gt; 

My $0.02,

.DLL: Dangerous....(Mentioned previously)
 IPC: No Comment (I skimmed over that)
 Script: Slow...

An Idea..

What about a language like Java, your EXE interprets the "machine code"
and doesn't allow access to anything outside of the game.  It adds another
layer that probably make it unacceptable, but something along these lines.

I personally like the DLL.... Risks and all...

Mike




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: ExAI security issues
Date: 20 Dec 1996 01:12:33 GMT

Benton Jackson (benton#bitstream,net) wrote:
: There's been some talk on this thread about using a .dll to implement
: the plug-in ExAI. How do we address the security and/or reliability of
: these .dll's? Some hacker could put in a "weapon" type that when a
: particular monster shoots you with it, it nukes your hard drive.
: Or, it could just be poorly written, and it crashes your game
: making you look bad.

Benton: 


   Excellent point.  You're really trusting that the anonymous
hacker developer out there who built the new "Ghandi AI" is a nice guy
and not somebody who's out to nuke your system.  The problem with a
DLL link-in is similar to the one the Netscape folks are now discovering
with Java applets...you don't KNOW what the thing is doing.

   One *possible* solution to this is to only allow "certified" AIs
to run with the game in question.  Problem is, that means that the programmer
has to send the AI module to the company who built the game, and they
have to look at it and give it some kind of certification.  Not only is
that cumbersome, slow, and costly (to the original developer), but it
reveals all of the hacker's secrets AND makes the certifier liable if
in fact they missed something.

   It would also kill the whole idea of a group of users freely exchanging
AI modules.

   On the third hand (this is getting fun), is it really a much different
situation than what you have with shareware and freeware now?  I mean, you
see some nifty utility online and download it without much more than a 
virus check; I'd wager the risk here is about the same.  If a "bad AI"
does crop it, word can be spread quickly through newsgroups and web
pages.

   Anyway, I don't really have a solution for that, but it IS certainly
worthy of discussion....  ;)


Steve




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: Extensible Game AI (was Warcraft 2 AI)
Date: 20 Dec 1996 01:21:55 GMT

Eric Dybsand (edybs#ix,netcom.com) wrote:
: 
: (perhaps we should) just for the time
: being, focus on what would be the generalized structure, form and the
: capabilities of such a game AI feature?
: 
: Is anyone interested, in discussing this, without regard to if it could
: be actually delivered in a commercial product?

   Sounds good to me.  :)

: FORM
: 
: I would begin with a definition of what form the ExAI takes.
: 
: To me, an ExAI is a set of APIs (application program interface) or function
: calls, that can be accessed from a sub-module, such as a .dll (data link
: library as in Windows).  These functions would allow an outside entity to
: cause changes in computer opponent behavior, within the context of the game.

   This is a good definition.  A DLL is the most natural way (I feel) to
do this on a Windows platform, though I wouldn't necessarily want to leave
out the folks trying their hand with the new Playstation Yarouze systems
(a homebrew developer's kit for building PSX games).

   Any such API (let me take a look at my design document) needs to have
functions which broadly provide the following:

      -- status (position, strength, condition) of all units, probably
         broken out by "team" or "side" or whatever as desired;
      -- a pathing function of some kind so the homebrew AI can
         determine how to get from A to B;
      -- a terrain type report for each hex/location/whatever;
      -- some functions that define the SCALES used in the game
         for damage, movement, etc.  (what good does it do to know
         that Unit A has 10 hit points when you don't know if the
         upper limit is 11 or 1100?);
      -- functions for issuing orders to the units within the game
         (move, attack, build, collect resources, etc.).

   At a very high level these break out into what one could call
Status functions and Control functions.

: 
: To others, an ExAI may be a set of keyword statements that are ASCII text in
: a file, that are input to a computer game, which in turn provide outside
: entity control over the game's computer opponent.

   Hmmm...hadn't considered the scripted approach, but that may make
more sense for an adventure game.  Good point.


Steve




From: Eric Dybsand &lt;edybs#ix,netcom.com&gt;
Subject: Re: Extensible Game AI (was Warcraft 2 AI)
Date: Fri, 20 Dec 1996 04:14:38 GMT

In article &lt;59cpnj$ag7#herald,concentric.net&gt;,
        Swoodcoc#cris,com (Steven Woodcock) wrote:

&gt;
&gt;Eric Dybsand (edybs#ix,netcom.com) wrote:
&gt;: 
&gt;: To me, an ExAI is a set of APIs (application program interface) or function
&gt;: calls, that can be accessed from a sub-module, such as a .dll (data link
&gt;: library as in Windows).  These functions would allow an outside entity to
&gt;: cause changes in computer opponent behavior, within the context of the game.
&gt;
&gt;   This is a good definition.  A DLL is the most natural way (I feel) to
&gt;do this on a Windows platform, though I wouldn't necessarily want to leave
&gt;out the folks trying their hand with the new Playstation Yarouze systems
&gt;(a homebrew developer's kit for building PSX games).
&gt;
&gt;   Any such API (let me take a look at my design document) needs to have
&gt;functions which broadly provide the following:
&gt;
&gt;      -- status (position, strength, condition) of all units, probably
&gt;         broken out by "team" or "side" or whatever as desired;
&gt;      -- a pathing function of some kind so the homebrew AI can
&gt;         determine how to get from A to B;
&gt;      -- a terrain type report for each hex/location/whatever;
&gt;      -- some functions that define the SCALES used in the game
&gt;         for damage, movement, etc.  (what good does it do to know
&gt;         that Unit A has 10 hit points when you don't know if the
&gt;         upper limit is 11 or 1100?);
&gt;      -- functions for issuing orders to the units within the game
&gt;         (move, attack, build, collect resources, etc.).
&gt;

Great list!

Perhaps a "communication with other players facility" might be handy too?

Eric




From: ccamuys#student,uq.edu.au (Andrae Muys)
Subject: Re: Extensible Game AI (was Warcraft 2 AI)
Date: 20 Dec 1996 05:01:31 GMT

Steven Woodcock (Swoodcoc#cris,com) wrote:
: 
: Eric Dybsand (edybs#ix,netcom.com) wrote:
: : 
: : FORM
: : 
: : I would begin with a definition of what form the ExAI takes.
: : 
: : To me, an ExAI is a set of APIs (application program interface) or function
: : calls, that can be accessed from a sub-module, such as a .dll (data link
: : library as in Windows).  These functions would allow an outside entity to
: : cause changes in computer opponent behavior, within the context of the game.
: 

There is another method that I haven't seen discussed yet.  Coming from a
UNIX background myself, for me a natural interface would be some form of
IPC.  The AI would run as a seperate process, and ExAI would be
implemented as a combination of IPC's.  A combination of sockets (for
networked support), pipes, fifos, messages, and shared memory spaces would
probably work well.  Then the new AI is simply compiled as an executable,
linked to a library(supplied) that handles all the IPC stuff, and ExAI
becomes as simple as passing the name of the AI executable to the Game as
a command line parameter(you could easily wrap a GUI config around this).  

                    fork()
                    //if child then
                    exec ()//checked command line executable.
                    // else if parent then
                    run_game().

Of course this automatically solves the problem of rogue AI's trashing
your program (although they can still trash the host system).

:    This is a good definition.  A DLL is the most natural way (I feel) to
: do this on a Windows platform, though I wouldn't necessarily want to leave
: out the folks trying their hand with the new Playstation Yarouze systems
: (a homebrew developer's kit for building PSX games).
: 
:    Any such API (let me take a look at my design document) needs to have
: functions which broadly provide the following:
: 
:       -- status (position, strength, condition) of all units, probably
:          broken out by "team" or "side" or whatever as desired;

Yes, probably indexed by unit id.  As well as the ability to get a list of
unit id's.

                       struct {
                           int id;
                           int team;
                       } unit_id;
        
:       -- a pathing function of some kind so the homebrew AI can
:          determine how to get from A to B;

You might also want to provide a hook so that the user can add their own
pathing function.

:       -- a terrain type report for each hex/location/whatever;

Yes, in fact if this is done well then you have provided a hook for the
user to add their own pathing function.

:       -- some functions that define the SCALES used in the game
:          for damage, movement, etc.  (what good does it do to know
:          that Unit A has 10 hit points when you don't know if the
:          upper limit is 11 or 1100?);

Or this could be provided in the form of const's and #defines in a header
file.

:       -- functions for issuing orders to the units within the game
:          (move, attack, build, collect resources, etc.).

And of course here is where the performance penalty comes in.  To prevent
bad code from destablising the AI, it will be necessary to check the
parameters in the functions.

:    At a very high level these break out into what one could call 
:    Status functions and Control functions.

I personally see three catagories; Status, Control, and Information.  The
information being more static then status.

: : To others, an ExAI may be a set of keyword statements that are ASCII text in
: : a file, that are input to a computer game, which in turn provide outside
: : entity control over the game's computer opponent.
: 
:    Hmmm...hadn't considered the scripted approach, but that may make
: more sense for an adventure game.  Good point.
: 

Well so far we have .DLL, IPC, and scripting.  I would be interested to
hear if anyone else has thought of any other methods of implementing ExAI.

Andrae Muys.




From: "Keith M. Lucas" &lt;sillywiz#excession,demon.co.uk&gt;
Subject: Re: War Craft II
Date: Fri, 20 Dec 1996 10:45:57 GMT

In article &lt;59a5p6$6av#herald,concentric.net&gt;,

Steven Woodcock &lt;Swoodcoc#cris,com&gt; wrote:
&gt;
&gt;Keith M. Lucas (sillywiz#excession,demon.co.uk) wrote:
&gt;: In article &lt;58ulgu$ocu#herald,concentric.net&gt;,
&gt;
&gt;: The concept here is to have a system into which user created
&gt;: systems can be plugged - think DOOM wads. I guess the compiled modules
&gt;: that are shipped with the games produced under the system could be
&gt;: "hacked", but there are people who'll do that to non-open
&gt;: architectures as well.
&gt;
&gt;   ...which is basically what we're all in agreement with, actually.
&gt;
&gt;What we're trying to figure out are the $$$ reasons that a manager will
&gt;understand to let us go and do this thing.  ;)

Well personally I'm doing it as a component of the research into a far
distant future project (currently scheduled for release in 2002-3ish :)
which you can't know about..

&gt;: 
&gt;: As for the cost of implementation, it was desigend in from the start,
&gt;: and turns out to be no harder than a closed architecture. 
&gt;
&gt;   Implementation *is* different for such beastie, for the very reasons
&gt;that poster Eric Dysband mentioned earlier.  Doing this kind of thing 
&gt;means *some* kind of layer between the "game" and the "AI", a layer
&gt;which is intrinsically slower than direct access and which must be
&gt;documented for a USER to use.  That documentation can't be overlooked...
&gt;just look at the C programming language, which has only what? 60 commands?
&gt;and yet books can run hundreds and pages and not touch more than a fraction
&gt;of the available power.
&gt;
&gt;   If your modular AI is done right (I think my design is, anyway), then
&gt;it just might need a book that big to document it.....

It might well. Third party author anyone ?

&gt;: 
&gt;: The "AI" is a tad lower level than most people here are probably used
&gt;: to -- think an assembly language with some instructions for things like
&gt;: "find the nearest entity to me".
&gt;
&gt;   Agreed.  Good analogy.

I'm actually using it because a) I can get it to run fast. b) I know
the approach works -- the last time I released a similar game the
target audience went nuts over it...

&gt;: 
&gt;: Um. _Being_ the manager has some advantages it seems.. I have the
&gt;: basic system up &amp; running, units are obeying the language ( only about
&gt;: half is implemented yet ) and the world model seems fine - things can
&gt;: shoot at other things. There's no large scale navigation routine yet
&gt;: and the economic stuff is only starting to be tested yet.
&gt;
&gt;   I'm glad to hear that SOMEBODY is fiddling with this!  I wish
&gt;you the best of luck on it.
&gt;
&gt;: The big thing is I want to sell games written with it on a shareware
&gt;: type basis, but give away the system so other people can write
&gt;: components too. Trouble is no-one really seems to like this idea --
&gt;: all the publishers go green in the face with the thought of
&gt;: non-proprietry stuff that hasn't got a lock on each and every byte...
&gt;
&gt;  This may be the only way to get this done....I've been toying with
&gt;the idea myself.  If successful, THEN publishers might buy into the 
&gt;idea.  As you yourself noted, however, they'll take some convincing.
&gt;Right now you've got a couple of companies announcing lawsuits over
&gt;EDITORS that have been developed for their games....the idea of providing
&gt;an interface into the game AI will probably send some of them straight
&gt;into a stroke  ;)

Hell, I'll self publish if necessary.




From: "Keith M. Lucas" &lt;sillywiz#excession,demon.co.uk&gt;
Subject: Re: ExAI security issues
Date: Fri, 20 Dec 1996 10:54:48 GMT

In article &lt;32B996BE.446B#mitre,org&gt;, Carl D. Burke &lt;cburke#mitre,org&gt; wrote:
&gt;Benton Jackson wrote:
&gt;&gt; 
&gt;&gt; There's been some talk on this thread about using a .dll to implement
&gt;&gt; the plug-in ExAI. How do we address the security and/or reliability of
&gt;&gt; these .dll's? Some hacker could put in a "weapon" type that when a
&gt;&gt; particular monster shoots you with it, it nukes your hard drive.
&gt;&gt; Or, it could just be poorly written, and it crashes your game
&gt;&gt; making you look bad.
&gt;
&gt;Hmmm... I really need to go back and read this thread, but it sounds
&gt;like what you need is something like the Java Virtual Machine to
&gt;run the AIs.  The security manager in the JVM can prevent things like
&gt;access to local files, etc.  The standard security manager class
&gt;might not give you what you need, but you may be able to inherit
&gt;from it and define a security policy that meets the needs of the game.

   My AI system runs under a limited VM. Mainly because I have the
screaming heebie-jeebies about linking "real" code into anything
running on my system without giving it a once over.( The hard drives
Linux talks too aren't even in the BIOS table, just so DOS programs
can't nuke them !! ) It is very oriented to the game -- don't expect
to be able to find prime numbers with it when it appears !!  ( or most
of the other useful things you can do with an AI. Now shooting at
other AI things..)




From: "Benton Jackson" &lt;benton#bitstream,net&gt;
Subject: Re: ExAI security issues
Date: 20 Dec 1996 14:13:03 GMT

It's hard to limit the damage an ExAI can do without also limiting
its power in some way. For example, suppose you wanted to build an
AI that needed some data files, it would certainly need to read those.
If it is a learning AI, then it is going to need to write files also!
Plenty of damage can be done with reading and writing files.

-- 
 _   _      ___  _
|_) |_ |\ |  |  / \ |\ |    Benton Jackson, Goat Rider
|_) |_ | \|  |  \_/ | \|   Fenris Wolf Electronic Games
benton#fenriswolf,com    <A  HREF="http://www2.bitstream.net/~benton">http://www2.bitstream.net/~benton</A>   




From: "Benton Jackson" &lt;benton#bitstream,net&gt;
Subject: Re: ExAI security issues
Date: 20 Dec 1996 14:20:03 GMT

Steven Woodcock &lt;Swoodcoc#cris,com&gt;:
&gt;    Excellent point.  You're really trusting that the anonymous
&gt; hacker developer out there who built the new "Ghandi AI" is a nice guy
&gt; and not somebody who's out to nuke your system. 

"Ghandi AI"- I love it!  "We are just a peaceful AI,
you can trust us." 

&gt;    One *possible* solution to this is to only allow "certified" AIs
&gt; to run with the game in question.  Problem is, that means that the
&gt; programmer
&gt; has to send the AI module to the company who built the game, and they
&gt; have to look at it and give it some kind of certification.  Not only is
&gt; that cumbersome, slow, and costly (to the original developer), but it
&gt; reveals all of the hacker's secrets AND makes the certifier liable if
&gt; in fact they missed something.

Yes, of course this would suck.

&gt;    On the third hand (this is getting fun), is it really a much different
&gt; situation than what you have with shareware and freeware now?  I mean,
&gt; you
&gt; see some nifty utility online and download it without much more than a 
&gt; virus check; I'd wager the risk here is about the same.  If a "bad AI"
&gt; does crop it, word can be spread quickly through newsgroups and web
&gt; pages.

This is probably the best we are going to do.

But wait- How about a combination of the two? Allow free AI modules
to circulate, but the developer also keeps an eye on them and collects
the best, looks over them, and approves the safe ones on their own
web site. Those who don't like the idea of using bath house software
can be assured of safety.

- Ben




From: droleary#alpha,temporal.org (Doc O'Leary)
Subject: Re: Extensible Game AI (was Warcraft 2 AI)
Date: 20 Dec 1996 14:30:23 GMT

On Thu, 19 Dec 1996 14:35:10 GMT, Eric Dybsand &lt;edybs#ix,netcom.com&gt; wrote:

&gt;Is anyone interested, in discussing this, without regard to if it could
&gt;be actually delivered in a commercial product?

I will argue for the same thing I did the last time this discussion went
around.  I don't want an AI-specific API, but rather to have the Player
API published.  That way the user could not only be allowed to create
an AI to play the game, but they could create their own player view,
including a module that allows networked players.   This can all be done
without changing the game engine (model) at all.

Problems exists for games have no clean separation between the model and
the view (unlikely) or where the AI does not take the form of another
player (somewhat more common).

As to the exact implementation, I favor dll's as well.  The API could be
made up of functions or perhaps a Player class.  I am less inclined to
use a "scripting" approach, as that could be a module of it's own.

         ---------   Doc

-- 
Copyright 1996 by Doc O'Leary.
Author of the wildly unsuccessful "DOS and Windows for People Who
Still Have a Clue"




From: "Benton Jackson" &lt;benton#bitstream,net&gt;
Subject: Re: Extensible Game AI (was Warcraft 2 AI)
Date: 20 Dec 1996 14:38:32 GMT

Eric Dybsand &lt;edybs#ix,netcom.com&gt; wrote in article
&lt;59d3ot$ctc#sjx-ixn5,ix.netcom.com&gt;...
&gt; In article &lt;59cpnj$ag7#herald,concentric.net&gt;,
&gt;       Swoodcoc#cris,com (Steven Woodcock) wrote:
&gt; 
&gt; &gt;
&gt; &gt;Eric Dybsand (edybs#ix,netcom.com) wrote:
&gt; &gt;: 
&gt; &gt;: To me, an ExAI is a set of APIs (application program interface) 
&gt; &gt;: or function calls, that can be accessed from a sub-module, such as a .dll 
&gt; &gt;: (data link &gt; &gt;: library as in Windows).  These functions would allow an 
&gt; &gt;: outside entity to cause changes in computer opponent behavior, within 
&gt; &gt;: the context of the game.
&gt; &gt;
&gt; &gt;   This is a good definition.  A DLL is the most natural way (I feel) to
&gt; &gt;do this on a Windows platform, though I wouldn't necessarily want to leave
&gt; &gt;out the folks trying their hand with the new Playstation Yarouze systems
&gt; &gt;(a homebrew developer's kit for building PSX games).
&gt; &gt;
&gt; &gt;   Any such API (let me take a look at my design document) needs to have
&gt; &gt;functions which broadly provide the following:
&gt; &gt;
&gt; &gt;      -- status (position, strength, condition) of all units, probably
&gt; &gt;         broken out by "team" or "side" or whatever as desired;
&gt; &gt;      -- a pathing function of some kind so the homebrew AI can
&gt; &gt;         determine how to get from A to B;
&gt; &gt;      -- a terrain type report for each hex/location/whatever;
&gt; &gt;      -- some functions that define the SCALES used in the game
&gt; &gt;         for damage, movement, etc.  (what good does it do to know
&gt; &gt;         that Unit A has 10 hit points when you don't know if the
&gt; &gt;         upper limit is 11 or 1100?);
&gt; &gt;      -- functions for issuing orders to the units within the game
&gt; &gt;         (move, attack, build, collect resources, etc.).

&gt; Perhaps a "communication with other players facility" might be handy too?

This talks about the facilities available to the .dll. You also have
to have a standard set of entry points for the .dll, so
that the game knows when to use it. Perhaps a set of notification
events that the .dll can hook out? Such as:

    - create
    - deletion (or maybe begin death scene?)
    - graphics frame tick
    - simulation frame tick
    - see new enemy/ally/object
    - getting hit
    - end of path reached
    - receive command message from another entity

On another vein, has anybody thought of using a Java interpreter for this?
I don't know Java, but would it be an appropriate language for programming
an AI? How portable would a Java core be? Could we include it in a game
at a reasonable price? Have a game with Java scripting would certainly
be "buzzword compliant"! I like the idea of .dll's better, since you can
use any convenient language, but let's explore all options.

benton#fenriswolf,com    <A  HREF="http://www2.bitstream.net/~benton">http://www2.bitstream.net/~benton</A>   




From: Eric Dybsand &lt;edybs#ix,netcom.com&gt;
Subject: Re: Extensible Game AI (was Warcraft 2 AI)
Date: Fri, 20 Dec 1996 15:14:10 GMT

In article &lt;59d6jb$usp$1#nargun,cc.uq.oz.au&gt;,
        ccamuys#student,uq.edu.au (Andrae Muys) wrote:

&gt;There is another method that I haven't seen discussed yet.  Coming from a
&gt;UNIX background myself, for me a natural interface would be some form of
&gt;IPC.  The AI would run as a seperate process, and ExAI would be
&gt;implemented as a combination of IPC's.  A combination of sockets (for
&gt;networked support), pipes, fifos, messages, and shared memory spaces would
&gt;probably work well.  Then the new AI is simply compiled as an executable,
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
&gt;linked to a library(supplied) that handles all the IPC stuff, and ExAI
&gt;becomes as simple as passing the name of the AI executable to the Game as
&gt;a command line parameter(you could easily wrap a GUI config around this).  
&gt;

Hi Andrae,

Since its been awhile (over 10 years) since I've done any UNIX coding,
I'm a little rusty on inter-program communication (IPC) issues.  Are
you suggesting that the ExAI (developed by an outsider) is compiled 
and linked into the actual game?

If this is the case, then I'm at a loss as to how the customers playing
the game, and using a new "Evil Elmo" ExAI they just downloaded from
the net, would be able to compile and link the ExAI into the game.

Can you please elaborate?

&gt;       
&gt;:       -- a pathing function of some kind so the homebrew AI can
&gt;:          determine how to get from A to B;
&gt;
&gt;You might also want to provide a hook so that the user can add their own
&gt;pathing function.
&gt;
&gt;:       -- a terrain type report for each hex/location/whatever;
&gt;
&gt;Yes, in fact if this is done well then you have provided a hook for the
&gt;user to add their own pathing function.
&gt;

Good idea to provide a hook for an ExAI based pathing function.

Eric 




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: ExAI security issues
Date: 20 Dec 1996 16:46:04 GMT

Benton Jackson (benton#bitstream,net) wrote:
: Steven Woodcock &lt;Swoodcoc#cris,com&gt;:
: &gt;    Excellent point.  You're really trusting that the anonymous
: &gt; hacker developer out there who built the new "Ghandi AI" is a nice guy
: &gt; and not somebody who's out to nuke your system. 
: 
: "Ghandi AI"- I love it!  "We are just a peaceful AI,
: you can trust us." 

   Heh.  Yeah, the more I thought about that one the more I liked it.  I
can see it now....a "passive resistance" AI that turns off your mouse cursor
so you can't hurt him.....  ;)

: But wait- How about a combination of the two? Allow free AI modules
: to circulate, but the developer also keeps an eye on them and collects
: the best, looks over them, and approves the safe ones on their own
: web site. Those who don't like the idea of using bath house software
: can be assured of safety.

   I like that.  Put a big disclaimer up on the developer's web page and
in the AI DLL interface that says, "You're using a non-certified AI; it's
not our fault if your system gets erased" and leave it at that.


Steve




From: Swoodcoc#cris,com (Steven Woodcock)
Subject: Re: Extensible Game AI (was Warcraft 2 AI)
Date: 20 Dec 1996 16:49:43 GMT

Benton Jackson (benton#bitstream,net) wrote:
: 
: On another vein, has anybody thought of using a Java interpreter for this?
: I don't know Java, but would it be an appropriate language for programming
: an AI? How portable would a Java core be? Could we include it in a game
: at a reasonable price? Have a game with Java scripting would certainly
: be "buzzword compliant"! I like the idea of .dll's better, since you can
: use any convenient language, but let's explore all options.

   Benton has a good point here.  Java might be a good way to go with this
thing.  I don't know Java myself (need to find the time to learn), but it
is a heck of a buzzword, is theoretically cross-platform portable, and has
a number of available development tools lying around.

   I've seen some flocking demos and NNs done in Java, so it's certainly up
to the task per se.  I'm not sure about execution speed though.


Steve




From: Eric Dybsand &lt;edybs#ix,netcom.com&gt;
Subject: Re: ExAI security issues
Date: Fri, 20 Dec 1996 17:33:33 GMT

In article &lt;01bbee7e$eba6fca0$75ed90ce@blueheron&gt;,
        "Benton Jackson" &lt;benton#bitstream,net&gt; wrote:

&gt;It's hard to limit the damage an ExAI can do without also limiting
&gt;its power in some way. For example, suppose you wanted to build an
&gt;AI that needed some data files, it would certainly need to read those.
&gt;If it is a learning AI, then it is going to need to write files also!
&gt;Plenty of damage can be done with reading and writing files.
&gt;

How about requiring all I/O for the ExAI to go through the API
provided by the game?  I'm not sure how one could do this, as from
a .dll I think one could open and write to any file without the
game code knowing it happened.

Eric




From: gminer#Newbridge,COM (Glen Miner)
Subject: Re: ExAI security issues
Date: 20 Dec 1996 18:08:48 GMT

&gt;: There's been some talk on this thread about using a .dll to implement
&gt;: the plug-in ExAI. How do we address the security and/or reliability of
&gt;: these .dll's? 

&gt;   Excellent point.  You're really trusting that the anonymous
&gt;hacker developer out there who built the new "Ghandi AI" is a nice guy
&gt;and not somebody who's out to nuke your system.

I am currently designing a byte-code and virtual machine package that
would solve many of the problems presented by DLLs. Since it would be
inherintly less effecient, I'm making every effort to design it with
optimization in mind. Since all environment interaction would be done
through virtual machine system calls, it would be 100% safe. The worst 
thing an AI Agent could do would be get caught in an endless loop.

I would _really_ be interested in any comments or suggestions (via the
group). I'm being meticulas in my planning to avoid any kludgy fixes later
on (I've had enough experience with intel asm to know what can happen when
you don't think far enough ahead ). 

Peace
-- 
===[ Gabo / [ABC] : gaminer#undergrad,math.uwaterloo.ca ]===================
Latest ABC Shogi: <A  HREF="http://www.undergrad.math.uwaterloo.ca/~gaminer/shogi.html">http://www.undergrad.math.uwaterloo.ca/~gaminer/shogi.html</A>
"What Greenpeace spends in a year General Motors spends in four hours" -Moby




From: Scott R Lenser 
Subject: Re: Extensible Game AI (was Warcraft 2 AI)
Date: Fri, 20 Dec 1996 20:10:55 -0600 (CST)

In comp.ai.games you write:

&gt;Benton Jackson (benton#bitstream,net) wrote:
&gt;: 
&gt;: On another vein, has anybody thought of using a Java interpreter for this?
&gt;: I don't know Java, but would it be an appropriate language for programming
&gt;: an AI? How portable would a Java core be? Could we include it in a game
&gt;: at a reasonable price? Have a game with Java scripting would certainly
&gt;: be "buzzword compliant"! I like the idea of .dll's better, since you can
&gt;: use any convenient language, but let's explore all options.

&gt;   Benton has a good point here.  Java might be a good way to go with this
&gt;thing.  I don't know Java myself (need to find the time to learn), but it
&gt;is a heck of a buzzword, is theoretically cross-platform portable, and has
&gt;a number of available development tools lying around.

&gt;   I've seen some flocking demos and NNs done in Java, so it's certainly up
&gt;to the task per se.  I'm not sure about execution speed though.


&gt;Steve

I'm not sure about the interfacing issue, although I think it can be done.  Java
is a nice language and does support both the cross-platform portability and
security.  I wouldn't exactly characterize Java as having a lot of good 
development tools yet, but it is getting there.  Parts of the Java language are
still a little buggy or unfinished, but this mostly has to do with the
GUI which would not be needed for this application.

There are too basic types of Java programs, applets and apllications.  As far
as I know applets can only be run through a web browser or Sun's applet viewer.
Running Java applications removes the security restrictions and requires that
a Java virutal machine be installed on the machine.

The Java language is certainly expressively powerful enough and a lot of nice
utility classes are beginning to appear.  As for speed, Java currently runs
about 10 times slower than native code.  This is _supposed_ to change in the
near future as just in t

Showing the first 100 KB of 163.3 KB. Download the archive for the full file.

Site Stats

Snippets: 1791
Codebases: 571