View topic - Python artificial intelligence



All times are UTC + 1 hour


Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 01 Jun 2012, 10:43 

Joined: 19 Oct 2011, 21:38
Hello everyone. I intend to write an AI in python.
What is the current status of python interface for the development of artificial intelligence? E 'can still use it?
I tried to download it and compile it by following this guide:https://github.com/spring/Python but maybe something wrong.This guide is updated and complete?
I'm not very handy, but I would try to achieve something for the spring engine.
thanks


Top
 Offline Profile  
 
PostPosted: 01 Jun 2012, 12:27 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
the interface would need to be updated (the code) to work with spring 83.0 and later, so it is not compatible with current releases.
alternatively, you might be able to use JPython through the javs interface.


Top
 Offline Profile  
 
PostPosted: 01 Jun 2012, 14:37 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
You could also remove the lua VM in Shard, and reconfigure SWIG to generate python not lua bindings


Top
 Offline Profile  
 
PostPosted: 01 Jun 2012, 16:14 
Moderator

Joined: 05 Aug 2009, 19:42
As someone who has written an AI in python & C++ for starcraft, and a java one for spring, I suggest you use the java version. The python one is probably too complicated for you to setup as you're probably a spring novice - at least it won't be worth your time.


Top
 Offline Profile  
 
PostPosted: 01 Jun 2012, 21:44 

Joined: 19 Oct 2011, 21:38
I will try to understand what is the best way, if there is one really better. I hope ... thanks again!


Top
 Offline Profile  
 
PostPosted: 03 Oct 2012, 03:56 
AI Coder
User avatar

Joined: 17 Oct 2006, 03:14
I'd be interested in being able to use a python interface for spring AIs. I know that loops in python are terribly slow, but for playing around that does not matter, and many things can be vectorized using scipy.


Top
 Offline Profile  
 
PostPosted: 08 Nov 2012, 02:27 
Spring Developer

Joined: 31 May 2009, 23:08
@hughperkins:

fix the interface?

https://github.com/spring/Python :)

sorry, i'm / was to lazy to fix it. TheGeorge did the party which generates the code and this party is really ugly and can/could be written in a much cleaner way, thanks to the changes in the interface.

i guess it could be fixed in maybe one day or so... but my python-c-interface knowledge is really low.

if you've questions i maybe can help...


Top
 Offline Profile  
 
PostPosted: 08 Nov 2012, 20:15 
Journeywar Developer & Mapper
User avatar

Joined: 24 Jan 2006, 21:12
Location: Never go full Retro-ard! You just don't do it.
Would it be possible to have AI-Tournaments, with comentators and such? Every first of the month?

Sorry if derail.


Top
 Offline Profile  
 
PostPosted: 08 Nov 2012, 21:17 
Moderator

Joined: 05 Aug 2009, 19:42
PicassoCT wrote:
Would it be possible to have AI-Tournaments, with comentators and such? Every first of the month?

Sorry if derail.

there's already a springgrid site that does that
hughperkins has created the original version, and i also did some work on it - i just feel it requires a couple of more commits before being released (better interface & some code cleanup mostly), haven't yet gotten to it

check this ancient thread: viewtopic.php?f=15&t=24218 (the instructions on the first post are old, suggest reading stuff from the last post or just check the repos)

PS: Eventually I'd like to combine springgrid and the mission editor thing I'm working on, so people can test AI changes, spring changes and mod changes on both skirmish and scenario settings - scenarios can f.e be used to test certain pathfinding improvements/regression bugs


Top
 Offline Profile  
 
PostPosted: 09 Nov 2012, 14:55 
AI Coder
User avatar

Joined: 17 Oct 2006, 03:14
All sounds good to me. I'm busy doing a masters at the moment, and trying to publish papers, and nothing I'm doing is related to spring unfortunately :-( but I look forward to seeing what gets created, and you never know, maybe one day I can figure out how to get papers out of working on Spring :-)


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.