Commit Graph

4578 Commits

Author SHA1 Message Date
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
5a71806651 Add Sinai campaign: Exercise Quasar
Modified Starfire's 'Exercise Bright Star' campaign
2023-06-18 19:10:38 +02:00
Raffson
430d33c144 Add Mi-8 to Egypt's faction 2023-06-18 16:44:19 +02:00
Raffson
fa63beeb52 Add Gepard & Vulcan to Bluefor Modern 2023-06-18 12:37:40 +02:00
Raffson
e952e0b536 Pydcs fix for ACLS
Fix #147
2023-06-17 22:31:08 +02:00
Raffson
19a6eaeaa3 Yesterday's fix was bogus... 2023-06-17 21:50:00 +02:00
Raffson
5818367f2e Fine-tune SEAD search point 2023-06-17 21:28:33 +02:00
Raffson
d3069bdaad Bold font for waypoint table in kneeboard 2023-06-17 21:28:02 +02:00
Raffson
471654aa5e Forgot to make humvees CJFT blue for convoy spawns -_- 2023-06-17 14:40:34 +02:00
Raffson
56e712f948 Make 'exercise bright star' compatible 2023-06-17 14:31:57 +02:00
Raffson
74bc3b004b Rename beacons file 2023-06-17 14:30:54 +02:00
Dan Albert
6f1333d26a Test NavMeshLayer. 2023-06-17 13:57:08 +02:00
Dan Albert
42a0545630 Test FrontLinesLayer. 2023-06-17 13:57:07 +02:00
Starfire13
1c5f872b3c Add Sinai campaign: Exercise Bright Star. 2023-06-17 13:57:07 +02:00
Dan Albert
e4e7155f02 Partial tests for FrontLine.
We need to mock the backend to usefully test the contextmenu handler.
I'd like to finish all the low hanging fruit before going for that.
2023-06-17 13:56:55 +02:00
Raffson
c924130356 Apply mod-settings to faction before generating game 2023-06-17 04:40:10 +02:00
Raffson
095947333f Remove remnant from testing 2023-06-17 04:40:10 +02:00
Raffson
6356d0b3f5 Update changelog 2023-06-17 04:40:09 +02:00
Raffson
df5b5839e2 Overhauling convoy routes & spawns 2023-06-17 04:40:09 +02:00
M Chimiste
3abb9375fb Create Campaign Operation Desert Sabre (#146)
The very first Sinai campaign by Mr. Chimiste!
2023-06-16 23:41:52 +02:00
zhexu14
322b8245f7 Make waypoint altitudes editable. 2023-06-16 22:42:59 +02:00
Dan Albert
2286d155c4 Test FlightPlansLayer. 2023-06-16 22:42:58 +02:00
Dan Albert
7c1b642aa8 Test CullingExclusionZones. 2023-06-16 22:42:57 +02:00
Dan Albert
198f93fe4a Test ControlPointsLayer. 2023-06-16 22:42:56 +02:00
Dan Albert
ea25e2ceb8 Add tests for CombatLayer. 2023-06-16 22:42:56 +02:00
Dan Albert
453343849f Test Combat. 2023-06-16 22:42:55 +02:00
Dan Albert
cee9122680 Add tests for AirDefenseRangeLayer. 2023-06-16 22:42:55 +02:00
Raffson
ce3e358f8c Fix map objects not being registered when killed 2023-06-16 22:42:55 +02:00
Raffson
018a4b4718 Remove forgotten print-statement 2023-06-16 22:42:54 +02:00
Raffson
e677a1e910 Add EWR Jammer plugin 2023-06-16 22:42:53 +02:00
Raffson
b2fbcdd86a Add DCS Dismounts plugin 2023-06-16 11:32:26 +02:00
Nosajthedevil
1474dfd200 Update OV10A Weapons files 2023-06-15 15:27:53 +02:00
Nosajthedevil
3edb1b6c10 Added and updated weapons files.
Added or updated weapons files including 

The various Hellfire II iterations - this covers fallbacks to rockets
for all 3 Apache variants, the Supercobra, and the Kiowa.
This also adds the 184 Long and 131 pods. 
Lastly, this adds date and fallback information to the shrikes in
advance of the AGM-45B being added to the A-4E mod.
2023-06-15 15:25:44 +02:00
Raffson
0de4b01917 Forgot to run local checks -_- 2023-06-15 04:26:25 +02:00
Raffson
04876c8c66 Downgrade starlette back to 0.27 2023-06-15 04:22:16 +02:00
Raffson
8c29071d04 Fix AI RTB immediately with forced air-start 2023-06-15 03:49:32 +02:00
Raffson
91ee04bf2a Fix save-compat issues 2023-06-15 03:11:12 +02:00
Raffson
666f2908b7 Update dependencies 2023-06-15 01:54:47 +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
057ea58d8e Modifiers for ground unit transfer window 2023-06-14 03:44:03 +02:00
Raffson
ad227965ea Replace SEAD-Escort with SEAD for Naval TGOs
SEAD Escort is available by default
2023-06-13 17:46:16 +02:00
Raffson
2048910c78 Fine-tune Sinai landmap 2023-06-13 17:13:17 +02:00
Raffson
245bab57c2 Avoid moving empty squadrons if aircraft-type can't fit any slot 2023-06-13 13:30:32 +02:00
Raffson
ef63fe5b5c Renaming what's left in banners 2023-06-12 21:20:01 +02:00
Raffson
e2a14f861e No need for version bump 2023-06-12 20:59:15 +02:00
Dan Albert
2468b1c6d4 Fix Scenic Inland yaml, fixing NGW. 2023-06-12 20:59:15 +02:00
Dan Albert
b62b646e3b Make patch coverage task informational.
Not reasonable to require all PRs to avoid regressing coverage yet...
2023-06-12 20:59:15 +02:00
Dan Albert
5ab97561cc Update Fuzzle's campaigns.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2970.
2023-06-12 20:59:15 +02:00
Dan Albert
b45139bf02 Stop preloading images that are rarely used.
The aircraft banners are only used for the unit info window, and that's
not a normal part of gameplay. We spend a bit over 1.5 seconds
preloading this data at startup (about 25% of the non-game load startup
time). This data is only expensive to load in aggregate, and we never
need all of it. The unit info window is not noticeably slowed by this,
but startup is noticeably faster without it.
2023-06-12 20:59:14 +02:00