Command Mission AI - Ares-Lite v1.1 (NEW)

All discussions & material related to Command's Lua interface

Moderators: michaelm75au, angster, RoryAndersonCDT, MOD_Command

angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

RE: Command AI [Beta]

Post by angster »

Howdy! Been busy the last few weeks. I'll see if I can send an update soon.
wsxtgly
Posts: 13
Joined: Wed Feb 21, 2018 4:53 am

RE: Command AI [Beta]

Post by wsxtgly »

That's awesome. Waiting for your update.
angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

RE: Command AI [Beta]

Post by angster »

================================================
Ares Version 1.0 Rewrite
================================================
1.) OODA changed to 5 seconds, allowing better response time
2.) Rewrite of the AI to be less resource intensive
3.) Added basic ship AI, ships will adjust speed based on proximity to submarines
4.) Added submarine AI, submarine will adjust between 1 to 10 knots based on proximity and depth from contacts, making them deadlier
5.) Added different scenarios to test AI
Attachments
AresAI.zip
(254.44 KiB) Downloaded 126 times
Zaslon
Posts: 298
Joined: Sun Jun 14, 2015 8:52 am

RE: Command AI [Beta]

Post by Zaslon »

Fantastic.
Thank you very much Angster.
Image
Kids think about Iran and Amateurs think about Russia, but professionals think about China
User avatar
AlGrant
Posts: 912
Joined: Tue Aug 18, 2015 4:38 am

RE: Command AI [Beta]

Post by AlGrant »

I cannot think of a valid reason why I have not already given this a try!
I really must give it a go.
GOD'S EYE DISABLED.
serjames
Posts: 201
Joined: Sun Feb 21, 2016 11:48 am

RE: Command AI [Beta]

Post by serjames »

Hi angster,

Impressive as ever.

I noticed some maximum range missile engagements which makes POH low - perhaps dynamically change Weapon WRA's dependant on Pilot Skill? So ACE pilots will be smarter and not give you that chance to simply outrun the weapons.

Some oddities I noticed:

-AI driven F-35 on an "a1_rec_miss_1" mission dumped it's AAW missile load, when it encountered enemy Aircraft, but then didn't winchester for some reason - was shot down as it flew (radar on) towards known enemy AAW Patrol about 10 mins later

-Saw this again with a "a1_saaw_miss_1" mission. Checking the Doctrine, "weapons state pre planned" was set to shotgun. But "Weapon state RTB" was set to "NO, Aircraft do not RTB when weapon state is reached", which was a Suicide setting it seems

-Noticed Stealth Aircraft F-35B on "a1_saaw_miss_1" mission activating their radar which is probably not advised when they had good AEW coverage from the E3 Sentry already airborne

-Saw an F22 on "a1_rec_miss_3" mission activating radar on and off constantly? What causes that? Game engine? Not seen that before

Anyway still think this is a major step forward :-)
User avatar
Pancor
Posts: 71
Joined: Thu Jun 18, 2015 12:00 am
Location: Indonesia

RE: Command AI [Beta]

Post by Pancor »

Just download the scenario while surfing the forum i find it good idea to add an much more complex AI
but when i played the scenario Ares vs Equal, Strong, Weak opponentsm the AI from blue team didnt respond at all
sorry for bumping old thread thought
Cheers
sarjen
Posts: 115
Joined: Wed Jul 14, 2004 5:10 pm
Contact:

RE: Command AI [Beta]

Post by sarjen »

Uodate2. Now i get this error in every scenario with the AI:
23:12:00 - 23:12:00 - Lua script execution error: [string "Event - Load AI Functions"]:602: bad argument #1 to 'pairs' (table expected, got nil)
##############

