Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

[Logged] Launching MALD by AI

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Logged] Launching MALD by AI Page: [1]
Login
Message << Older Topic   Newer Topic >>
[Logged] Launching MALD by AI - 5/16/2020 1:02:13 PM   
KC45


Posts: 240
Joined: 11/23/2017
From: JPN
Status: offline
For my missions, I want to shoot MALD from AI side.
to complete this, I have 2 ideas to accomplish this but have no ideas to do.

1. let AI shoot MALD from Airplane by lua (must by BOL by AI.
2. spawn MALD in AI side.

either way is fine.

Thanks.

< Message edited by apache85 -- 6/9/2020 3:50:21 AM >


_____________________________

Steam CMANO Japanese Community(unofficial).
Post #: 1
RE: Launching MALD by AI - 5/16/2020 2:01:57 PM   
BeirutDude


Posts: 2625
Joined: 4/27/2013
From: Jacksonville, FL, USA
Status: offline
Seems to me like Lua would be the best way to do it. Can you spawn them and give them a path without a Lua script?

_____________________________

"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
PRESIDENT RONALD REAGAN, 1985

I was Navy, but Assigned TAD to the 24th MAU Hq in Beirut. By far the finest period of my service!

(in reply to KC45)
Post #: 2
RE: Launching MALD by AI - 5/16/2020 4:23:29 PM   
KnightHawk75

 

Posts: 1450
Joined: 11/15/2018
Status: offline
Can't spawn weapons via lua unfortunately (that I know of), so option 2 will not work.

Option one works in theory, you can use the following as a guide:
local myunit = ScenEdit_GetUnit({name='some sample unit with a MALD-J'})
local retval = ScenEdit_AttackContact(myunit.guid,'BOL', 
{latitude='N 65.19.14',longitude='E 19.55.43', mode=1, mount=3017,weapon=2442,qty=1}) -- note the special 'BOL' contactname, not sure that's in the docs anywhere.
print(tostring(retval)) -- true\false  based on success\failure.

Now if you want to set a course of waypoints for the MALD... You in theory can optionally include a course={{subtable}, {of}, {waypoints}, {here}}, in the attack options table, if left out it will just fire it in a relative dogleg + straight line toward the target lat\lon specified. I say "in theory" because in testing BOL with a specific list of waypoints, it has never worked for me, my course gets assigned during the process but overwritten by the time it fires. I don't know if that's a bug, or if I'm doing something wrong.

Example with course that should work but doesn't at least with decoys:
local retval = ScenEdit_AttackContact(myunit.guid,'BOL', {latitude='N 65.19.14',longitude='E 19.55.43', mode=1,mount=3017,weapon=2442,qty=1, 
course={{latitude='N 64.48.00',longitude='E 5.57.43'},{latitude='N 64.28.00',longitude='E 14.58.17'}, {latitude='N 65.15.46',longitude='E 17.58.23'}} })
You can of course set the waypoints after the fact but you'll have to know the name\guid post fire somehow.

< Message edited by KnightHawk75 -- 5/16/2020 4:33:34 PM >

(in reply to KC45)
Post #: 3
RE: Launching MALD by AI - 5/16/2020 9:34:08 PM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
Just thinking before I throw a rack of ribs on the grill ... ideally this might be best handled via a SEAD mission but would take development time to provide designers the options needed. For now, lua code is the way to go. Decoys are emerging ... see my reference in the News sub forum yesterday re: lasers. Very interesting topic overall.

Kevin

_____________________________

“The study of history lies at the foundation of all sound military conclusions and practice.”
― Alfred Thayer Mahan


(in reply to KnightHawk75)
Post #: 4
RE: Launching MALD by AI - 5/17/2020 2:05:08 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
I don't think ScenEdit_AttackContact handles weapons from a loadout on an aircraft.
A course should be passed to the 'salvo'.

I'll have a look at what happens with aircraft and decoys.

_____________________________

Michael

(in reply to kevinkins)
Post #: 5
RE: Launching MALD by AI - 5/17/2020 9:13:31 PM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
Not sure why this is now buried as a tech support issue. Maybe a feature request or moved it into the lua forum. Interesting operational concepts like how to program the AI better are not tech support IMHO. The OP did not claim anything was broken nor could they get the software to run.

Kevin

_____________________________

“The study of history lies at the foundation of all sound military conclusions and practice.”
― Alfred Thayer Mahan


(in reply to michaelm75au)
Post #: 6
RE: Launching MALD by AI - 5/18/2020 2:39:16 AM   
KC45


Posts: 240
Joined: 11/23/2017
From: JPN
Status: offline
Thanks guys!

_____________________________

Steam CMANO Japanese Community(unofficial).

(in reply to kevinkins)
Post #: 7
RE: Launching MALD by AI - 5/18/2020 6:43:20 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline

quote:

ORIGINAL: kevinkins

Not sure why this is now buried as a tech support issue. Maybe a feature request or moved it into the lua forum. Interesting operational concepts like how to program the AI better are not tech support IMHO. The OP did not claim anything was broken nor could they get the software to run.

Kevin


I asked it to be put here.
AttackContact() should be able to use load-out to attack things, else it it limited to ships/subs/facilities or direct mounted weapons on aircraft.

_____________________________

Michael

(in reply to kevinkins)
Post #: 8
RE: Launching MALD by AI - 5/18/2020 10:29:20 AM   
KnightHawk75

 

Posts: 1450
Joined: 11/15/2018
Status: offline

quote:

ORIGINAL: michaelm75au

I don't think ScenEdit_AttackContact handles weapons from a loadout on an aircraft.
A course should be passed to the 'salvo'.

I'll have a look at what happens with aircraft and decoys.


Yeah which is why I throw vls mounts on aircraft to work around it (and sometimes other loadout accessibility issues). lol. Thanks for looking into making it work with aircraft\loadouts more naturally though.

As for the course, if it helps, I can see during the call the waypoints get validated and added to the list, and the list appears to get applied to the weapon, what happens after that I can't tell, just that they're gone by the time it launches in the above example. Tried mode=2 as well but it wouldn't fire when trying that as I recall.


(in reply to michaelm75au)
Post #: 9
RE: Launching MALD by AI - 5/18/2020 11:17:51 AM   
SeaQueen


Posts: 1451
Joined: 4/14/2007
From: Washington D.C.
Status: offline
Having a BOL launch function in LUA would make my life SO MUCH BETTER.

Not just with MALDs, either. You could do things like pre-emptively fire ARMs so that they arrive as the strikers arrive in the target area.

< Message edited by SeaQueen -- 5/18/2020 11:18:08 AM >

(in reply to KC45)
Post #: 10
RE: Launching MALD by AI - 5/18/2020 12:07:44 PM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
quote:

I asked it to be put here.
AttackContact() should be able to use load-out to attack things, else it it limited to ships/subs/facilities or direct mounted weapons on aircraft.


I see. Will play around with the code when available. Thanks.

_____________________________

“The study of history lies at the foundation of all sound military conclusions and practice.”
― Alfred Thayer Mahan


(in reply to KnightHawk75)
Post #: 11
RE: Launching MALD by AI - 5/20/2020 10:47:40 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
Setting a course on the BOL attack should work - it sets the plotted course before it fires off the salvo when I traced it. I did notice it ignoring my way-points if they were too far away based on the points it could reach.

_____________________________

Michael

(in reply to kevinkins)
Post #: 12
RE: Launching MALD by AI - 6/9/2020 3:50:46 AM   
Rory Noonan

 

Posts: 2816
Joined: 12/18/2014
From: Brooklyn, NY
Status: offline
Existing ticket updated.

0013938

_____________________________


(in reply to michaelm75au)
Post #: 13
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Logged] Launching MALD by AI Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.922