also fixed small exception when aborting the open file dialog which lead to " as filename
fixes#1305
(cherry picked from commit 752c91a721dba72564b3f0b7e630014756d9db70)
We'd only load unit data if a name lookup was done and missed it on a
type lookup. Ideally we wouldn't need to do a type lookup here until the
ground unit templates are reworked we still do.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1299
(cherry picked from commit d3d655da0716f37dcfd8bbcc9f901417dcb540e6)
I bumped the submitted 6.1 to 7.0 (which didn't exist when the files
were uploaded) because this campaign uses no scenery targets.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1318
(cherry picked from commit 099cbbdb6440897e409cd589075e49fa784d8820)
Only change from the uploaded files is that I increased the campaign
version to 7.0 since this doesn't use any scenery targets so has no work
to do for that.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1249
(cherry picked from commit ca7469b92ea00f578ef091744c11b6c445b3dbdf)
Transports and mod aircraft added where needed cleaned up various
duplicates in factions.
(cherry picked from commit dba70dc6d54d678c6d019fe15940c5fae70cd77d)
If these orders can't be fulfilled for the faction it will prevent the
faction from ordering any non-reserve aircraft since transports are
given priority after reserve missions, and they'll never be fulfillable.
As such, no non-reserve aircraft will ever be purchased for factions
without transport aircraft.
Factions without transport aircraft are screwed in other ways, but this
will fix their air planning for campaigns that aren't dependent on
airlift.
(cherry picked from commit e96210f48cd88fcdd9e33e077430653b56fd0941)
Mod selection is now done via checkbox in the new game wizard.
The MB-339 is being turned into a paid module, and the free mod no longer works, so it's been removed.
This is redundant because plan_mission already checks this.
This reverts commit 3338df9836878714f8b72aeb176bed16a33eb65b.
(cherry picked from commit d0745001094d01e1bb49cb7cb6ecdf11eac7e9f8)
Squadron.aircraft is of type AircraftType, while TRANSPORT_CAPABLE is
a list of pydcs DcsUnitTypes. As a result, the intersection was always
empty causing the function to always return 0.
This also adds max group sizes for aircraft that need it but don't
according to DCS. Only the first tanker or AEW&C unit in a group can be
contacted by radio.