Update. My fault. You have to apply some more things:
7. Create 4 reference points on the map for Blue Force, they must be named "AI-AO-1", "AI-AO-2", "AI-AO-3" and "AI-AO-4". As their name suggests, these points will mark out the area of operations for the AI. I haven't done enough testing to fully 100% understand how the AI treats this area, but it should essentially envelope all of the airspace that you want Blue Force to recon, defensively protect and offensively engage within. Once it has those 4 reference points, it'll generate its own mission areas inside and outside the AO (SEAD / DEAD missions inside it, support missions like AEW outside it).

Works now
###############

Sorry for gravedigging this thread but i wanted to test the AI and at the start of the scenario i get the following error:

4:21:55 AM - 4:21:55 AM - Lua script execution error: [string "Event - Initialize AI"]:2074: attempt to get length of local 'aoPoints' (a nil value)

4:21:52 AM - 4:21:52 AM - Event: 'Event - Initialize AI' has been fired.

Any insight? I already changed from European to USA language/time/date settings.

angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

RE: Command AI [Beta]

Post by angster »

Been out for a while. I'm planning to update the scripts and hopefully release a new version soon.
Dimitris
Posts: 15393
Joined: Sun Jul 31, 2005 10:29 am
Contact:

RE: Command AI [Beta]

Post by Dimitris »

Welcome back [:)]
sarjen
Posts: 115
Joined: Wed Jul 14, 2004 5:10 pm
Contact:

RE: Command AI [Beta]

Post by sarjen »

ORIGINAL: angster

Been out for a while. I'm planning to update the scripts and hopefully release a new version soon.

Great news. Waiting for the next iteration.
angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

RE: Command AI [Beta]

Post by angster »

Ares-Lite is a more practical redesign of the original Ares AI. Instead of creating its own missions sets, the lite version will work with existing user defined missions and parameters. Ares-Light seeks to improve the survivability and effectiveness of assigned units while giving the user the ability to assign AI to tailored missions. Units under the AI will take advantage of the recent update on engagement rules (http://www.warfaresims.com/?p=4884). Units will push harder and exploit LOS restrictions on most units.

------------------------------
Features:
------------------------------
1.) Categorize units by roles (AAW, AG, ASUW) by their payload and assigned mission. No more reference files. (NEW)
2.) Units will avoid missiles on first detection instead of last possible moment. (OLD)
3.) Updated avoidance to factor in ARH seeker heads. Units will attempt to dive and retreat outside the FOV of ARH missiles. (NEW)
4.) Avoidance behavior based on roles (EX: AAW will avoid SAMS and Ships) (OLD)
5.) Avoidance behavior is divided into two methods. (NEW)
a.) Line of Sight avoidance - Units will attempt to fly under the radar and still approach threats. To improve fuel efficiency, units will fly at the maximum height possible while avoiding radar. Height values are pre-determined by the distance to horizon equation.
b.) Hard avoidance - When line of sight avoidance can no longer mask a unit's approach, the unit will attempt to avoid the threat altogether.
6.) Units under Strike Missions will attempt fly under radar to avoid any detected SAMs or ships. They will "Pop-up" only when close to the target. (NEW)
7.) Units under Patrols (SEAD, Land, Anti-ship) will occasionally "Pop-up" to detect and engage targets. (NEW)
8.) Unit avoidance will only trigger on contact detection. The better the ELINT, the better the unit will perform. (NEW)
9.) Ares-Lite will command missions containing the tag "<Ares>" in the mission name. The AI will ignore any missions without the tag. (NEW)
10.) Improved retreat logic. RTB units will now factor their home base when determining retreat vector. (NEW)

------------------------------
Sample Scenario Summary:
------------------------------
This scenario is designed to test the effectiveness of Ares-Lite. Blue Team, under control of the AI, will be facing an assortment of high-tech air, land, and naval threats. The main objective is to destroy all priority targets while minimizing losses if possible. In order to successfully complete the mission, the AI must perform the following:

a.) Execute AAW patrol missions inside the engagement envelops of hostile SAM's and ships.
b.) Execute ASUW patrol inside hostile SAM and air cover.
c.) Execute Land Strikes against targets protected by air, land and naval threats.

