815 Commits

Author SHA1 Message Date
Dan Albert
e95a6bf759
Support replacing squadrons in-place. 2023-05-14 17:37:53 +02:00
Dan Albert
03c48376c4
Disallow squadrons from disabling mission types.
After this change, players will always have the final say in what
missions a squadron can be assigned to. Squadrons are not able to
influence the default auto-assignable missions either because that
property is always overridden by the campaign's air wing configuration
(the primary and secondary task properties). The `mission-types` field
of the squadron definition has been removed since it is no longer
capable of influencing anything. I haven't bothered cleaning up the now
useless data in all the existing squadrons though.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2785.
2023-05-14 17:18:55 +02:00
Raffson
b8e2ae9bb7
Fix copy-paste error 2023-05-14 16:07:11 +02:00
Dan Albert
0b6575ca97
Use task priorities from aircraft yamls.
Preferred aircraft per task are now determined by a ranking of weights
stored in the aircraft yaml files. To aid in visualizing the priorities
across aircraft, Liberation can be run with the argument
dump-task-priorities to dump a yaml file in Saved
Games/DCS/Liberation/Debug/priorities.yaml, which will show each task
along with priority sorted aircraft and their weights.

The current weights in the data were exported from the existing lists,
where each position from the bottom of the list was worth 10 (to allow
some games for less shuffling later).

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2809.
2023-05-14 14:50:30 +02:00
zhexu14
065f90ea98
Reset flight's flight plan builder when changing task type.
The mechanism for how this bug arises is that the *WaypointGenerator*
uses the *FlightWaypoint.waypoint_type* to decide whether to generate
the waypoint in the .miz file using a *DeadIngressBuilder* or a
*SeadIngressBuilder*. This *waypoint_type* is set by
*ato.flightplans.<sead|dead>.Builder*, which is set when *ato.flight* is
initialised in the *Flight._flight_plan_builder* member variable based
on *Flight.flight_type*. When *Flight.flight_type* is updated when the
flight is changed from SEAD->DEAD, *Flight._flight_plan_builder* is not
updated in the development build, resulting in it continuing to generate
SEAD waypoints.

This PR adds *set_flight_type()* which sets the *flight_type* property
and updates *Flight._flight_plan_builder* and uses this function when
converting flight types. Ideally, *flight_type* should be made private
and only accessed through getter/setter functions that encapsulate this
behavior, but that would mess up any existing liberation save files.

