2243 Commits

Author SHA1 Message Date
Raffson
6965133a33
Filter "self" when ground units retreat from CP
Fixes an infinite loop in case a connection to the same CP is made in the template miz file of the campaign. It's basically wrong input, but suppose we'd have a use-case for it in the future, it would still make sense to have ground units retreat to a CP that's different from their origin...
2025-01-12 16:04:52 +01:00
Druss99
f07cc83c5b
CurrentHill Russian Military Assets Pack (#448) 2025-01-07 20:54:50 +01:00
Raffson
807bb16ddf
Save-compat improvements 2025-01-05 14:48:28 +01:00
Astro
4c9dba2fe5
Vietnam War Vessels Mod v0.9.0 integration (#435)
* vietnamwarvessels first batch

* Ship YAMLs

* aircraft yamls initial version, need more work

* initial helicopter yamls

* update aircraft yamls

* Added DDs Fletcher and Sullivans

* ship icons

* aircraft banners and icons

* no huts

* update py files to VWV v0.9.0

* update aircraft yamls, add vigilante

* added 2 ships for VWV v0.9.0

* mig-21mf yaml

* icons and banners additional units v0.9.0

* added VWV units to USA_1970 and Vietnam_1970 JSONs

* Revert "added VWV units to USA_1970 and Vietnam_1970 JSONs"

This reverts commit ed0b28dc36c0d9c1a45a10689a3c419bd23ff258.

* A-1H yaml update

* mig-17 yaml update

* update helicopter yamls

* extension init

* weapon injections

* icon filenames _24 added

* removed tasks 0 from yamls

* hh2d yaml fix

* added VWV v0.9.0 to factions USA and Vietnam

* added max_range to aircraft yamls

* housekeeping

* Flyable to False - not available in mod version

* minor edits

* ignore test campaign

* deleted tasks

* weapon luas blue air

* added task numbers from task.py

* weapon luas red air

* task id numbers in comment

* switched weapon lua from aim-9J to aim-9D

* removed test campaigns

* update payload luas with payload names from flighttype.py

* Changed AIM-9D to 9B, 9D does not work

* removed air assault task for HH-2D

* Cva_31 added to runway_is_operational()

* CVA-31 added to naval_units in faction jsons

* add strike and cas tasks to ra-5c

* correct typo

* Added Armed Recon as task and payload to most a/c

* ignore pre-commit-config.yaml

* pre-commit-config

* black reformat controlpoint.py

* Added tasks to Vigilante (next to Recon) containing attack subtasks, which allow it to be scheduled for missions

* added ships to UNITS_WITH_RADAR

* remove pre-commit-config from gitignore

* added red aircraft to nva_1970 faction

* fixed black's complaint (two empty lines, should be one)
2025-01-05 13:50:01 +01:00
Druss99
e93ebbe78c
add chinese asset pack to radar db (#445) 2025-01-04 17:52:35 +00:00
Druss99
bc157630e9
China military assets support (#440) 2025-01-03 19:19:10 +01:00
Eclipse/Druss99
dec57fccf9 add vertical takeoff and landing option 2025-01-02 03:24:01 +01:00
Druss99
dd408f392b
Fix airwing config not properly saving or loading (#437)
* fix airwing config not properly saving or loading

* add helper message to save function

* bugfixes

* remove unnecessary import used during testing

* yet another forgotten import

* change raise error to log warning
2025-01-01 15:56:08 +01:00
Raffson
164873d3b1
Fix planning error in CAP-builder if no enemy airfields left 2024-12-31 20:11:18 +01:00
Raffson
7ea144e7c7
Fix save-compatibility issue 2024-12-31 19:36:13 +01:00
Druss99
0d04e0c72e
Faction editor update (#434)
Resolves #166 

* init faction editor

* update persistency

* minor fixes

* typing smh

* small fixes

* forgot the changelog -_-
2024-12-31 00:24:12 +01:00
Raffson
f36526b5de
Fix mismatch between terrain names
Pydcs & Retribution don't always match up...
2024-12-28 20:46:41 +01:00
Raffson
592b1a7833
Don't allow carrier's path over land in UI 2024-12-28 01:06:08 +01:00
Raffson
cf38113cde
Only remove landmap before saving and immediately restore 2024-12-28 00:32:32 +01:00
Raffson
f2eec530db
Load landmap data on the fly
Avoids saving unnecessary data to the save-file
2024-12-27 23:32:21 +01:00
Raffson
9c50c062e9
Support for Iraq 2024-12-27 23:30:57 +01:00
Raffson
d1b484f560
Support for auto-fog
implemented as a setting...
2024-12-26 02:51:58 +01:00
Raffson
3ef6ae20c7
Support for Bandit's cloud presets mod (v15) 2024-12-26 01:35:30 +01:00
Raffson
a9e784c0e3
Regroup settings per page in code 2024-12-25 23:40:06 +01:00
Raffson
ea09b6be32
Have BARCAP/TARCAP engage anti-ship/cruise missiles 2024-12-24 06:43:52 +01:00
Raffson
881228d273
Potentially useful method for Doctrine class... 2024-12-24 06:35:10 +01:00
Raffson
c75bf23701
Small cleanup 2024-12-24 06:35:10 +01:00
Raffson
020281bf80
Fine-tuning recovery tankers 2024-12-24 06:35:09 +01:00
Raffson
ef77637c9a
Refactor patrol_duration for refueling flight-plans 2024-12-24 06:34:46 +01:00
Raffson
15e6f81bb5
Reference primary flight's RTB time for Escort's split wpt 2024-12-24 06:34:46 +01:00
Raffson
8b03bc496d
Move tanker patrol duration setting to doctrine page 2024-12-24 06:34:46 +01:00
Raffson
add81472c6
Schedule 2 simultaneous BARCAPs over carriers 2024-12-24 06:34:45 +01:00
Raffson
0e1f2e4185
Configurable BARCAP patrol duration in settings 2024-12-24 06:34:13 +01:00
Raffson
1a628888f7
AEWC optimizations
- setting for on-station time
- always include CVN carriers as targets
- autoplanner adjustment for continuous coverage
2024-12-24 06:34:12 +01:00
Raffson
75c29dd907
Always plan & plan more BARCAP for carriers 2024-12-24 06:15:59 +01:00
Raffson
f1dc431d2f
Fix scheduling issue for recovery tankers 2024-12-24 06:15:59 +01:00
Raffson
db9cf441fb
Avoid autoplanner planning AirAssault against carriers 2024-12-24 06:15:58 +01:00
Raffson
a06e9d0ec7
Plan more ANTI-SHIP against ship-groups with air-defences 2024-12-24 06:15:58 +01:00
Druss99
dd7e4c908e
Recovery tanker support (#429)
* fix conflict

* squash bugs and reuse patrol layout

* fix tanker tacan and formatting

* fix unlimited fuel option

* update pretense for tanker changes

* reuse refueling flight plan and bugfix for sunken carrier

changelog

* remove unitmap dependency

* formatting and more unit map removal

* more formatting

* typing and black

* keep tanker out of clouds

* fix if there are no clouds

* better cloud handling

* groundwork for recovery task

* remove changes to game/commander

* Finishing up recovery tankers

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2024-12-23 04:39:10 +00:00
Raffson
a4671571bc
Fix stupid mistake w.r.t. SC deck-crew sync -_- 2024-12-22 03:19:13 +01:00
Raffson
5470cb416c
Sync SC deck-crew option to miz' options 2024-12-21 19:07:05 +01:00
Druss99
6d0dbd4d1c
Bugfix if settings directory doesn't exist (#432)
* bugfix if settings directory doesnt exist

* Create directories in persistency

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2024-12-21 16:44:31 +00:00
Druss99
266e69a6ce
Default settings support (#428) 2024-12-18 13:47:05 +01:00
Raffson
e02698d8a8
Autoplan Air-to-Air Escorts for AWACS & Tankers 2024-12-18 00:47:56 +01:00
Raffson
caf624832f
Small refactor 2024-12-16 19:59:49 +01:00
Raffson
cc90627ee5
Support for supercarrier deck-crew 2024-12-16 19:59:49 +01:00
Raffson
64d60e5ccf
Datalink support + pydcs update
Support for 2.9.10.4160, though without Iraq, but finally there's some basic support for datalink...
2024-12-16 03:08:40 +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