Blue Team
------------------------------
Blue Team consists of 4.5 generation fighters:
a.) 16x F-15C (AMRAAM-D) => AAW Patrol
b.) 12x Rafale M (Exocet) and 6x F-15E (SDB II) => ASUW Patrol
c.) 10x F-15E (SDB II) => Land Strike
d.) 8x EA-18G (AARGM) => Sead Patrol
e.) 3x Phalcon (AEW) => Support Patrol

Red Team
------------------------------
Red Team consists of 4.5 and 5th generation fighters, backed by high tier SAMs and ships:
a.) 24x Eurofighter (AMRAAM-C5)
b.) 6x F-22A (AMRAAM-C7)
c.) 1x Arleigh Burke Destroyer BLK3 (ESSM,SM-6)
d.) 2x Type 45 Daring Destroyer (Aster-15, Aster-30)
e.) 3x David Sling SAM Battery
f.) 3x PAC-2 Patriot SAM Battery

Scoring
------------------------------
Scoring is used to determine AI performance. AI will lose or gain points based on kills and losses in the following amount:
a.) 4th/4.5 Generation Fighters => 10pts
b.) 5th Generation Fighters => 20pts
c.) Ships and SAM batteries => 40pts
d.) Priority Land Target => 10pts
e.) Radar => 10pts
f.) AEW Aircraft => 20pts
Attachments
AresLite..eatTest.zip
(149.73 KiB) Downloaded 77 times
Whicker
Posts: 665
Joined: Tue Jun 19, 2018 9:54 pm

RE: Command AI [Beta]

Post by Whicker »

nicely done.

I played it three times - until 12 hours 53 minutes to go which is where it ran out of memory the first time:

1) as is - score 50. With the AEW on ARES they seemed to lose contact with the enemy ships, lots of wasted missiles/ SDBs
2) removed ARES from all missions -score was -200. Ares did a way better job avoiding missiles
3) as is but with AEW not on Ares - score: 110

The ships were on a mission which I think was a big variable - if they had been on the same path each time it would be a better test - on the 3rd run thru one of the ships was just outside the ASuW area so it wasn't attacked - I think it would have been sunk for sure.

Would Ares work on multiple sides? I think it would be needed by the player just as much as the AI.

It does seem to be a bit of a memory hog.
angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

RE: Command AI [Beta]

Post by angster »

Thanks for checking out. You can apply the AI to multiple sides by adding another initialize function call.

Ex: Below applies the AI to both blue and red forces
initializeAresAI("Blue Force")
initializeAresAI("Red Force")

As for memory, this will take some time to analyze.
angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

RE: Command AI [Beta]

Post by angster »

------------------------------
Update v1.1
------------------------------
a.) Modified scenario to add AEW to Red Team and add more units to Blue Team
b.) Improved AEW height approach
c.) Memory usage improvement
Attachments
AresLite..eatTest.zip
(155.52 KiB) Downloaded 150 times
sarjen
Posts: 115
Joined: Wed Jul 14, 2004 5:10 pm
Contact:

RE: Command AI [Beta]

Post by sarjen »

Awesome. Will test it in 2 weeks as I am currently in the field.
sarjen
Posts: 115
Joined: Wed Jul 14, 2004 5:10 pm
Contact:

RE: Command AI [Beta]

Post by sarjen »

11h 16m to go and ARES has no AAW flights left. Red side still has 2 flights. Score so far: -40. Impressive work. I will give it a try in another scenario with older AC.
No crash so far.
kahta
Posts: 558
Joined: Sat Sep 21, 2019 6:42 pm
Location: Arkansas

Re: Command Mission AI - Ares-Lite v1.1 (NEW)

Post by kahta »

Is this still useful with some of the more recent updates?
Post Reply

Return to “Lua Legion”