This PR was tested by:
1. Opening the save file from Issue 2779 in the development build
2. Clicking "Take Off" and confirming that the Weapon Release Type is
"Guided" at the Ingress Waypoint as described in the issue.
3. Opening the save file from Issue 2779 in this PR
4. Converting the SEAD2DEAD flight from DEAD back to SEAD, and then from
SEAD to DEAD
5. Clicking "Take Off" and confirming in the mission editor that the
SEAD2DEAD flight has Weapon Release Type set to "Auto" at the Ingress
Waypoint.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2779.
2023-05-07 21:19:53 +02:00
Pande4360
b36e7ea750
Support for SW mod v2.55 (#116) 2023-05-04 21:45:26 +02:00
Raffson
b4b19d3ad5
Avoid claiming unused aircraft
Probably the final Fix #97
Unused aircraft (assigned upon takeoff) would get claimed but since it's not possible to delete those flights after aborting, these flights wouldn't get released anymore. This should fix that issue, including a migrator change to correct the number of claimed aircraft per squadron.
2023-05-01 18:12:17 +02:00
Raffson
6be517ad3e
Add A-7E Corsair II mod
Banner, icon, payloads & export by Adecarcer

Create A-7E.lua

Co-Authored-By: Antonio <54774215+Adecarcer@users.noreply.github.com>
2023-04-23 18:50:04 +02:00
Raffson
5b7ff8bdd6
Add fuel quantity selector to EditFlight's payload tab
Resolves #99
2023-04-10 17:11:30 +02:00
Raffson
efd2c40cfc
Avoid generating/planning flights without an operational runway 2023-04-10 14:38:06 +02:00
Raffson
3f509a876e
#110 Ability to load/save settings
Also includes support for remaining enum/timedelta settings through the yaml file.
- timedelta's in minutes
- enum's should be written out: enumType.enumValue
2023-04-09 22:03:08 +02:00
Raffson
5916ed43d2
Allow definition of settings in campaign's yaml file
Resolves #92
2023-04-08 19:51:38 +02:00
Raffson
7a0ccd0076
Update JAS-39 2023-04-02 22:39:33 +02:00
Raffson
a04196b5be
Update Sufa to v3.6 2023-04-01 23:27:43 +02:00
Raffson
0c6c578e35
Filter units in deepcopy of faction instead 2023-03-18 21:29:35 +01:00
Raffson
e08f134c32
Cleanup unused imports 2023-03-18 21:20:46 +01:00
Raffson
918903f831
Fix plugins not loading properly after restart of app 2023-03-18 00:52:11 +01:00
MetalStormGhost
e2797fd796
F/A-18E/F/G Super Hornet mod support v2.1 (#84)
* Don't generate runway data for heliports.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2710.

* Remove dead code.

* Implemented support for Chiller Juice Studios F/A-18E/F/G Super Hornet mod

The Chiller Juice Studios Super Hornet mod works like this: it changes the stock F/A-18C Hornet into F/A-18E/F/G Super Hornet / Growler. The exact variant is selected with argument 999 in the livery description.lua, which is why I chose to add the three variants in the FA-18C_hornet.yaml. This way, we can use the squadrons mechanism in Liberation to select the appropriate variant by specifying the correct livery for the squadron.

Current properties injected are wingspan / width and the custom ordnance added by the mod.

Added F/A-18E/F/G banner by Schmokedpancake and F/A-18F icon.

Resolves https://github.com/dcs-liberation/dcs_liberation/issues/2681

* Added a separate loadout file for the Chiller Juice Studios F/A-18E/F/G Super Hornet mod. Currently only replaces the FPU-8A fuel tanks with FPU-12s.

* Added the possibility to use the AI variant of the F/A-18C in campaigns, allowing different loadouts and in the future, the Super Hornet mod alongside legacy Hornets in the same campaign.

* Updated Chiller Juice Studios F/A-18E/F/G Super Hornet mod support to version 2.0. Removed the 1.x version property and pylon injection since they are no longer necessary, since 2.0 adds the Super Hornet variants as separate aircraft. For the same reason, removed the AI-only F/A-18C from the faction files (still retained the aircraft yaml, loadout files and icon/banner in case someone still wants to use it).

Includes F/A-18E/F/G banner by Schmokedpancake, loadouts by @sgtfuzzle17 and F/A-18E/F icons.

* Added Super Hornet, Growler squadrons and Growler banner by @sgtfuzzle17
The squadrons include the model of the airframe in their name, so they can be referenced directly from campaign yaml files without the risk of conflicting with the same squadron of a different era, flying a different airframe.

Also updated the E and G model icons.

Resolves #77

* Fixed a bug with the EA-18G banner not being visible in Retribution. Also added the Super Hornet variants to factions bluefor_modern and Israel-USN_2005_Allied_Sword.

* Corrected the descriptions for tandem-seat Super Hornet variants.

* Updated Chiller Juice Studios F/A-18E/F/G Super Hornet mod support to version 2.1

* Anti-ship loadouts are now named properly.

* Update changelog.md

* Update QNewGameWizard.py

---------

Co-authored-by: Dan Albert <dan@gingerhq.net>
Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2023-03-12 19:17:29 +00:00
MetalStormGhost
e827d6d1d0
Swedish Military Assets Pack v1.10 support (#90)
* Added a pydcs extension for Swedish Military Assets for DCS by Currenthill v1.10 (2022-11-01). Also added shipmod decorator for the ships added in the mod and remove_ship function in faction.py

* Added unit yamls for Swedish Military Assets for DCS by Currenthill v1.10 (2022-11-01)

* Added missing RBS-15 group yaml and Ag 90 Sniper Team unit yaml.

* Fixed swedishmilitaryassetspack imports.

* Renamed some unit yamls for Swedish Military Assets pack.

* Encoded LvKv9040.yaml in UTF-8.

* Encoded Grkpbv90.yaml in UTF-8.

* Encoded BV410*.yaml in UTF-8.

* Encoded CV9040.yaml in UTF-8.

* Fixed Strv103 yaml syntax.

* Encoded Strv2000.yaml in UTF-8.

* Renamed some unit yamls for Swedish Military Assets pack.

* Renamed BV410 air-defence units.

* Added Swedish short-range air defence groups.

* Added Swedish medium- and long-range air defence groups (LvS-103 batteries).

* Added icons for some Swedish Military Assets units.

* Added faction files for:
sweden_1997
sweden_2020
2023-03-12 18:31:14 +01:00
Raffson
eed514a432
Fix mistake during integration of Splash Damage 2.0
Lua plugin settings would always load the default values instead
2023-03-11 21:25:51 +01:00
Raffson
5b19e0fdcd
formatting 2023-03-05 23:44:47 +01:00
Raffson
6713ee155c
Migrate to Splash Damage v2.0 by RotorOps
Partial fix #64
2023-03-04 23:01:39 +01:00
Raffson
f670ccd8a6
Initialize campaign values with first campaign in the list 2023-02-26 00:04:36 +01:00
Raffson
60de35ddf3
Re-create game-loop in case of abort
Fixes #96
2023-02-25 17:50:53 +01:00
Raffson
a4f5c290b5
Remove unused method 2023-02-18 21:07:27 +01:00
MetalStormGhost
04971f3f65
F-4 mod support update to v2.8.1.01 Standalone (#87)
Updated the VSN F-4 mod support to v2.8.1.01 Standalone + 29Jan23 Patch, which adds the land based F-4C variant. Includes banner by Datoneslav (used with permission) and the official VSN logo (also used with permission).
2023-02-15 20:24:24 +01:00
Raffson
d9967bda8f
Add logic for specification of ground_units in campaign yaml file
Resolves #22
2023-02-12 21:36:43 +01:00
Raffson
4f9a250a9e
Cleanup print statement 2023-02-12 16:18:38 +01:00
Raffson
75bc521fa5
Fixing Radios for Mirage-F1EE, Mi-8MT & Mi-24P 2023-02-11 21:52:51 +01:00
Raffson
b25f484ef3
More renaming of Liberation into Retribution 2023-02-05 12:05:27 +01:00
Raffson
d410f9d3c4
Formatting... 2023-02-02 21:41:01 +01:00
MetalStormGhost
2fb5f2b738 Updated the IDF Mods Project F-16I mod support to version 3.2 2023-01-26 15:37:48 +01:00
Raffson
0da431fe33
Cleanup print statement 2023-01-20 20:41:47 +01:00
Raffson
88f984b0a8
Configurable RF/TCN/ICLS/LINK4 with UI feedback
Resolves #70

Freq/Channel will turn orange when double booked.
Freq will turn red if GUARD freq was assigned.
2023-01-17 18:32:20 +01:00
MetalStormGhost
3313535b27
Add fallback terrain icons in campaign selector (#80) 2023-01-14 14:33:05 +00:00
Raffson
0a3a56d4bc
Propagate update_flight event in '_instant_relocate' instead
Dropped the ball here, and pretty hard too...
2023-01-13 22:26:59 +01:00
Raffson
7bae6cd562
Add package frequency
Part of #70
2023-01-13 22:26:58 +01:00
Raffson
e8151678dd
Fix UI bug in CreateFlight window
Pilot's player checkbox would be enabled for non-flyable aircraft if the initially selected aircraft that was flyable.
2023-01-13 22:26:58 +01:00
Raffson
2aed461b3a
Add custom name for packages in ATO overview
Resolves #55
2023-01-02 02:35:14 +01:00
Raffson
f4d75a2c6f
Allow edit of flight's custom name 2023-01-02 02:26:12 +01:00
Raffson
ee1fc53dd3
Add button to rename pilots in air wing 2023-01-01 00:46:31 +01:00
Raffson
192741af36
Make units selectable in faction overview during campaign gen
Resolves #35
Resolves #40
2022-12-31 23:27:11 +01:00
Raffson
39426dde45
Option to define culling exclusion radius in campaign yaml file 2022-12-27 22:29:08 +01:00
Raffson
d26fc84316
Automatically set 'herculescargo' plugin if present in air wing 2022-12-27 21:51:13 +01:00
Raffson
6966b14c6b
Minor bugfix in squadron transfer destination combobox 2022-12-27 21:51:12 +01:00
Raffson
00ab0c4be2
Add "Instant Squadron Transfer" cheat option
Resolves #14
2022-12-27 21:51:11 +01:00
MetalStormGhost
cdd72820b4
A-4E-C mod support v2.1.0 (#43)
* Updated a4ec.py to Community A-4E-C mod version 2.1.0

* Updated changelog.

Updated A-4E mod version in QNewGameWizard.py (#44)

Co-Authored-By: Raffson <Raffson@users.noreply.github.com>
2022-12-19 23:07:35 +01:00
Raffson
e9c1e7b770
Allow external links in Campaign/Faction description 2022-12-10 17:28:01 +01:00
MetalStormGhost
48e5e7ca95
F-100 Super Sabre mod version 2.7.18.30765 patch 20.10.22 support (#32)
Also makes F-105G "SEAD Escort" capabale
2022-12-10 17:24:22 +01:00
Raffson
6c673697f0
Fix livery overrides 2022-12-04 13:40:11 +01:00