30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
From: news at helen.demon.nl (Ilja Heitlager)
|
|
Date: Thu, 29 Apr 1999 10:27:34 +0200
|
|
Subject: Using Python for Modular Artificial Intelligence code
|
|
References: <newscache$bu0saf$a8n$1@news.tne.net.au>
|
|
Message-ID: <7g94lp$mdu$1@news.worldonline.nl>
|
|
X-UID: 206
|
|
|
|
>I've started looking into Python as the AI scripting language for this
|
|
>purpose, but I'm having trouble seeing exactly how I could do this. I want
|
|
>a message passing architecture - so one object in the game world sends a
|
|
>message to another for interpretation (along with a Python tuple for the
|
|
>parameters of the message perhaps). This requires a two way interface
|
|
>between my C++ code and the Python script loaded for the particular game
|
|
>object.
|
|
Wouldn't you be better of using a network or distributed architecture. Use
|
|
Corba or TCP/IP protocol to let your objects interact. Saves you the trouble
|
|
of language-interoperatablility and provides possibilities for multi-user
|
|
(You're doing a LARGE game project, not?)
|
|
|
|
Where do you use C++ for anyway? GUI's? Build them in Python, forget C++
|
|
until you are done and than use C++ to speed up critical sections
|
|
|
|
Ilja
|
|
|
|
|
|
|
|
|
|
|
|
|