Green Tea AI 0.56

Started by ptanhkhoa, April 05, 2010, 09:43:41 AM

Previous topic - Next topic

Which Race you think needed to improving ?

Zerg
38 (57.6%)
Terran
17 (25.8%)
Protoss
11 (16.7%)

Total Members Voted: 66

Rokrdude

Quote from: Shadow on May 17, 2010, 04:00:44 AM
ptanhkhoa, can you tested and modify for compatibility with your GreenTea, Darka upgrade for Strategy AI (see this topic http://darkblizz.org/Forum2/ai-scripts/strategy-ai-0-41/15/ reply#29) ?? I think with your Ai this upgrade must work better :)


I totally agree pls update with latest strategy ai

darka

@ptanhkhoa:

Hi, I have made some few openings for Strategy 0.42.
I don't try your AI yet because of I am busy....
I have just made a last Upgrade yesterday with all best Openings for each race. (more stable)
I will post it today. If you can test it and gave me your feedback,  it will be great.
If you like my work and gave me "Variables" from your Core, we can do a good thing.
I hope your AI can use those B.O better than Strategy.

http://hotfile.com/dl/43384756/0659088/strategy_modified.rar.html

new openings:

Zerg:
Opening0: XPL opening
Opening1: 11pool into ling rush by turdburgler
Opening2: 14 Gas Speed by darka
Opening3: 15 Hatch.
Opening4: Roach Pressure
Opening5: Baneling Rush

Protoss:
Opening0: XPL opening
  Opening1: 3 Gate Robo Timing
  Opening2: 3 WarpGate Rush
  Opening3: One Base Colossus
  Opening4: Dark-Templars Expand
Opening5: One Gate Stargate

Human:
Opening0: Marines and marauders by turdburgler
    Opening1: 28 marine shield wall by ccT
    Opening2: Siege Expand    by darka
    Opening3: Expermental Hellion rush...
    Opening4: Turbo Reaper...
Opening5: 1 Rax Fast-Expand
 
http://hotfile.com/dl/43384865/7712240/openings.rar.html
 
Have Fun.



Shadow

Nice B.O. nice army and stupid strategyAI core :(

ptanhkhoa, plz adapted darka upgrade for your GreenTea! PLZ! :)
Im from Russia. Sorry for my broken english.

darka

This week, I'm in travel... can't test or change B.O
I'm working on GreenTea Opening Variables, very different but understable, can't try them yet.

What B.O need to be changed or improve? (I knew about Zerg Open0 & Protoss Open0 but what else?)
Give your feedback plz.

Ps: I am not Programer Core, I am not responsable of AI stupidity.

Shadow

Yes, i know what you are not programmer) Now i play only against terran for better understanding and try to find more bugs because i can talk only about terran. I think you need to add fast Banshes B.O.))

Fast reaper not good. He build one reaper, i buld counter unit and thats all. Then he builds marine+marauders.
I realy liked siedge tank rush! :)

IMO main problem in strategyAi its passive game, GreenTee more agressive.

When you are traveling, i test all race and give you more feedback. GL HF in travel! :)
Im from Russia. Sorry for my broken english.

darka

Tank Siege could be improve when barrack and factory swap enabled.
I have tested with Starcrack script, swap success but racks make another techlabs or re-lift on.
Reaper rush was for fun :D
Banshee rush could be a good idea.

If I will try openings for GreenTea, I hope you can tested it. I will post after.

Shadow

@Banshee rush could be a good idea.

Also fast mutalisk for zerg and fast voidrays for protoss. But i think when he go to this BO he will be weak in ground....
Maybe Ai can go to air only when he had some ground army? Terran for exsample build few marine+marauders to counter early attack and then build banshes.
Im from Russia. Sorry for my broken english.

darka

If you want to test one opening, example: open protoss.galaxy with notepad and change "int protoss_open = -1" by "int protoss_open = X" X (0,5) to play B.O u wanted.
About Banshee Rush or others, I thought that could be a good B.O for Air Openings.
I wait response form ptanh to know how add openings for his A.I.

@ptanhkhoa
If I change ZergOpenGnd0 or add ZergOpenGnd1 in zerg.galaxy is it alright or just add zerg0.galaxy etc... to add Openings?
I need to change "Unit Production" for each openings or copy and paste is enought?

ptanhkhoa

@Darka: Thanks, but unfortunately, my AI does not depend on opening, rather it a complete build from the beginning to the end. For example: if you intend to go for HighTemplar and try to get Pri Storm as fast possible, you end up using gas too much that leave mineral behind. So you don't have enough gas to go for other high tech like Colossus or Carrier.  That why, we also need to correct what need to be build after the opening, so it should be complete strategy from the begin to the end.

