Allpayloads and squad IDs could be generated in an automatic way, but all the rest would require massive human input as DCG has to be fed with further data not found in the ini files (availability date, cruise speed, preferred flight altitude, etc).
What seems feasible is to auto-generate a complete list of
currently available planes (with their correct internal and skin folder names), as well as ground units, ships, and maps. These you could use as a reference when building your respective DCG database file, but you still should arrange and amend them manually.
One problem is that DCG uses some hard-coded patterns to identify special feature units. E.g. a ship not having 'CV' in its name won't be recognized as a carrier, etc, etc. Implementing a new unit in DCG always involves a lot of 'try and error' testing, and no automation is smart enough to do it for you.
BTW, the bigger the DCG database, the slower the mission generates. I guess a big enough database (covering all CUP units) would bring DCG on its knees.
Anyway, it would be great to have a script which parses the ini files and creates complete lists of planes and units in a DCG-friendly format. Where human input is needed is marked in red.
allpayloads:A_20G B 2x5004x300
A_20G B 2x5002x500
A5M4 D 1xdt
A6M2 D 1xdt
gunits:Vehicles.JapanCarsColumnC 2
Trains.USSR_FuelTrain/AA 1
gobjects:Armor.1-Coelian 2 0 0 0 0 0 0 Armor.1-Wirbelwind
Vehicles.GAZ67 1 0 0 0 0 0 0 None
armor:4-IS2 1 194401 194612 none 08/09
3-SU-76M 1 194208 194406 3-SU-85 01/02
class:A_20G A-20 G us 1 4 1 194212 194612 none A-20G A_20C 3000 Meters 360.00 kph Default 360.00 kph
A5M4 A5M4 Claude in 2 1 0 193902 194012 A6M2 A5M4 none 3500 Meters 300.00 kph Default 300.00 kph