Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Convert airfields and ports multi-unit to singe-unit(saving loadout and missions))

 
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 >> Mods and Scenarios >> Lua Legion >> Convert airfields and ports multi-unit to singe-unit(saving loadout and missions)) Page: [1]
Login
Message << Older Topic   Newer Topic >>
Convert airfields and ports multi-unit to singe-unit(sa... - 12/29/2021 9:07:04 PM   
DmitriyBlade

 

Posts: 21
Joined: 12/20/2021
From: Russia
Status: offline
Nothing found on google

Anyone have LUA script
which converts
each airbase and port facility to single unit?
(saving units and their missions accordingly)


< Message edited by DmitriyBlade -- 12/29/2021 9:11:55 PM >
Post #: 1
RE: Convert airfields and ports multi-unit to singe-uni... - 1/1/2022 11:15:45 PM   
LettuceTurnipTheBeet

 

Posts: 7
Joined: 12/18/2021
Status: offline
Here is a somewhat naive script that kinda does what you asked for. However, a multi-component airfield AFAIK may have any number of runways and other elements which can not always be accurately represented by the selection of single-unit variants in the DB. Therefore, this script simply adds a generic 2600m airstrip anywhere. If you want more accurate representations you can write some extra code that extracts the length of a given runway to select a comparable single-unit equivalent from the DB instead. The script also doesn't take into account any aircraft that might be flying during conversion, but I think in most cases the game will take care of that and select a suitable new base for them.

Attachment (1)

< Message edited by LettuceTurnipTheBeet -- 1/1/2022 11:28:33 PM >

(in reply to DmitriyBlade)
Post #: 2
RE: Convert airfields and ports multi-unit to singe-uni... - 1/3/2022 6:55:22 PM   
LettuceTurnipTheBeet

 

Posts: 7
Joined: 12/18/2021
Status: offline
[UPDATE] Fixed an issue where it couldn't handle missing loadouts.

Attachment (1)

(in reply to LettuceTurnipTheBeet)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Convert airfields and ports multi-unit to singe-unit(saving loadout and missions)) 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.734