Commit Graph

2205 Commits

Author SHA1 Message Date
Astro-739
88a6f58d1f update py files to VWV v0.9.0 2024-12-21 14:01:41 +01:00
Astro-739
5b156fc1c4 no huts 2024-12-15 20:30:37 +01:00
Astro-739
a9312ac3e3 Added DDs Fletcher and Sullivans 2024-12-15 11:55:59 +01:00
Astro-739
80a896b0ca vietnamwarvessels first batch 2024-12-08 22:52:41 +01:00
Raffson
98f0c93012 Avoid recreating flight-plan when syncing package wpts 2024-11-24 17:44:01 +01:00
Raffson
94baaecf8c Fix TOT not changing after abort 2024-11-16 19:31:36 +01:00
Dan Albert
057f3fe53b Don't allow changing TOT for started packages. 2024-11-16 19:28:23 +01:00
Dan Albert
ce4c73098d Add locking to some UI actions.
This is by no means complete. The bugs that this solves were already in
6.x, but we'd hidden the speed controls for the sim in that release, and
have always said that anything done after pressing "go" the first time
is undefined behavior. This is the first step on making those mid-sim
actions behave correctly.

UI actions such as creating a new package need to be executed between
ticks of the sim. We can either do this synchronously by blocking the UI
until the tick is done executing, acquiring a lock on the sim, executing
the action, then releasing the lock; or asynchronously by queueing
events and letting the sim execute them when it completes the current
tick (or instantly if the sim is paused).

Anything that comes from the new UI (currently just the map) must be
asynchronous because it goes through the REST API, but for the old UI
it's simpler (and because the lock will only be acquired as quickly as
the user can act, shouldn't slow anything down) to do this
synchronously, since it's difficult to use coroutines in Qt.

https://github.com/dcs-liberation/dcs_liberation/issues/1680
2024-11-16 19:09:42 +01:00
Raffson
08e55d9e43 Avoid autoplanning ArmedRecon against naval CPs 2024-11-15 18:53:43 +01:00
Raffson
84c4b992e0 Improve AGL to AMSL transition for naval waypoints
Some maps have inaccurate bounds for sea-zones, thus waypoints that end up being too close to the shore may keep using AGL which could still lead to trouble. Adding a condition to check whether a point is "not on land" will likely fix this issue for maps that have gaps between sea-zones and inclusion-zones around the shoreline...
2024-11-09 14:49:38 +01:00
Raffson
b5225f03a1 Fix #414
Since there's little difference between the two generators for `generate_plugin_data`, we'll have the pretense lua-generator call its super...
2024-11-08 21:02:08 +01:00
Chris Ella
add26ab18e fix: wrong runway repair message for player/enemy
fix #412
2024-11-05 12:41:04 +01:00
Cedric Menard
2091fdbb27 Add Mbot's Call Artillery Script plugin (#410)
* Add Mbot's Call Artillery Script plugin

* Applied PR comments

