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)