Automating matches between two bots for training

Anything related on how to build / improve your AI using BWAPI, BWTA, BWSAL, etc.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
Leckofunny
Posts: 27
Joined: Mon Apr 04, 2016 7:41 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Automating matches between two bots for training

Postby Leckofunny » Fri Apr 08, 2016 3:33 pm

Hello everybody,

I'd like to discuss the training setup of combat units using artificial neural networks. So here is my goal:

I desire to let two armies fight each other on a map (e.g. 10 marines vs. 10 dragoons) over and over again. This way I'm planning on training the neural nets of the individual combat unit types.


My approach would be to inject two bots using two instances of Starcraft to run network matches. In order to achieve effective training, the match needs to be played lots of times. I fear that just letting one bot fight the original computer won't return reasonable results. The computer just counter attacks and gets baited. This scenario would lead to overfitting of the neural net.


It would be great if some people could share their opinions or experience on this matter. The combat simulator SparCraft seems to be unsuitable, because it doesn't support collisions. The micro management and real movement inside the game is crucial. I imagine units trying to run into each other.
andertavares
Posts: 1
Joined: Mon Apr 04, 2016 10:17 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automating matches between two bots for training

Postby andertavares » Sat Apr 09, 2016 1:18 pm

Maybe the folks of StarCraft Micro AI tournament may help you, try getting in touch with them: http://scmai5-after.mylifeforai.com/
sol_kanar
Posts: 1
Joined: Sat Apr 09, 2016 3:47 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automating matches between two bots for training

Postby sol_kanar » Sat Apr 09, 2016 3:52 pm

Me and my team are also working on machine learning, and so far we found the following solution:
- one "master" virtual machine for the "main" program, and several "slave" VMs
- starcraft tournament manager server running on the "master" VM and tournament manager client on the "slave" VMs
- run several games at once using the tournament manager, and analyze the collected data on the "master" VM

Hope this helps!
User avatar
Leckofunny
Posts: 27
Joined: Mon Apr 04, 2016 7:41 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automating matches between two bots for training

Postby Leckofunny » Mon Apr 11, 2016 6:43 pm

Thanks for the replies.

I just got admission for writing my bachelor thesis. So I'll start working on this concern pretty soon.

This is the of my thesis.
User avatar
Leckofunny
Posts: 27
Joined: Mon Apr 04, 2016 7:41 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automating matches between two bots for training

Postby Leckofunny » Tue Apr 19, 2016 11:07 am

User avatar
warwolf30
Site Admin
Posts: 7
Joined: Mon Apr 04, 2016 12:33 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automating matches between two bots for training

Postby warwolf30 » Tue Apr 19, 2016 1:09 pm

I'm not sure what are you using to program your bot (C++ or Java) or (AIModule or AIClient). But in C++ and AIModule, you don't need to cleanup the variables, since all is destroyed between games, BUT if you are creating an AIClient, you need to cleanup all your variables before the next game.
User avatar
Leckofunny
Posts: 27
Joined: Mon Apr 04, 2016 7:41 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automating matches between two bots for training

Postby Leckofunny » Tue Apr 19, 2016 3:51 pm

I'm using this . It uses a BroodwarLoader.dll as AiModule to inject a module which inherits from AiBase.
User avatar
warwolf30
Site Admin
Posts: 7
Joined: Mon Apr 04, 2016 12:33 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automating matches between two bots for training

Postby warwolf30 » Tue Apr 19, 2016 4:52 pm

Well, I reviewed the code in , and the wrapper is builded around the BWAPI AI Client version (the README can be misleading). So, yes, you need to clean your variables after each game ;)
User avatar
Leckofunny
Posts: 27
Joined: Mon Apr 04, 2016 7:41 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Automating matches between two bots for training

Postby Leckofunny » Tue Apr 19, 2016 9:41 pm

Thanks a lot for your effort.

Working with the same scope through the whole sessions could actually be a pretty nice advantage. Otherwise I'd have to work on some persistent stuff in order to guide the upcoming training procedure.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “AI development (BWAPI Bots)”

Who is online

Users browsing this forum: No registered users and 11 guests