* Fix for wrong indentation, remove unused client skill check, added changelog item
2024-11-03 13:02:36 +00:00
Raffson
e959933861 Save-compat fix for Syria 2024-11-01 03:47:01 +01:00
Raffson
eaa73c84ae Set preferred red-alert state for frontline units 2024-10-31 14:01:48 +01:00
Raffson
3147ae6e5c Save-compat fix for South Atlantic 2024-10-31 00:55:58 +01:00
Raffson
e85d1e8ca2 AGL to AMSL option for naval waypoints
Introduce an option to switch waypoints to AMSL when waypoint is above water. DCS references the bottom of the sea when using AGL, which causes issues for helicopters when they try to fly at altitudes that are lower that the sea bottom, giving them a tendency to fly into the water...
2024-10-30 01:11:53 +01:00
Raffson
6a5097659b Sync package wpts when primary flight's wpts change
Also recreates all other flight-plans in the package to ensure JOIN, INGRESS & SPLIT are updated
2024-10-28 23:47:26 +01:00
Raffson
b124c6cc61 Fix nav_to for AirAssault
Depending on whether it's a Hercules with paratroopers or a helicopter, ingress' position is going to be different
2024-10-28 20:23:22 +01:00
Raffson
4de7b1c923 Force utf8 encoding in TXT-briefing
Fix #408
2024-10-28 12:50:01 +01:00
Raffson
5fdf38c663 Format with updated black 2024-10-12 17:33:01 +02:00
Raffson
ff2ec07d83 Move constants from laypout.py to theathergroup.py
Should fix the "FIXED_POS_ARG not defined" error
2024-10-12 16:35:04 +02:00
Raffson
4aacc68f4a Include layouts & groups from Saved Games folder
Partial #244
2024-10-06 22:33:01 +02:00
Raffson
4c3b16e1da Support for fixed position & heading in layouts 2024-10-06 22:27:51 +02:00
Raffson
0770fafbcb Save-compat fix for Syria airport rename
Amman is now Marka...
2024-10-06 12:41:51 +02:00
M Chimiste
169ef26329 Set Pretense Player Flight Waypoints to CPs (#385) 2024-10-06 01:12:02 +02:00
Raffson
59f98a4c16 Make combat landing configurable 2024-10-05 23:04:06 +02:00
Raffson
9bd6c6c404 Overload takeoff_time for PatrollingFlightPlan
Fixes bug where TARCAP get screwed TOTs due to a SEAD Sweep flight in a CAS package
2024-10-05 22:40:07 +02:00
Raffson
44658f8eec Skip EscortType for SEAD Sweep planned during CAS
Seems like the EscortType would cause the flight to be pruned if no IADS threats surround the CAS zone, but we'd like to plan it regardless to tackle air defenses along the front-line
2024-09-22 22:47:26 +02:00
Raffson
87ca233f20 Only pass air-defenses to IpSolver when creating package waypoints
Aims to solve an issue where waypoints would completely disregard air defenses and overfly them due to interference from airbase threat ranges...
2024-09-21 22:57:08 +02:00
Raffson
126d70792f Another attempt to improve DEAD autoplanner 2024-09-21 22:57:07 +02:00
Raffson
9d2345ea3a Fix weird spacing in Campaign Management settings 2024-09-21 20:12:41 +02:00
Raffson
7a84181bbc Add UI-zone for SEAD Sweep 2024-09-21 19:30:21 +02:00
Raffson
a7d091c142 Fine-tune attempt wrt DEAD autoplanning
A small note, this also affects the aggressiveness wrt SHORAD & AAA
2024-09-15 22:08:58 +02:00
Raffson
be554c54b3 Plan IADS degradation as last
The previous steps identify IADS locations, so moving this "up the list" has detrimental effects...
2024-09-15 22:05:43 +02:00
Raffson
49211dae4f Autoplanner support for ArmedRecon 2024-09-15 22:05:42 +02:00
Raffson
73d2f8fda1 Change ArmedRecon's task-priority when determining primary task 2024-09-15 22:05:42 +02:00
Raffson
2cba1f4124 Account for aircaft's task-priorities in AirWing.best_squadrons_for 2024-09-15 22:05:42 +02:00
Raffson
f5bb653ad8 Rework (OPFOR) autoplanner aggressiveness setting
Also introduces a setting for OWNFOR
2024-09-15 22:05:42 +02:00
Raffson
d35962b784 AirAssault autoplanner support for non-frontline CPs
Aims to solve the issue where AirAssault won't plan against CPs that don't have an active frontline, including isolated CPs.
2024-09-15 22:05:41 +02:00
Raffson
f63939ce3c Include isolated points in objectivefinder 2024-09-15 22:05:41 +02:00
Raffson
7e8cbe0de2 Fix incorrect strike target location for TheaterUnit 2024-09-14 16:37:10 +02:00
Starfire13
8a47dce4b5 Update max frontline units description (#399) 2024-09-09 21:10:02 +02:00
Raffson
242d1a14a7 Limit/Suppress AI radio callouts for player flights 2024-09-07 21:04:49 +02:00
Raffson
aa26a2fa79 Avoid restoring old AircraftType data
This solves the bug where the default_livery would get overwritten with whatever value was already present from data that's loaded from the last campaign, which was usually set to None...
Possibly this also solves the bug where Armed Recon is suddenly not available anymore, because most likely the tasking was being overwritten as well...
2024-08-25 15:20:16 +02:00
Raffson
fd42b03d78 Log error if beacon data can't be found
This would prevent mission generation otherwise...
2024-08-24 20:22:14 +02:00
Raffson
9b857d7b0e Cope with mismatch in folder-/file-name for Sinai wrt beacons 2024-08-23 19:09:29 +02:00
Raffson
171f0722dc Fix bug in default squadron assigner/loader
The root cause of the issue are lines like "if aircraft in faction.all_aircrafts" that weren't working as intended, i.e. the condition would always fail. By implementing the __eq__ method we fix this issue, effectively making the default squadron assigner make use of squadrons instead of simply skipping them.
2024-08-18 18:19:58 +02:00
Raffson
ea9c459942 Disable Nevatim/Ramon airbase hack for inoperable slots 2024-08-16 12:57:25 +02:00
Raffson
86a93efc71 Support for CH-47F except banner & payloads 2024-08-16 02:41:21 +02:00