So, I made an AI for FA

Post here if you want to help developing something for FAF.

So, I made an AI for FA

Postby Softly » 25 May 2016, 21:53

TLDR here's some code ----> https://github.com/HardlySoftly/Forged-Alliance-AI
(and wiki http://wiki.faforever.com/index.php?title=AI_Modding)

Its well known that AIs are generally pretty poor practice when trying to move up the ladder ranks (though they are useful in some cases).

I was wondering how hard it is to write an AI of your own, so that you can work on making it a bit more realistic to play against, and turns out its fairly easy to get something simple up and running.

I've got a little bit of code that I've shared in the hope that some more people might take a look at writing an AI as well, then we can do cool stuff like using AIs as a map tutorial rather than a replay, or AI tournaments and the like. Maybe this is something we can look at next time we do FAF Dev School.

Since I wanted the code really simple for this first release, all my AI does right now is spam t1 land and mass stall a bit. Suggestions very welcome on what I should get it to do next; is there a particular map people think I should get it to play well on, or some particular strategies you think I should teach it first?
Softly
Supreme Commander
 
Posts: 1009
Joined: 26 Feb 2012, 15:23
Location: United Kingdom
Has liked: 150 times
Been liked: 251 times
FAF User Name: Softles

Re: So, I made an AI for FA

Postby Heaven » 25 May 2016, 21:56

Softly wrote:TLDR here's some code ----> https://github.com/HardlySoftly/Forged-Alliance-AI
some particular strategies you think I should teach it first?

early mantis raid into second air low-pgen/tree reclaim-based jester, then some t1 micro thing until fast t2 ghetto snipes :D
User avatar
Heaven
Avatar-of-War
 
Posts: 160
Joined: 20 Feb 2013, 21:27
Location: Gazath-Sonika
Has liked: 1 time
Been liked: 135 times
FAF User Name: Heaven

Re: So, I made an AI for FA

Postby Exotic_Retard » 26 May 2016, 00:27

make it do loya/harb/ras rush -> instant 2k rating

however if you teach it to beetle snipe we would just end up with tokyto : |
User avatar
Exotic_Retard
Contributor
 
Posts: 1470
Joined: 21 Mar 2013, 22:51
Has liked: 557 times
Been liked: 626 times
FAF User Name: Exotic_Retard

Re: So, I made an AI for FA

Postby Aulex » 26 May 2016, 01:48

It would be interesting if we could employ one of the various machine learning techniques to try and create a better ai
Last edited by Aulex on 26 May 2016, 02:28, edited 1 time in total.
"Let's start beating ass and die" - drunk TA4Life

"Just because you have a d*** doesn't mean you need to be one...pussy" -Blackdeath

SCOUTING SAVES LIVES
http://imgur.com/YGk0W0o

How to play Sup Com by Ubilaz
http://goo.gl/je83z
User avatar
Aulex
Contributor
 
Posts: 1050
Joined: 17 Nov 2012, 05:29
Has liked: 299 times
Been liked: 225 times
FAF User Name: VoR_Aulex

Re: So, I made an AI for FA

Postby Astrofoo » 26 May 2016, 02:01

Instead of telling it how to do a particular "strategy", make it smart enough to figure out its own. Maybe we'll learn something from it and it will revolutionize our playstyles. xD
"So now everything without a shield is gonna die, and everything with a shield is gonna die a little later." -TA4Life on the Mavor
User avatar
Astrofoo
Contributor
 
Posts: 190
Joined: 16 Jan 2013, 21:34
Location: USA
Has liked: 4 times
Been liked: 8 times
FAF User Name: Astrofoo911

Re: So, I made an AI for FA

Postby BRNKoINSANITY » 26 May 2016, 02:58

I love how this went from "simple AI that spams and stalls a bit" to "lets imitate humans playing" to "lets fool about with machine learning to create a warfaring AI that will teach us how to REALLY play" in less than a page of posts.
BRNKoINSANITY
Evaluator
 
Posts: 951
Joined: 09 Oct 2012, 01:14
Has liked: 43 times
Been liked: 207 times
FAF User Name: BRNKoINSANITY

Re: So, I made an AI for FA

Postby Aulex » 26 May 2016, 04:17

BRNKoINSANITY wrote:I love how this went from "simple AI that spams and stalls a bit" to "lets imitate humans playing" to "lets fool about with machine learning to create a warfaring AI that will teach us how to REALLY play" in less than a page of posts.

I'm sorry, what? How does this post contribute at all?
"Let's start beating ass and die" - drunk TA4Life

"Just because you have a d*** doesn't mean you need to be one...pussy" -Blackdeath

SCOUTING SAVES LIVES
http://imgur.com/YGk0W0o

How to play Sup Com by Ubilaz
http://goo.gl/je83z
User avatar
Aulex
Contributor
 
Posts: 1050
Joined: 17 Nov 2012, 05:29
Has liked: 299 times
Been liked: 225 times
FAF User Name: VoR_Aulex

Re: So, I made an AI for FA

Postby nine2 » 26 May 2016, 04:34

Its amusing
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: So, I made an AI for FA

Postby Aulex » 26 May 2016, 04:49

Anihilnine wrote:Its amusing

It's a waste of space

To follow up on my machine learning remark, something as simple as reinforcement learning could be used, the only question is what is available to the AI brain to help train the model.
"Let's start beating ass and die" - drunk TA4Life

"Just because you have a d*** doesn't mean you need to be one...pussy" -Blackdeath

SCOUTING SAVES LIVES
http://imgur.com/YGk0W0o

How to play Sup Com by Ubilaz
http://goo.gl/je83z
User avatar
Aulex
Contributor
 
Posts: 1050
Joined: 17 Nov 2012, 05:29
Has liked: 299 times
Been liked: 225 times
FAF User Name: VoR_Aulex

Re: So, I made an AI for FA

Postby nine2 » 26 May 2016, 05:00

I think you're being a little sensitive but whatever.

Machine learning is a cool idea.. Just analyze the replay vault.

But that to me sounds way too ambitious...
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Next

Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest