Search found 200 matches

by Craigkn
Tue Jul 15, 2025 12:16 am
Forum: Mods and Scenarios
Topic: Battle of the Atlantic: 2028
Replies: 8
Views: 791

Re: Battle of the Atlantic: 2028

Don't sleep on the AEW&C aircraft as well. The Burkes seem to do better with some radar top cover - at least if they get CEC from a E-2D. Most of my playthroughs (from editor mode, to be fair), I think maybe one or two NATO-side ships were sunk with torpedoes. The scenario starts out an ASW exercise ...
by Craigkn
Sat Jul 12, 2025 7:15 pm
Forum: Command: Modern Operations series
Topic: What CMO scenarios lack
Replies: 25
Views: 1364

Re: What CMO scenarios lack

A good scenario should pose one or more dilemmas for the player to consider. If civilian sea or air traffic has an impact on those dilemmas, then I see the value in including them, but if not, its just additional burden on the players computer for no real gain in advancing the scenario’s plot.

CMO ...
by Craigkn
Sat Jul 12, 2025 1:35 am
Forum: Lua Legion
Topic: Listing aircraft at an airbase?
Replies: 3
Views: 250

Re: Listing aircraft at an airbase?

SOLVED. Despite what is displayed, the class value is held under "classname"

This code works as intended, displaying the class of the unit:

local carrierorairfield = ScenEdit_GetUnit({side="NATO", unitname="NAS Keflavik"})
for i = 1, #carrierorairfield.embarkedUnits.Aircraft do
local ...
by Craigkn
Sat Jul 12, 2025 1:30 am
Forum: Lua Legion
Topic: Listing aircraft at an airbase?
Replies: 3
Views: 250

Re: Listing aircraft at an airbase?

so weird. when I try to currentaircraft.class, it returns "null", but when I call table values like name, altitude, etc - it returns the actual value. Name works, and - in an ugly way - I can use that to derive the specific type of aircraft.

Why wont currentaircraft.class print?


local ...
by Craigkn
Sat Jul 12, 2025 1:06 am
Forum: Lua Legion
Topic: Listing aircraft at an airbase?
Replies: 3
Views: 250

Re: Listing aircraft at an airbase?

Boom. It works. This sample script just prints out the aircraft info, showing it iterate through the aircraft in the base:

local carrierorairfield = ScenEdit_GetUnit({side="NATO", unitname="NAS Keflavik"})
for i = 1, #carrierorairfield.embarkedUnits.Aircraft do
local currentaircraft = ScenEdit ...
by Craigkn
Sat Jul 12, 2025 1:01 am
Forum: Mods and Scenarios
Topic: Battle of the Atlantic: 2028
Replies: 8
Views: 791

Re: Battle of the Atlantic: 2028

Scenario is updated with three (3) fleet oilers under your command. I underestimated how thirsty the Burkes are. LUA script message informs the player of the ships.

RFA Tideforce (A139), in port, Azores
USNS John Lewis (T-AO-205), in port, Boston
USNS Harvy Milk (T-AO-206), attached to CTG ...
by Craigkn
Fri Jul 11, 2025 11:36 pm
Forum: Mods and Scenarios
Topic: Battle of the Atlantic: 2028
Replies: 8
Views: 791

Re: Battle of the Atlantic: 2028

Thank you for your feedback!

The fuel issue was an oversight - fuel should not be a factor, I will fix and upload a new version.

I watched "Grayhound" while writing this, and I liked the idea of the main convoy being outside player control, one that you may struggle to keep up with. This also ...
by Craigkn
Fri Jul 11, 2025 11:18 pm
Forum: Lua Legion
Topic: Listing aircraft at an airbase?
Replies: 3
Views: 250

Listing aircraft at an airbase?

I am working on a logistics model and I need to know which aircraft are at (or assigned) to a specific airbase, to properly route munitions where they need to go. The one "OOB" answer I saw points to a dead link from 2018.

I dont care if they are at the base, or just assigned to the base, but I ...
by Craigkn
Mon Jun 16, 2025 10:17 pm
Forum: Mods and Scenarios
Topic: Battle of the Atlantic: 2028
Replies: 8
Views: 791

Battle of the Atlantic: 2028

This is a very rough draft scenario that depicts a SLOC protection mission in the early days of a hypnotical war between NATO and Russia. The player assumes command of a multinational Combined Task force (CTG 447), tasked with protecting high-value military (TF-83.1) and energy (TF-83.2) convoys ...
by Craigkn
Sat May 24, 2025 3:42 pm
Forum: Lua Legion
Topic: LUA to change mk41 VLS loadout?
Replies: 2
Views: 439

LUA to change mk41 VLS loadout?

I tried searching, but did not find the magic terms - I am spawning an Arleigh Burke via LUA, and I want to change the Mk41 loadouts to add more SAM and less TLAM. Looking at the CMO LUA functions, its not obvious how to do this, does this functionality exist?

