DarkBlizz

Game On => Land of AI => STARCRAFT II: WINGS OF LIBERTY => AI Scripts => Topic started by: Zalamander on March 04, 2010, 04:07:31 AM

Title: Advanced Melee AI 2(AMAI)
Post by: Zalamander on March 04, 2010, 04:07:31 AM
AMAI2 v0.01 Released.
http://www.filefront.com/15733535/AMAI2_0.01.zip/ (http://www.filefront.com/15733535/AMAI2_0.01.zip/)

First simply prototype version, only contains a simple build for each race right now.

from readme:
Designer: Zalamander
Coder: AiAndy

v 0.01 (none cheating)

Experimental first release:
- Simple early mid game builds for all races.
- Enhanced harassment groups.


Next versions plans:
- Better harassment.
- Multiple builds based to counter enemy tactic.
- Better resource/expansion handling.

AMAI2 will have the same goal as our original AMAI for WarCraft 3.
To make an as challenging and unpredictable opponent as possible while remaining as fun as possible to play with and against.

This first version use the state system but enhanced with custom state switches no timer. Future version is going to have many different states to counter different strategies and do state switching based on enemy intell.


Reference:
Original AMAI for War3: http://www.hornes.pwp.blueyonder.co.uk/AMAI/ (http://www.hornes.pwp.blueyonder.co.uk/AMAI/)
Title: Re: Advanced Melee AI 2(AMAI)
Post by: Artanis186 on March 04, 2010, 04:20:56 AM
Not gonna test it right now, I'll do so when it makes a little more progress. But I wish you luck, you got quite some competition ahead of you.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: ooni on March 04, 2010, 04:30:47 AM
Quote from: Zalamander on March 04, 2010, 04:07:31 AM
AMAI2 v0.01 Released.
http://www.filefront.com/15733535/AMAI2_0.01.zip/ (http://www.filefront.com/15733535/AMAI2_0.01.zip/)

First simply prototype version, only contains a simple build for each race right now.

from readme:
Designer: Zalamander
Coder: AiAndy

v 0.01 (none cheating)

Experimental first release:
- Simple early mid game builds for all races.
- Enhanced harassment groups.


Next versions plans:
- Better harassment.
- Multiple builds based to counter enemy tactic.
- Better resource/expansion handling.

AMAI2 will have the same goal as our original AMAI for WarCraft 3.
To make an as challenging and unpredictable opponent as possible while remaining as fun as possible to play with and against.

This first version use the state system but enhanced with custom state switches no timer. Future version is going to have many different states to counter different strategies and do state switching based on enemy intell.


Reference:
Original AMAI for War3: http://www.hornes.pwp.blueyonder.co.uk/AMAI/ (http://www.hornes.pwp.blueyonder.co.uk/AMAI/)

But... AMAI wasn't that good in wc3 T__T

step in the right direction though.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: Zalamander on March 04, 2010, 04:37:47 AM
Quote from: ooni on March 04, 2010, 04:30:47 AM
But... AMAI wasn't that good in wc3 T__T

step in the right direction though.

Well it was better than any alternative and let me present you the reason it wasnt good... Tada! Blizzard hardcoded natives full of bugs.

It was basically impossible to create a challenging AI for War3 not only becuse of these bugs but also becuse of the gameplay with so much roleplaying elementas, handing heroes and do creeping.

How hard it's possible to make an AI in Starcraft 2 only time will tell but I can already say now, it has much better potential than the War3 code had plus the simpler gameplay(Build units, kill your enemy) makes it much easier. No creeps, no heroes.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: chetjan on March 04, 2010, 08:36:03 PM
pretty good, expecially for a prototype
Title: Re: Advanced Melee AI 2(AMAI)
Post by: pixartist on March 04, 2010, 09:34:57 PM
this is definitely worth a game
Title: Re: Advanced Melee AI 2(AMAI)
Post by: Organized_Chaos on March 05, 2010, 08:16:24 AM
I've played against this AI for a few games now, and as far as I can tell, EVERY race is better than any other AI I've tried, including Turd's.  Somehow the AI's unit micro seems better than any other AI too...

Also, the harassment is great - Terran used reapers to sneak into the back of my base and AT THE SAME TIME had banshees harassing my expansion, continually.

