Carrier Script Test - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 06-22-2018, 05:10 AM   #1
Wrench
Member
 
Join Date: Feb 2015
Posts: 607
Default Carrier Script Test

Hey all.
Thanks to some encouragement on a Discord server, I've decided to post a script/mission I've been working on.
This actually started life a few months ago for the Kuznetsov of all things.

What is it?
This is a script, embedded in a mission, which will tell an Aircraft Carrier to turn into the wind and do its best to maintain 25-30 knots windspeed over the deck.
It will take the landing deck angle into account as well, so pilots will have a near zero cross-wind component. Works with multiple carriers, and multiple Coalitions.

What's in the mission?
A Group-specific F10 menu system
-To get BRC for carriers
-To override Carrier Return Script
-Is Coalition-specific (Can't control the other coalition's carriers)

A Coalition-specific Tanker Script which will keep spawned tankers near the carrier.

Several FA-18C flights to choose from,
A flight of infinitely respawning drone aircraft to shoot down,
A spawnable AWACS,
Spawnable fighters,
A small carrier group to add SAM protection,
A Shore-Based Patriot site nearby.

The drones will despawn and will not respawn while the fighters are alive.
They will continue to respawn once all fighters are shot down.


Version 1.0 video is Live!


A few notes:
This script has not been rigorously tested, and you will almost certainly find bugs. A lot of them are probably due to limitations of DCS that I'm not aware of.

The script and mission are free to use, edit, etc. but if you repost a modified version of the mission, or a mission using the script, I'd ask you credit me. (I'm not a professional coder so this took a lot of work for me)

The carrier will maintain at least 5 knots or it will endlessly circle.

There is a bit of documentation in the form of a commented section in the LUA file, which you can find built inside the mission.
.miz files are really just .zip archives if you weren't aware.

Hopefully, this will make it a bit easier for you to setup carrier missions, and practice landing.

*****UPDATE 10/8/2018*****
New setup video in second post.
Hopefully, it's a little clearer. I kinda bounce around a bit, but it should help.

*****UPDATE 11/1/2018*****
Due to the number of questions I field on this script, I've decided to add a channel to my "Wrench' Nuts & Bolts" Discord channel.
https://discord.gg/czgYQa2

See you guys there!

*****UPDATE 28/1/2019*****
Added hotfix 1.2.1- corrects MP F10 menu issue.
Thanks to Boomer for helping me ID the problem.

*****UPDATE 14/4/2019*****
Version 2.0a uploaded!
Complete rewrite, many bugs fixed(?)
Attached Files
File Type: miz FA-18C Carrier Practice2_Public_Release_candidate_0.1.miz (78.0 KB, 100 views)
File Type: miz FA-18C Carrier Practice2_Public_Release_candidate_0.2.miz (77.9 KB, 63 views)
File Type: miz FA-18C Carrier Practice2_Public_Release_candidate_0.3.miz (78.3 KB, 81 views)
File Type: miz FA-18C Carrier Practice2_Public_Release_candidate_0.6.miz (78.9 KB, 87 views)
File Type: miz FA-18C Carrier Practice2_Public_Release_candidate_0.7.miz (78.8 KB, 67 views)
File Type: miz FA-18C Carrier Practice2_Public_Release_candidate_0.8.miz (79.7 KB, 149 views)
File Type: miz FA-18C Carrier Practice2_Public_Release_candidate_0.9.miz (80.9 KB, 98 views)
File Type: miz FA-18C Carrier Practice_1.0.miz (82.4 KB, 85 views)
File Type: miz FA-18C Carrier Practice_Hotfix_1.0.1.miz (81.8 KB, 106 views)
File Type: lua Carrier Script 1.0.1.lua (16.1 KB, 451 views)
File Type: miz FA-18C Carrier Practice_1.1.miz (83.2 KB, 70 views)
File Type: miz FA-18C Carrier Practice_1.1.1.miz (85.4 KB, 240 views)
File Type: lua Carrier Script 1.2.lua (26.2 KB, 362 views)
File Type: lua WrenchFunctions.lua (10.9 KB, 384 views)
File Type: lua Carrier Script 1.2.1.lua (26.2 KB, 368 views)
File Type: miz Carrier Script 2.0a.miz (87.4 KB, 141 views)
File Type: lua Carrier Script 2.0.lua (20.9 KB, 367 views)

Last edited by Wrench; 04-14-2019 at 10:10 PM.
Wrench is offline   Reply With Quote
Old 06-22-2018, 05:16 AM   #2
Wrench
Member
 
Join Date: Feb 2015
Posts: 607
Default

Version 0.2 uploaded.
added BRC to F10
Removed unnecessary 'dist' argument

Version 0.3 Uploaded
Added TACAN bug workaround- acts autonomously
Matched script and Mission naming convention
Renamed function "get_wind" to "wrench_get_wind"


Version 0.6 Uploaded
Removed 'dist' argument
Changed trigger system to dynamic variable system, so multiple carriers can be used.
Added Manual Override
Made menus Coalition Specific
Video was for version 0.5(superseded) but version 0.6 is the same with the only change being the F10 menu is now restricted by Coalition.


Version 0.7 Uploaded
Removed extraneous comments
Added stop menu option
Added Query Menu option

Version 0.8 Uploaded
Adds Time-based option
Adds Tanker Script


Version 0.9 uploaded
Added Time-Based Option
Fixed Tanker stops tanking bug
Tanker now spawns at the ramp on the carrier.
Changed vectormath for tanker's route
Changed LARC to time in Minutes
**Note no workaround has yet been found for the tanker using flyover points. The script still works, but it will be more difficult to stay connected.
This behavior is visible in the 0.8 video above.