My Plan B for this is a bit ugly ...
by Craigkn
Tue May 20, 2025 12:19 pm
Forum: Lua Legion
Topic: Cookbook: DTG formatter, ACP126 message generator
Replies: 2
Views: 487

Cookbook: DTG formatter, ACP126 message generator

These two functions, written by Geimini, help you create realistic-ish in-game messages, using date time group (DTG) formatting and ACP126 message formats. First the script, then an example of how to call it. These scripts should be ran at startup.

Helper scripts:


-- Returns DTG in format ...
by Craigkn
Tue May 20, 2025 12:07 pm
Forum: Lua Legion
Topic: Cookbook: Spawn units, modify sensors, add aircraft, group units
Replies: 1
Views: 479

Cookbook: Spawn units, modify sensors, add aircraft, group units

I wanted to share working (as of build 1638) code that does the following:

Spawns several ships
Adds towed sonar arrays to several of them
Adds aircraft to one of the ships
Adds weapons to the magazine of some ships
Groups them into a group named "CTG 447.2 Sentinel Reach"

This is to ...
by Craigkn
Tue May 20, 2025 12:02 pm
Forum: Lua Legion
Topic: Data links and added sensors
Replies: 0
Views: 337

Data links and added sensors

Developing a NATO side, I have a number of UUV's who I added towed sonar arrays to. Do I need to add Link-16 or other data links for the contacts these UUV's detect to be used for targeting by other units (say a helo)? I know this is a basic question, but I am in LUA hell writing about a dozen ...
by Craigkn
Sat Apr 19, 2025 4:32 pm
Forum: Tech Support
Topic: Game start pop ups
Replies: 1
Views: 64

Game start pop ups

I am working on developing a scenario, and when I load my game, I see popups from prior messages (that fire well after game start), and for the life of me I cant find how to disable/remove them. I am using LUA scripts for in-game messages, and I wonder if some print() statements are to blame, but I ...
by Craigkn
Mon Jul 31, 2023 3:54 am
Forum: Command: Modern Operations series
Topic: Involvement of Australia based fighter ranged aircraft in SCS
Replies: 3
Views: 748

Re: Involvement of Australia based fighter ranged aircraft in SCS

I am working on a very similar scenario, here: https://www.matrixgames.com/forums/viewtopic.php?f=10233&t=396700

In this scenario, US and Allied air bases are all blasted; Indonesia and Malaysia declare neutrality and close their airspaces, and the whole strike package has to route via PNG to get ...
by Craigkn
Mon Jul 31, 2023 3:49 am
Forum: Mods and Scenarios
Topic: For Testing: US/China War 2025: Op Emerald Horizon
Replies: 7
Views: 1447

Re: For Testing: US/China War 2025: Op Emerald Horizon

Rapid Dragon seems really buggy. I dont have a good solution for this yet!
by Craigkn
Sat Jul 29, 2023 8:50 pm
Forum: Command: Modern Operations series
Topic: Intresting discussion on Chinese DF carrier killers. Thoughts?
Replies: 27
Views: 2208

Re: Intresting discussion on Chinese DF carrier killers. Thoughts?


To me, it depends on a lot on what's going on around it. PLARF might not waste $10M ASBMs on it if there are a couple CVNs in the area. I would think a couple of subs might be a better package for that.


Subs are slow. Chinese subs are slow, and loud. In real combat, I expect a CVBG to move very ...
by Craigkn
Thu Jul 20, 2023 4:28 am
Forum: Command: Modern Operations series
Topic: Using MALD-J or SPEAR-EW best practices discussion
Replies: 7
Views: 1140

Re: Using MALD-J or SPEAR-EW best practices discussion

Follow-up to my AAW intrest, I created a test scenario. Firing a few salvos towards an AAW patrol mission, the MALD-J's were type classified and marked hostile, and engaged using "Aircraft Unspecified" WRA. This seems a valid tactic for an AAW scenario, if you were looking for the adversary to ...
by Craigkn
Mon Jul 17, 2023 8:38 pm
Forum: Command: Modern Operations series
Topic: Cargo question
Replies: 2
Views: 852

Re: Cargo question

I cant find the thread, but I think that you cannot move cargo into a magazine? I use LUA for all of this anyway, havent touched the cargo system - but hopefully someone else can provide real help. Assuming a unit remains in area for x minutes trigger, this is how I do this:

A basic example of this ...
by Craigkn
Thu Jul 13, 2023 1:17 pm
Forum: Mods and Scenarios
Topic: For Testing: US/China War 2025: Philippine Sea Wolf Pack
Replies: 4
Views: 1004

Re: For Testing: US/China War 2025: Philippine Sea Wolf Pack

I'll circle back and improve the CVBG's positioning. I also wrote another scenario that comes after this, so I will also update Wolfpack to blend in with the newer scenario. Thank you for the feedback!

The broader picture in this conflict is that after the Fujian is lost, the PLAN pulls back its ...

Go to advanced search