So this AI is VERY promising - the very first revision is already better than almost all of the other AIs out there.

Kudos guys.   ;)
Title: Re: Advanced Melee AI 2(AMAI)
Post by: tanknology on March 05, 2010, 12:15:13 PM
Hey can you please uploaded to another site? Filefront just won't work for me.
Thanks!
Title: Re: Advanced Melee AI 2(AMAI)
Post by: Kernel64 on March 05, 2010, 12:40:41 PM
This AI is great, as with wc3's AMAI.

Anyway, patch 3 has had changes within the base.sc2data file. I had AMAI2's base.sc2data while updating. Would you mind uploading a clean patch#3 base.sc2data?

I get a crash when trying to watch a vs. AMAI2 replay, and the updated data as listed in the latest patch notes is not there when playing vs. AMAI2.

Thanks in advance.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: Kingdom on March 05, 2010, 01:14:45 PM
Love the early game, though they are quite basic rushes (Marine/roach/zealot), but the AI simply doesn't seem to know where to go after that.

It tried to harass me with stalkers etc, but simply didn't know what units to get (Kept going zealots vs Banshees). Should be great in the long run, keep at it!
Title: Re: Advanced Melee AI 2(AMAI)
Post by: Zalamander on March 06, 2010, 03:33:19 AM
Sorry for keeping you guys waiting.

We are working hard on a complete remake of the AI system to fit our AMAI design ideas but I think that framework will be finished today and I will start adding a few different tactics.
So hopefully a AMAI2 0.2x within 2-3 days.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: bcboncs on March 06, 2010, 09:00:51 AM
The best AI that I faced already was Zerg from the Chinese x5 AI from LazyLauncher 2.0. Roaches, Lings, Hydra, Muta within the first 5 minutes. I saved the replay after I won and held 3-4 massive attacks containing these unit combinations, but after that 3rd or 4th attack, it didn't know what to do.


Is this AMAI2 going to be supportive of all races for AI? I've just been downloading so many AI, files, etc. since the beta and I eventually had to uninstall because I kept spawning two units of everything and even buildings... starting with 2 Nexus, Nexii?


Thank you!
Title: Re: Advanced Melee AI 2(AMAI)
Post by: pixartist on March 06, 2010, 11:35:01 AM
Quote from: bcboncs on March 06, 2010, 09:00:51 AM
The best AI that I faced already was Zerg from the Chinese x5 AI from LazyLauncher 2.0. Roaches, Lings, Hydra, Muta within the first 5 minutes. I saved the replay after I won and held 3-4 massive attacks containing these unit combinations, but after that 3rd or 4th attack, it didn't know what to do.


Is this AMAI2 going to be supportive of all races for AI? I've just been downloading so many AI, files, etc. since the beta and I eventually had to uninstall because I kept spawning two units of everything and even buildings... starting with 2 Nexus, Nexii?


Thank you!
mass cheated units != good AI
Title: Re: Advanced Melee AI 2(AMAI)
Post by: barabaka on March 06, 2010, 05:25:32 PM
Signed up to thank you guys for a great work! Played AMAI after starcrack 6.0 and I feel it's harder than starcrack's. I got 2 times beaten with ZvT, AI playing terran is really stunning, attacked me with bunch or marines so early I was totally embarassed, then went with reaper from the back of the base and banshee!!! ???  That killed me momentarilly I had actually no anti-air units but a queen. The micro seems nice as well, when stalkers flee from zealots they try to stop and attack for a while. That is great!
Managed to win the 3rd time only when set the "slow" mode ion options and built 2 spore colonies to defend the first rush.


Keep up good work!
Title: Re: Advanced Melee AI 2(AMAI)
Post by: brutester on March 06, 2010, 07:39:08 PM
This AI looks very promising :)

The only annoing problem is with unit managment.
1. For the moment you should disable the RunScared flag in MeleeAI.galaxy
2. Zerg units attack on groups depending on speed. This AI doesn't regroup before attacking.
3. Upgrades, upgrades, upgrades :) You should add some functions to do the armor and damage upgrades.

Still a very good initial release.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: zumar on March 07, 2010, 01:07:03 AM
I have a question about cheating/non-cheating AI.
You wrote "none cheating", but in MeleeAI.galaxy I see following:

if (true) {       
        if (PlayerDifficulty(player) >= c_skirCheater) {
            AIHarvestBonus(player, 2.0);
            AISetDifficulty(player, c_diffNormalVision, false);
            AISetDifficulty(player, c_diffLimitAPM, false);
        }

I'm not AI coder, but I suspect that AIHarvestBonus(player, 2.0) is needed to increase resource harvest rate. So, please, tell, what is this code doing in the none cheating AI?
In non-cheating Starcrack AI I did not find such command.

Title: Re: Advanced Melee AI 2(AMAI)
Post by: Doix on March 07, 2010, 05:50:14 AM
That code is in the default AI... Read the ifs, if (PlayerDifficulty(player) >= c_skirCheater), PlayerDifficulty depends on the APM, in this AI the APM is 400, which would make the difficulty less than c_skirCheater and that code would never run.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: zumar on March 07, 2010, 11:37:25 AM
Thank you for the answer. 
Title: Re: Advanced Melee AI 2(AMAI)
Post by: kme on March 07, 2010, 12:01:16 PM
This AI is actually quite good. It keeps constant pressure, and you have to def constantly form its harass. While it's not perfect, too me, games are more fun against it then with other available AI atm.

The biggest problem with it right now I would say is that it doesn't use the advantage of harass to take more expos. If it took third expansion it would have enough money to not lose in the later game. Anyway this AI is the step in right direction IMO.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: Organized_Chaos on March 07, 2010, 12:11:02 PM
Looking forward to the next release! 

Again, great job for 1st revision..  ;)
Title: Re: Advanced Melee AI 2(AMAI)
Post by: ganjaman71 on March 07, 2010, 01:01:11 PM
I only played a few games with it but i like it , its alot harder and the cpu even wins sometimes , keep up the good work!
Title: Re: Advanced Melee AI 2(AMAI)
Post by: barabaka on March 07, 2010, 03:16:06 PM
Thanks again for great script! Its harass is the best comparing to other AI. I'd like to give some suggestions to improve AI:


- repair cc
- improve stalker flee from zergling  (sometimes when surrounded by zerglings stalker don't even fire back at them, just stays)
- handle destructible rocks on blistering sands (when main entrance is blocked with cannons)
- handle voidray rush; PvZ is easy to win on blistering sands: block main entrance and 3voidrays on hatch
- sometimes AI kills all units on exp and then goes back without destroying hatch
- create exp while harassing
- improve reaper harass, it's cool now but can be better i.e. fire nexus/probes instead of pylon




Title: Re: Advanced Melee AI 2(AMAI)
Post by: mek on March 12, 2010, 01:10:10 PM
This is a seriously good AI, it pulls off some great harassment and actually forces you to play smart or get owned.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: escudero on March 12, 2010, 02:42:25 PM
I played 2 games which both ended pretty much the same. The early game is really good. He keeps sendings waves of units and 1 game even broke my defence and came in. after that he gets some roaches and like 5 hydras and 5 mutas, and i just massed some hydra and took em all out. If you could drastically remake the mid/late game this will be an amazing AI. Great job either way.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: kme on March 14, 2010, 01:25:17 PM
Is this AI still developing?
Title: Re: Advanced Melee AI 2(AMAI)
Post by: emylgoth on March 14, 2010, 06:07:38 PM
With harvest ratio 5, this AI is extremely entertaining (to me). You need to be careful all the time. The harassment for this AI is gorgeous (especially on T and Z). I wish you'll continue this project...
Title: Re: Advanced Melee AI 2(AMAI)
Post by: Zalamander on March 16, 2010, 01:30:29 AM
You dont have to worry about AMAIs development its just that we dont have as goal to be a beta AI here but rather the best AI for the game when its released but will release some newere versions here after just solving a few small problems now. Today most likely.
Title: Re: Advanced Melee AI 2(AMAI)
Post by: ranger101 on March 16, 2010, 03:54:25 AM
Quote from: Zalamander on March 16, 2010, 01:30:29 AM
You dont have to worry about AMAIs development its just that we dont have as goal to be a beta AI here but rather the best AI for the game when its released but will release some newere versions here after just solving a few small problems now. Today most likely.

woo~the new version released today?!
looking forward~