Version 1.0 Uploaded
More tweaks to tanker script
f10 menus and messages are now Group-Specific
Various other tweaks.
Video in the first post.


HOTFIX 1.0.1 uploaded.
Fixed crash when unit/group deleted in ME
Updated shore detection to work on all maps
Various small updates/tweaks

New setup video (for clarity):


Version 1.1 uploaded.
Added carrier speed function. Will have the carrier slow down while turning.
Removed a bunch of pos1=carrier:getpos and made that global. "Wrench.Carrier[unit1..'position']"
moved tanker f10 inside of carrier, as each carrier has its own tankers
put all f10 in submenus.
fixed tanker fuel query
tanker fuel query now outputs x.x thousand.
Added get BR to carrier
Added Bulls and coordinates for carrier
Added get TACAN for carrier (uses WP 0)
Added get TACAN for Tankers


Version 1.1.1 Added.
Corrected Typos
Corrected Carrier return behavior
Carrier should now always make left-hand turns
Added official Tarawa/Destroyer support
Script will automatically check if the Carrier is the Stennis or the Kuznetsov, and will angle the deck as appropriate.

Version 1.2 Added.
Corrected some more typos
Reworked tanker script

Added Wrench Functions.lua to first post, by request.
This version has been updated for my personal use, and some may find it useful.

Hotfix 1.2.1 Added.
Fix for F10 menu issues in MP.

Version 2.0a Added
Complete rewrite
Function names have changed, check the documentation at the top of the script file.

Last edited by Wrench; 04-14-2019 at 10:11 PM.
Wrench is offline   Reply With Quote
Old 06-22-2018, 04:56 PM   #3
neofightr
Member
 
Join Date: Jul 2017
Posts: 229
Default

Outstanding work! Looking forward to playing with this.
neofightr is offline   Reply With Quote
Old 06-22-2018, 06:48 PM   #4
Shogun0
Member
 
Join Date: Jan 2016
Posts: 102
Default

Good!

Couple questions! First caveat, I watched most of the video, but may have missed some things.

Also, I am not at my DCS PC. So I haven't been able to download the miz file yet.

1) Right now, TACAN has a pretty well known issue. For some reason on the carrier, it will die after an amount of time. The workaround we have is to add additional TACAN activation triggers along the pre-plotted route (headwind). Is there a way to have these dynamic waypoints all include the TACAN triggers. Is it somewhere in the script we can add the TACAN triggers to these as well?


2) Is there a way to make a message to all regarding carrier heading? If the heading changes, we would want to know not only is it turning, but what the new BRC is going to be.


I have been learning quite a bit of MOOSE, but haven't had a chance to delve too much into MIST.

Thanks for the work and the great video. Appreciate it.
__________________
VFA-25 Fist of the Fleet


Virtual Carrier Strike Group One | Discord

Last edited by BIGNEWY; 06-22-2018 at 08:12 PM. Reason: 1.1 profanity.
Shogun0 is offline   Reply With Quote
Old 06-22-2018, 06:55 PM   #5
Wrench
Member
 
Join Date: Feb 2015
Posts: 607
Default

Wasn't aware of the TACAN bug. That should be pretty easy to add.
I've been giving some thought to BRC information, the problem is I can't add anything to the Carrier's comms menu, so it would have to be in the F10 menu. But it shouldn't be a problem to add.
Wrench is offline   Reply With Quote
Old 06-22-2018, 07:54 PM   #6
Shogun0
Member
 
Join Date: Jan 2016
Posts: 102
Default

Quote:
Originally Posted by Wrench View Post
Wasn't aware of the TACAN bug. That should be pretty easy to add.
I've been giving some thought to BRC information, the problem is I can't add anything to the Carrier's comms menu, so it would have to be in the F10 menu. But it shouldn't be a problem to add.
Thanks for the reply!

This is the thread about the TACAN issue folks have been seeing, with the workaround:

https://forums.eagle.ru/showthread.php?t=210937
__________________
VFA-25 Fist of the Fleet


Virtual Carrier Strike Group One | Discord
Shogun0 is offline   Reply With Quote
Old 06-22-2018, 11:45 PM   #7
Wrench
Member
 
Join Date: Feb 2015
Posts: 607
Default

Check OP for Update.
Wrench is offline   Reply With Quote
Old 06-23-2018, 06:37 PM   #8
MikiBzh
Junior Member
 
Join Date: Dec 2008
Posts: 43
Default

Thank you very much for this one !
Working well.


Time for dynamic weather now


I've got one question : is there a way to have this for multiple carrier ? Working well, apart BRC fonction (F10 radio).
MikiBzh is offline   Reply With Quote
Old 06-24-2018, 07:47 AM   #9
Wrench
Member
 
Join Date: Feb 2015
Posts: 607
Default

It should work with multiple Carriers, actually. To include the BRC. I'm not sure how the carriers returning part of it will work though, I hadn't really written it for that.

It would be possible though. I just need to set it up to use a dynamic variable instead of the static "carrierreturning".
Wrench is offline   Reply With Quote
Old 06-24-2018, 01:54 PM   #10
Yoda967
Member
 
Yoda967's Avatar
 
Join Date: May 2018
Location: London, UK
Posts: 199
Default

These days, carriers don't conduct flight operations in formation. As you pointed out in your video, Wrench, dynamic weather conditions will drive the carrier to make course corrections to achieve the best winds across the deck, so they tend to keep the carriers in their own operating areas and at least ten miles away from each other.

My question...inspired by MikiBzh...is there a way to have this for multiple carriers maneuvering independently?
__________________
Very Respectfully,
Kurt "Yoda" Kalbfleisch
London

Last edited by Yoda967; 06-24-2018 at 08:05 PM.
Yoda967 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 10:45 AM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.