31 Commits

Author SHA1 Message Date
Raffson
77b88de40e
Migrator adjustment for 'radio_presets' 2023-08-13 18:31:57 +02:00
Raffson
9dd76bdd37
Ignore tying issues in migrator 2023-07-09 21:39:43 +02:00
Raffson
2b5f6f7998
Migration changes for using sets instead of lists 2023-07-09 21:35:37 +02:00
Raffson
da10cc091c
Tweak 'release untasked aircraft' in migrator 2023-07-05 23:34:31 +02:00
Raffson
6ced738256
Reset auto-assignable mission types if liberation save 2023-07-02 21:14:20 +02:00
Raffson
a5083e3e1f
Add CHN in country_dict for migration 2023-07-02 00:47:57 +02:00
Raffson
f6f1d69048
Fix mypy's complaints 2023-07-01 17:20:02 +02:00
Raffson
3b745c43eb
Save-compat changes to allow loading Liberation saves
May be incomplete, some discrepancies in naming may still exist, but at least Kerbo's campaign can be loaded.
2023-07-01 17:08:12 +02:00
Raffson
768f2dbc57
Update control_points earlier in migrator 2023-06-25 01:17:05 +02:00
MetalStormGhost
208c517882 Roadbase support in the Migrator, OffMapSpawn
Added support in migrator.py to add the new ground spawn, helipad and roadbase attributes to control points. This time around, also supporting OffMapSpawns and other types of control point besides just Airfield & Fob.
2023-06-20 07:48:32 +02:00
MetalStormGhost
f970801243 Roadbase support in the Migrator
Added support in migrator.py to add the new ground spawn, helipad and roadbase attributes to control points.
2023-06-19 22:05:32 +02:00
MetalStormGhost
e273e93012
Roadbase and ground spawn support (#132)
* Roadbase and ground spawn support

Implemented support for roadbases and ground spawn slots at airfields and FOBs. The ground spawn slots can be inserted in campaigns by placing either an A-10A or an AJS37 at a runway or ramp. This will cause an invisible FARP, an ammo dump and a fuel dump to be placed (behind the slot in case of A-10A, to the side in case of AJS37) in the generated campaigns. The ground spawn slot can be used by human controlled aircraft in generated missions. Also allowed the use of the four-slot FARP and the single helipad in campaigns, in addition to the invisible FARP. The first waypoint of the placed aircraft will be the center of a Remove Statics trigger zone (which might or might not work in multiplayer due to a DCS limitation).

Also implemented three new options in settings:
 - AI fixed-wing aircraft can use roadbases / bases with only ground spawns
   - This setting will allow the AI to use the roadbases for flights and transfers. AI flights will air-start from these bases, since the AI in DCS is not currently able to take off from ground spawns.
 - Spawn trucks at ground spawns in airbases instead of FARP statics
 - Spawn trucks at ground spawns in roadbases instead of FARP statics
   - These settings will replace the FARP statics with refueler and ammo trucks at roadbases. Enabling them might have a negative performance impact.

* Modified calculate_parking_slots() so it now takes into account also helicopter slots on FARPs and also ground start slots (but only if the aircraft is flyable or the "AI fixed-wing aircraft can use roadbases / bases with only ground spawns" option is enabled in settings).

* Improved the way parking slots are communicated on the basemenu window.

* Refactored helipad and ground spawn appends to static methods _add_helipad and _add_ground_spawn in mizcampaignloader.py
Added missing changelog entries.
Fixed tgogenerator.py imports.
Cleaned up ParkingType() construction.

* Added test_control_point_parking for testing that the correct number of parking slots are returned for control point in test_controlpoint.py

* Added test_parking_type_from_squadron to test the correct ParkingType object is returned for a squadron of Viggens in test_controlpoint.py

* Added test_parking_type_from_aircraft to test the correct ParkingType object is returned for Viggen aircraft type in test_controlpoint.py

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2023-06-19 00:02:08 +03:00
Raffson
0de4b01917
Forgot to run local checks -_- 2023-06-15 04:26:25 +02:00
Raffson
91ee04bf2a
Fix save-compat issues 2023-06-15 03:11:12 +02:00
Raffson
45b8757593
Support for convoy "spawn-route" in campaign design
Resolves #91

'Assault On Damascus' was revamped using this new technique
2023-06-15 01:47:08 +02:00
Raffson
b8cb1a6273
Fix corruptions due to overpopulation 2023-05-28 15:17:40 +02:00
Raffson
1a5e31c01a
Migrate squadron countries 2023-05-20 01:41:37 +02:00
Raffson
f72f3316f4
Fix bug in migrator 2023-05-18 23:05:57 +02:00
Raffson
386844378e
More save-compatibility changes 2023-05-18 22:33:11 +02:00
Raffson
b750099b16
Add missing tasks in aircraft yamls 2023-05-18 13:14:22 +02:00
Raffson
f00a3fb1d2
pydcs update: refactored livery-scanner 2023-05-16 21:45:27 +02:00
Raffson
34645560bf
Migration changes 2023-05-16 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
bf23ee4e8f
Fix migrator issue in _update_packagewaypoints 2023-04-15 20:38:51 +02:00
Raffson
5b7ff8bdd6
Add fuel quantity selector to EditFlight's payload tab
Resolves #99
2023-04-10 17:11:30 +02: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
Raffson
8b802a9cbc
Fix issue in migrator when package has no flights
Would cause an exception because `PackageWaypoints.create(p, c)` would call `package.departure_closest_to_target()` on its turn which raises a runtime exception if no flights are present. Makes total sense when you think about it...

Fixes #66
2023-01-13 22:26:59 +01:00
Raffson
48e0d579cf
Add package frequency & show package info on kneeboard
Resolves #71
2023-01-13 22:26:57 +01:00
Raffson
2aed461b3a
Add custom name for packages in ATO overview
Resolves #55
2023-01-02 02:35:14 +01:00
Raffson
00ab0c4be2
Add "Instant Squadron Transfer" cheat option
Resolves #14
2022-12-27 21:51:11 +01:00
Raffson
5aed3fbb87
Add migrator
Attempts to fix incompatibilities in save files across builds. The idea is to try and handle the incompatibility as graceful as possible, and adding more "incompatibility fixes" in the future.
2022-11-19 22:47:33 +01:00