Forums » Air Combat & Civil Aviation » DCS World » DCS: A-10C Warthog » How many weapon loadouts can you get? Active Topics You are not logged in. [Log In] [Register User]
Topic Options
Rate This Topic
Hop to:
#3551946 - 04/06/12 03:31 PM How many weapon loadouts can you get?
- Ice Offline
Hotshot

Registered: 06/23/05
Posts: 7419
Loc: Philippines / North East UK
I was just wondering if anyone can have more than 10 choices when calling for a rearm. What I want is for example I call in a re-arm, then select PGMs, then have more than 10 different loadouts available to me. At the moment it seems like all the other loadouts just do not appear in the radio menu.
_________________________
- Ice


Top
#3552096 - 04/06/12 07:59 PM Re: How many weapon loadouts can you get? [Re: - Ice]
Wrecking Crew Offline
Smooth Operator
Senior Member

Registered: 03/04/07
Posts: 3208
Loc: Colorado
Yes, looked into that, too, there were a few sources for 'custom loadouts' but after spending about 3 hours on it I gave it up. Also am pretty sure that if you have a custom loadout, your Client loadout can't be used in mp.


When building a mission, the initial loadouts can be configured to any acceptable combo, by aircraft. (You knew that - Ice.)


Yes that's all you will see unless you can get a custom loadout to work - my recollection is that even then only ten were displayed.

WC

Top

#3552119 - 04/06/12 09:08 PM Re: How many weapon loadouts can you get? [Re: - Ice]
Frederf Offline
Member

Registered: 10/26/09
Posts: 594
I've made my own. You can have 90 entries. They are all custom categories with custom names, etc. If you look at the unitPayloads.lua you can figure it out. I cleared out the default ones and added in 90 blanks in 9 categories to start. Then I used the in-game editor to flesh them out. Then I went back into notepad2 to fill their names, change category labels, etc.

It absolutely works in multiplayer. I often change away from the usual default 6xMav 4xSFW loadouts to more believable ones. You can even manage real life features that aren't possible in the in-game editor such as a bomb on pylon 6. I still wish that there was a 2x GBU-12 on TER weapon ID.

Just be aware that there are two unitPayloads.lua files. One is the mission editor version and the other is what populates the rearm menu. I find it easiest to edit one and then overwrite. Also it's easier to manage edits if you cut the list down to just "A-10C" entries then you can plug it back into the all-aircraft one. And make backups! You will screw something up!

Top
#3552275 - 04/07/12 09:16 AM Re: How many weapon loadouts can you get? [Re: - Ice]
- Ice Offline
Hotshot

Registered: 06/23/05
Posts: 7419
Loc: Philippines / North East UK
Glad to know it is possible Frederf. Any chance you can whip up a "how-to" for us?
_________________________
- Ice

Top
#3553524 - 04/09/12 08:16 PM Re: How many weapon loadouts can you get? [Re: - Ice]
Frederf Offline
Member

Registered: 10/26/09
Posts: 594
C:\Users\<username>\Saved Games\DCS Warthog\MissionEditor
Backup unitPayloads.lua. Make a new blank txt file of that name and open it up in notePad2. Go ahead and copy/paste the following.

local unitPayloads = {}
unitPayloads["A-10C"] = {}
unitPayloads["A-10C"]["tasks"] = {}
unitPayloads["A-10C"]["tasks"][36] = {}
unitPayloads["A-10C"]["tasks"][31] = {}
unitPayloads["A-10C"]["tasks"][31][1] = {}
unitPayloads["A-10C"]["tasks"][31][1]["name"] = "01"
unitPayloads["A-10C"]["tasks"][31][1]["category"] = "Category 1"

