The PvT project

Help - Resources - AI Scripting - Grafting - Plugins - Modding Projects
User avatar
Myk
Posts: 257
Joined: Sat Jun 13, 2009 12:56 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: The PvT project

Postby Myk » Sun Feb 03, 2013 8:29 am

User avatar
Taranok
Posts: 256
Joined: Tue Sep 07, 2010 9: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: The PvT project

Postby Taranok » Sun Feb 03, 2013 8:31 am

User avatar
Myk
Posts: 257
Joined: Sat Jun 13, 2009 12:56 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: The PvT project

Postby Myk » Mon Feb 04, 2013 1:25 am

http://www.broodwarai.com/downloads/mem ... %201.0.txt

Here's something I threw together for fun. I didn't spend a lot of time making it win or whatever, but it's still pretty good.
User avatar
Taranok
Posts: 256
Joined: Tue Sep 07, 2010 9: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: The PvT project

Postby Taranok » Mon Feb 04, 2013 3:04 am

yup, it's pretty good against mech; but it can't survive against the classic marine medic firebat rush! loses to Archon Wing, Baja, Accel T. I don't know how hard it will be to solve this.

Thanks for posting your P AI. It's really hard to tell how good Mech AIs are when only one of them is any good against Mech.
krasi0
Posts: 254
Joined: Thu Dec 18, 2008 12:42 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: The PvT project

Postby krasi0 » Wed Feb 06, 2013 1:08 pm

Taranok, can you make a sample AI script such that Protoss will try a contain in front of the enemy's base, i.e. gather goons, zealots and observers in a safe range from the enemy siege tanks but still killing anything that will try to escape out by land (scvs, vultures, etc)
User avatar
Taranok
Posts: 256
Joined: Tue Sep 07, 2010 9: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: The PvT project

Postby Taranok » Thu Feb 07, 2013 10:16 pm

will try to get any updates/coding worked on this weekend. btw I'm not sure how terrific a contain script will work (I think I read something about attack_prepare will attack without waiting for the attack_do command). Will try though.

I think I might add some screenshots here later for fun :)
krasi0
Posts: 254
Joined: Thu Dec 18, 2008 12:42 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: The PvT project

Postby krasi0 » Fri Feb 08, 2013 7:33 am

Well, I don't mean it to be an otherwise powerful bot. I (and I believe other bot developers) just need an opponent that makes a good contain (gather army in a safe distance in front of the enemy siege tank defense) because passive bots like mine tend to suicide lots of units in such situations. It'll be an extremely useful training partner.
Some notes about it to ease the work:
1) doesn't need to ever attack, just to continue gathering in a safe distance in front of the enemy natural. Defending that position so to say
2) the gathering position should be such that the contained player can't send workers out to build an expansion or sneak out any vultures. I know this is hard on let's say FS, but It should be somehow doable on Python maybe?
3) Army composition doesn't need to be too fancy. Goons with range mostly, maybe later - some HTs and reavers, carriers...?
4) Could be a UMS map as I know this would be easier.
User avatar
bajadulce
Posts: 52
Joined: Fri Feb 01, 2013 7:02 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: The PvT project

Postby bajadulce » Fri Feb 08, 2013 8:15 am

@ attacking w/o waiting for a command
From prior observations, it was discovered that the internal AI engine will send it's army on the offensive without ever instructing it to do anything (i.e. no attack commands in script at all). Ashara I believe confirmed this in his testing as well. Not sure what triggers the AI to decide to attack, but it doesn't appear to just build a passive army. Eventually it seems it will attack whether you instruct it to or not.

Somewhere there is a post/script called EasyZ. Basically I tried to put together a script that wouldn't attack my 10yr old nephew, but rather just build a huge defensive army/base. Eventually tho (usually around 15 minute mark iirc) it would go on the war path. Maybe there was something we needed to leave out that prevented the script from behaving as intended.
krasi0
Posts: 254
Joined: Thu Dec 18, 2008 12:42 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: The PvT project

Postby krasi0 » Fri Feb 08, 2013 8:25 am

well, if it holds still for 15 minutes, I guess that's alright.
super1
Posts: 6
Joined: Sun Jan 27, 2013 11:55 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: The PvT project

Postby super1 » Fri Feb 08, 2013 1:56 pm

The hardcoded build-in script attacks (the ones that are not executed specifically from the script) are one of the many functions that can be disabled by calling start_campaign. After that the AI will just obediently do whatever it is told. Have in mind that if an AI is run in the UMS game move start_campaign is called anyway (or at least the functions it disables do not work in UMS).

[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 “StarCraft Modding”

Who is online

Users browsing this forum: No registered users and 13 guests