Testers for the AI Python Interface needed!

Testers for the AI Python Interface needed!

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Testers for the AI Python Interface needed!

Post by abma »

TheGeorge and me wrote a Python Skirmish AI-Interface.
Currently it seems to work well, but there are a few issues and we need more testing.

Some short Instructions for compiling are here:
http://springrts.com/wiki/AIInterface:Python

For more Info please look here:
http://springrts.com/wiki/AI:Development:Lang:Python

We are happy about any kind of feedback!

If you need help, i'm often in the #ai channel.
Last edited by abma on 04 Jun 2010, 09:50, edited 6 times in total.
User avatar
Nemo
Spring 1944 Developer
Posts: 1376
Joined: 30 Jan 2005, 19:44

Re: Testers for the AI Python Interface needed!

Post by Nemo »

This is really neat, nice work guys!
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Testers for the AI Python Interface needed!

Post by aegis »

<3
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Testers for the AI Python Interface needed!

Post by Forboding Angel »

Nemo wrote:This is really neat, nice work guys!
Seconded, nice effing work! :-)
WeberGunso
Posts: 11
Joined: 15 Sep 2009, 11:08

Re: Testers for the AI Python Interface needed!

Post by WeberGunso »

Jep, great Job.

Btw. Could you use a Batch of boost::python Wrappers for the Commands, Events and the Callback?...
should help you out with Typehecking, the only thing that has to be additionally done is registering the automatic conversions you already have built for the Python C API.

Thx for your efforts,
~Shogun
WeberGunso
Posts: 11
Joined: 15 Sep 2009, 11:08

Re: Testers for the AI Python Interface needed!

Post by WeberGunso »

For those who are eager to start using this Interface... take a look at this:

http://code.google.com/p/livecoding/

Sweet, my thanks to EVE-Online for it.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Testers for the AI Python Interface needed!

Post by abma »

@WeberGunso: Thanks for the hint with boot::python. Currently we try to make it as simple as possible to integrate it into spring. We hope to get it integrated into the installer of spring.

@others: thanks :)
WeberGunso
Posts: 11
Joined: 15 Sep 2009, 11:08

Re: Testers for the AI Python Interface needed!

Post by WeberGunso »

I was offering it because I have them there, ready to be used ;-). It was my little boost::python training/introduction I needed for Work (scientific purposes). Now what I saw at the boost::python lib is that it should make things a lot easier. What you are doing now is far beyond of what I would be possibly able to do with my limited knowledge of C/C++. But what I certainly know is that you should at least get two big things out of the way, or at least easily done by using it:

1) Type checking
2) Error handling

=================================================

I compiled the Python Interface, but I got a SIGSEV trying to load the PythonNullAI... the signal came at the AI init.
I'm going to pull the newest git this afternoon, recompile and if it persists post the log here, or is there any other place specially destined for such postings by now?

Is anyone experiencing something like that?

Keep up the great Work ;)
~WeberShogun
thegeorge
Posts: 7
Joined: 06 May 2010, 11:22

Re: Testers for the AI Python Interface needed!

Post by thegeorge »

@WeberGunso thanks for testing.

The type checking and error handling is not implemented at the moment, because it was not the main focus of development in the first place. It definitley will come in the next time.

If you are interrested in how the python bindings are generated and work, I can give you some insight. :-)
WeberGunso
Posts: 11
Joined: 15 Sep 2009, 11:08

Re: Testers for the AI Python Interface needed!

Post by WeberGunso »

Yeahh! of course. Tell me when you might have time for it. #ai IRC?. Would love to learn and eventually contribute. Have already some questions and suggestions (minor ones).

Confessing that after all you did all piss me off a bit about making my silently ongoing project worthless. Hahahaha. Partly my fault for not saying a thing (reason being lack of confidence towards my knowledge of C/C++)

~WeberShogun
thegeorge
Posts: 7
Joined: 06 May 2010, 11:22

Re: Testers for the AI Python Interface needed!

Post by thegeorge »

Yeah, when I am online and have time, I hang out the most time in #ai right now. Just write me a message.
WeberGunso
Posts: 11
Joined: 15 Sep 2009, 11:08

Re: Testers for the AI Python Interface needed!

Post by WeberGunso »

Srry I dissapeared... Lobby once again totally gave up on me. :?
Post Reply

Return to “Engine”