unitPayloads["A-10C"]["tasks"][31][2] = {}
unitPayloads["A-10C"]["tasks"][31][2]["name"] = "02"
unitPayloads["A-10C"]["tasks"][31][2]["category"] = "Category 1"
unitPayloads["A-10C"]["tasks"][31][3] = {}
unitPayloads["A-10C"]["tasks"][31][3]["name"] = "03"
unitPayloads["A-10C"]["tasks"][31][3]["category"] = "Category 1"
unitPayloads["A-10C"]["tasks"][32] = {}
unitPayloads["A-10C"]["tasks"][34] = {}
unitPayloads["A-10C"]["tasks"][16] = {}
unitPayloads["A-10C"]["name"] = "A-10C"
unitPayloads["A-10C"]["payloads"] = {}
unitPayloads["A-10C"]["payloads"][1] = unitPayloads["A-10C"]["tasks"][31][1]
unitPayloads["A-10C"]["payloads"][2] = unitPayloads["A-10C"]["tasks"][31][2]
unitPayloads["A-10C"]["payloads"][3] = unitPayloads["A-10C"]["tasks"][31][3]
return unitPayloads

Now repeat this to a total of 90 entries. The names of the payloads go as 02, 03, 04, etc. The category names can go "Category 1" for the first 10, then "Category 2" for 11-20, and so on. Highlighting a section of text and using "find/replace in selection" is an amazing time saver. One can copy 10-19 and replace "1 with "2 and suddenly you've made 20-29. In no time you've made 01-90 in Category 1 through Category 9.

Now open up the DCS ME, add a new A-10C to the map task CAS. In the payloads you should see 90 payloads all empty, named 01 through 90. With this you can make all your payloads. If you want something in a slot that isn't allowed by the editor (say MK-84 on station 6), put it on station 5 and then edit the Lua file manually. You'll be changing the "num" value from 5 to 6 on the 3-line set for the "pylon" entry. 1 is the left wingtip, 11 is the right. Most practical loads can be done entirely in the graphical editor.

Depending on which you find easier/faster you can edit most things in either notepad2 or the DCS ME. I find mass naming much faster in notepad.

I use a modified realistic naming scheme. Mavericks are AGM-65s which abbreviate to A65. 2A65 for a pair, 4A65 for four, 6A65 for six. Because I always run an IIR/EO mix during day and two IIRs at night I can tell my maverick combination by my nighttime equipment. I fly LAU-131 HE (L131) during the day and SUU-25 LUU-2s at night (U25). 2xGBU-12s is 2G12. 4xGBU-38 is 4G38. CBU-103 is C03. Sometimes I cheat and add an extra letter for extra info like A65K or M82A. A loadout might be named "13 2A65 2G12 L131" which would indicate it's the #13 payload, 2 mavericks (one D one H), 2 GBU-12s, and 7 HE rockets. AIM-9s, jammer, and TGP are assumed for most loads so I don't include it in the name. I have a few categories of like loads that all are missing various self-defense equipment for low-threat environments.

Don't feel you have to fill all 10 slots in each category. A little future expansion growth is nice. They are nice placeholders empty. I tried to structure them in terms of high or low altitude or stand off or close attack. 90 seems like a lot of slots but you can't do every single combination possible. As you fly you will find which ones you prefer and notice times when you'd want something you haven't configured.

When you're all done take the "short" list that is only "A-10C" entries and plug it back into the full list of all aircraft payloads. This keeps the per-defined payloads for making missions with AI aircraft. The "local unitPayloads = {}" will already be at the top and the "return" lines at the bottom so just insert the "A-10C" lines. Copy this new file containing the custom A-10C entries in the midst of all other aircraft and overwrite the LUA of the same name at the \A-10C\MissionEditor\data\scripts\ location. This is the location that is read by the sim when you bring up the rearm menu.

Now when you open up the rearm radio menu you should see "Category 1" and "Category 2" with "01"-"10" and "11-20" inside and so on.


Edited by Frederf (04/09/12 08:30 PM)

Top
#3554264 - 04/11/12 06:04 AM Re: How many weapon loadouts can you get? [Re: - Ice]
- Ice Offline
Hotshot

Registered: 06/23/05
Posts: 7419
Loc: Philippines / North East UK
Wow, thanks for that Frederf! Gimme a few days to sort this out and try it...
_________________________
- Ice

Top
Topic Options
Rate This Topic
Hop to:

Moderator:  EinsteinEP, Panther, RacerGT 
 

Forum Use Agreement | Privacy Statement
Copyright 1997-2013, SimHQ Inc. All Rights Reserved.