View topic - LuaAI volunteer request (BA)



All times are UTC + 1 hour


Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 30 Sep 2010, 13:01 
Balanced Annihilation Maintainer
User avatar

Joined: 10 Dec 2006, 18:46
Hi

I'm posting this as a request here first as I know there are talented coders here who are much more familiar with AI writing for Spring than me and I believe there will be interest in the opportunity to have your work included in the most popular spring mod so don't mob me for making a request please :P

With the new Spring feature of reconnecting players I'm looking to add a mod option (or player specific option) to allow the blocking of taking of a players units for x minutes to allow players to reconnect and resume play - I'm looking to trial the idea of letting a defensive/passive AI jump in and mind their base while this is happening.

What i'd be looking for is a Lua based AI that can take over a base at any point and carry out tasks such as:
- Defending/rebuilding existing structures
- Maintaining economy production
- Creating additional units for defense
- Sending builders to help nearby allies buildings
- Possibly assisting attacks where an ally is already attacking
- Defending its commander

It shouldn't be expected to win a game on its own or give newbies any kind of advantage by any stretch of the imagination but equally players shouldn't come back to find their base full of solars and all their units gone.

The other important requirements for the code would be Stability as a must and also as low system footprint as possible.

If anyone is interested in this please let me know here or on lobby, alternately feel free to just get to work on a mutator and I'd be happy to merge the results into BA if it's suitable.

Thanks!


Last edited by TheFatController on 30 Sep 2010, 18:20, edited 1 time in total.

Top
 Offline Profile  
 
PostPosted: 30 Sep 2010, 13:04 
AI Coder
User avatar

Joined: 14 Sep 2004, 10:32
Location: Cookieland
Out of curiosity what is the potential in the APIs for allowing a native AI to be loaded and take over? That would be useful for this if not for experimentation and research purposes


Top
 Offline Profile  
 
PostPosted: 30 Sep 2010, 13:12 
Kernel Panic Co-Developer
User avatar

Joined: 16 Nov 2004, 13:08
I have made some sort of Lua AI that rebuild any lost unit, move them to their position and reassign their order queues. Already released as a BA mutator.

But you weren't happy about merging.


Top
 Offline Profile  
 
PostPosted: 30 Sep 2010, 15:58 
AI Coder

Joined: 17 Mar 2008, 19:03
Location: RF
You need to emulate executing of /aicontrol command from disconnected player to attach any _existing_ AI. AI is executed by host. The problem is: can it be done in current Spring? Another problem: can you pass config options to AI (e.g. to set "easy" preset to make AI more passive) in /aicontrol command?


Top
 Offline Profile  
 
PostPosted: 30 Sep 2010, 16:32 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
Lua AIs are executed on all clients running the game, they are synced.
BAI is already taken as a name for an AI:
viewtopic.php?t=22590

if i remember right, /aicontrol does support passing in options. if not, it should not be hard to add. it most certainly does not work with LuaAIs though, or it will not be required for an AI that is designed to take over control and give it up again in the mid-game.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.