Hello.

I did a proof-of-concept for Python scripts, exporting the (location,
unit) structure to a script that just enumerates units name & position.
If people are interested I'll attach the files to a GNA patch item or
send them here.

Now it's a matter of doing all the export work, should take a few days :)

Here are some questions around that interface:

* how will the script be determined? Add the script filename to map
specifications? Put the script directly in the WML data files? Have only
one file for all-purpose Python AI?

I would say a map specifies a script, and potentially give a specific
script to a specific unit (may require some tweaks in server code,
maybe?), whether we put script in separate files or not.

* IMHO, Python initialization should be delayed till it's actually used
(when starting the map or at first use). This would let players use maps
with "regular AI" without making it mandatory to install Python.

* related to previous question, should Python be mandatory? Or should
the server degrade nicely when Python isn't installed, just replacing
"ai_python" with "ai"?


Nicolas

Reply via email to