So when you feel like to make new strategy, you should make another Zerg4.galaxy or Zerg5.galaxy file and each file should be your strategy ^_^.

Let me introduce the new General system in GreenTea 0.44 ( Enhanced for Protoss only );
At the beginning of the match AI will choose random strategy respond to each General. There are 2 kind of general: Fast Tech or Fast Expand, each has their build style and favorite units.

Fast Tech General ( they like to go for teching first than expand later )

Commander "Nga Son":
He like to go for Robotic Facility and his favorite units is Collosus. You will expect to have a mass Collosus army when fighting with him.

Commander "Tien viet"
Behold the power of Pristorm, his main army were Zealot mix with some High Templar and Stalker. After using all the energy, the 2 High Templar will automatically group into Archon.

Commander "Huy Khanh"
His favorite unit is Dark Templar, he will try to get them as soon as possible to sneak into your base.

Commander "Dang Hai"
He is the master of the sky with his Carrier army, but on the ground, he also has some Collosus to stronger the ground force.

Fast Expand General ( they like to expand first than teching later )

Commander "Hoang Duy"
Like Nga Son, he also favorite for Robotic, so his main Army is Collosus and Immortal.

Commander "Nhu Quyen"
She is the litte sister of Tien Viet, also like to using Storm but will try to expand faster to get enough resources to build her army

Commander "Thanh Nguyen"

You can call her the queen of the sky, her main force is Carrier, Voidray, and Phoenix if needed.


At the beginning the Identity of the Generals is conceal. Until near the end of match, she/he will reveal their name. So you can see which generals is strong and which is weak, so I can improve them better.




Shadow

Interesting! I test it soon as possible. When the expected version for all race?
Im from Russia. Sorry for my broken english.

darka

@ptanhkhoa: I understood how your AI does, I'll try to make Terran and Zerg Strategy.
As I saw with your "commander" :D, we have the same idea of units building and production, the same way (logical idea).
As I supposed, you have to worked on A.I core, I can work on units building and production.
I'll try to post Terran Strategy first and wait of feedback.

darka

#86
Unit drop fixed or not?
As I saw in your script, you got AIMoveWorkers. (that mean peons moving fixed)
I also saw "c_nearDoor", that's mean flag from ramp?
I have add "28 marine shield wall by ccT" opening in terran strategy and try to switch in Banshee Rush because of gas economy viable.
I am working on Terran, if you have time, focus on zerg insteed. :p

Ps: Don't add another core in archive, GreenTea is enought :D

ptanhkhoa

#87
Drop not fixed yet :) , c_nearDoor is a better combination of c_nearChokePoint and c_nearDefense.
But it not correct in some case. You see I make a function GTBuildP ( build at any point ), and make point GTDO near the gather defense of the force. If you wish, you can build Barracks , Gateway between 2 PlayerStartLocation for faster rush.
Second I find that 28 Marine is too much and not necessary, while you can reduce it a little and can tech or expand ( 24 Marine and Expand fast for example... ), or combination with Marauder.

Besides, you can see in my Protoss script, every opening is mostly the same : 2 Gate then Cybernetics core, that make people hard to guess what strategy AI is using until the first strike of them :) .

P/S: You can add any strategy of any Race you wish, just add more number and give it a name, as for me, I will try to add some more short function to get it done faster.



darka

#88
Quote
Besides, you can see in my Protoss script, every opening is mostly the   same : 2 Gate then Cybernetics core, that make people hard to guess what   strategy AI is using until the first strike of them :) .

I thought same Opening is not interessing because of all my openings coming from liquipedia which include progamer B.O (quick, give ressource necessary to mass units or expand)
You also made message with commander name, so player known which counter to do.....
B.O is better, that force player to scout enemy don't know what tech is coming before scouting.

Ihave made some script,  but A.I always making supply depot when its not necessary... how to fix that? (fixed)

I don't understand differents between GTBuildI and GTBuildA? (GTTrainI and GTTrainA too)

ptanhkhoa

The commander name only appear until very late game :), to fix supply depot, simply add SupplyDepot_Alias, not just SupplyDepot.

GTBuild ( only build on town )
GTBuildA ( build after some thing has complete build,
GTBuildI (build when something is in progress )
TrainA ( train only something has complete, ex : build 6 zealot after Cyberneticore been build )
TrainI ( train only when something is in progress )