Commit Graph

2924 Commits

Author SHA1 Message Date
RndName
f0476fcbb3 Fix AAA Flak generator using wrong index
- Fixes #1519 as the Opel Blitz unit generator was using the index without incrementing it
2021-08-08 13:20:26 +02:00
Dan Albert
263c1cc012 Remove abandoned campaigns.
(cherry picked from commit 07f8a203ea)
2021-08-05 19:33:12 -07:00
RndName
c06550ca64 tweak the airlift procurement
- only buy airlift capable aircraft if there is one friendly cp without a factory which can only be reached via airlift
- prevent that an airlift procurement gets fulfilled at a different cp than the requesting one. this ensures that the cp also has a factory to produce ground units which can then be transported
- fixes an infinite buy loop if the fulfilling cp has no factory and the requesting cp has no space for airlift
- have always 2 reserve transport planes at the biggest CP
2021-08-05 22:27:11 +02:00
Magnus Wolffelt
03471c6c13 Fix patrol_speed save compat for 4.1 (#1507)
* Fix patrol_speed save compat for 4.1

* Fix and simplify 4.1 compat fix
2021-08-05 12:19:59 +02:00
Khopa
d6c1456108 Campaign Update 8.0 : operation_dynamo.miz, updated mission targets ids
(cherry picked from commit f2608cecd5)
2021-08-04 23:35:41 -07:00
Khopa
11389f50c8 Campaign Update 8.0 : golan_heights_lite.miz, updated mission targets ids
(cherry picked from commit c95d5464d8)
2021-08-04 23:35:36 -07:00
Khopa
70ed11bf69 Campaign Update 8.0 : caen_to_evreux.miz, updated mission targets ids
(cherry picked from commit 0ac7466a81)
2021-08-04 23:35:35 -07:00
Dan Albert
26cfa4e30a Update Syria Full and Humble Helper campaigns.
https://github.com/dcs-liberation/dcs_liberation/issues/1494
https://github.com/dcs-liberation/dcs_liberation/issues/1497
(cherry picked from commit ff571db494)
2021-08-04 23:34:37 -07:00
Kangwook Lee
8282a95569 Wrap lines for NotesPage
(cherry picked from commit 8608b73009)
2021-08-04 23:28:07 -07:00
Dan Albert
283fc26385 Stop cluttering the kneeboard with empty notes.
(cherry picked from commit d11174da21)
2021-08-04 23:28:07 -07:00
Kangwook Lee
5729cc5f42 Fix text foreground color for dark kneeboard
(cherry picked from commit 77e62d5a54)
2021-08-04 23:13:18 -07:00
Magnus Wolffelt
3fadaa9a5a Update changelog for 4.x
BAI missions are actually planned at low altitude. The problem remaining is that they have join/hold/split waypoints, which makes the flight times _incredibly_ long for these slow movers.
2021-08-03 18:46:30 +02:00
Magnus Wolffelt
3de4feec7e Changelog updates for 4.x.
Regarding patrol speeds and helo fix.
2021-08-03 13:12:02 +02:00
Magnus Wolffelt
570108e2a7 Use more sensible patrol speeds for CAP, and fix is_helo (#1492)
* Use more sensible patrol speeds for CAP, and fix is_helo
2021-08-03 12:48:37 +02:00
Dan Albert
adc7a41941 Changelog updates for 4.x.
(cherry picked from commit bef015eb57)
2021-08-01 17:27:15 -07:00
Magnus Wolffelt
fcd8d6c76b Tweak max-speed-based patrol altitudes
(cherry picked from commit 6621421a6f)
2021-08-01 15:32:09 -07:00
Magnus Wolffelt
3dc71a558d Estimate preferred patrol altitude based on max speed
(cherry picked from commit a3e3e9046f)
2021-08-01 15:32:03 -07:00
RndName
ab1c682f9b fix for wrong patrol speed
(cherry picked from commit 04cdb6fbfc)
2021-08-01 15:31:57 -07:00
bgreman
4e489fe75d Update skynet plugin (#1478)
(cherry picked from commit 8c7e56a2bd)
2021-08-01 11:37:21 -04:00
RndName
5d8e0b3b1e improved the validation for planned transfers
- instead of only checking if the transfer destination was captured it now checks if there is a valid route between origin and destination. This also ensures that there will be a check if the current position or next_stop was captured and therefore the transfer should be disbanded.
- disband uncompletable transfer before planning or performing (also when user cheated a base capture)

(cherry picked from commit ac088ea692)
2021-07-31 15:01:20 -07:00
Mustang-25
28fbd448b0 Rebalanced Aircraft Planning Hierarchies
CAP List:
[+] Mig-21 #1372
[+] Su-34
[moved up] F-15C above the F-14 (probably contentious to some but IMO the AI never capitalizes on the AIM-54 range and the Eagle AI seems to do better in general)
[moved up] JF-17
[moved up] Gripen
[moved down] Su-33
[moved down] Su-27
[moved down] MiG-31
[moved down] MiG-25
[moved down] MiG-29G
[moved down] MiG-29A

* Downgraded MiGs and Sukhois that do not have Fox-3s due to this disadvantage. From personal experience, the 31s and 25s also won't use the longer range of their Fox-1s to warrant for a higher spot on the list.

CAS/BAI List:
[+] Su-33 #1367
[-] Su-24MR (dedicated recce platform, no AG munitions)
[moved up] Su-34
[moved down] Mig-19P
[moved down] UH-1

Strike List:
[-] Su-24MR (dedicated recce platform, no AG munitions)
[moved up] JF-17
[moved up] Harrier

Runway Attack List:
[+] Mirage 2000C

(cherry picked from commit 0d6f420f97)
2021-07-31 14:57:56 -07:00
Dan Albert
93d85830a9 Update USN 2005 faction.
https://github.com/dcs-liberation/dcs_liberation/issues/1427
(cherry picked from commit bef85963a6)
2021-07-31 14:47:41 -07:00
Mustang-25
7de399090b Replace TGP with SPJ for JF-17 CAP/SEAD.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1422.

(cherry picked from commit ee77516716)
2021-07-31 14:42:44 -07:00
Dan Albert
8a2a21bf11 Campaign updates from Starfire.
(cherry picked from commit 3be57efa97)
2021-07-31 14:40:56 -07:00
Dan Albert
62716f7b86 Ack new campaign version for unaffected maps.
(cherry picked from commit 981d8510c2)
2021-07-31 14:38:25 -07:00
Khopa
5febba9640 Added Tin Shield EWR support
(cherry picked from commit 32f05dccd9)
2021-07-31 14:27:22 -07:00
Khopa
7dea51321f Added NASAMS support
(cherry picked from commit 4aac2d2b7b)
2021-07-31 14:27:17 -07:00
Dan Albert
836c184241 Add ALIC codes for the tin shield and NASAMS.
https://github.com/dcs-liberation/dcs_liberation/issues/1448
(cherry picked from commit 971d7e730a)
2021-07-31 14:26:48 -07:00
Dan Albert
50ec5b2832 Update the F-16 DEAD loadout to use JSOWs.
https://github.com/dcs-liberation/dcs_liberation/issues/1448
(cherry picked from commit 06f8b9b817)
2021-07-31 14:26:35 -07:00
Dan Albert
08919d4b8e Work around pydcs bug.
https://github.com/pydcs/dcs/issues/175 causes setting the AI comm
frequency to raise an exception for aircraft without preset channel
support.

(cherry picked from commit 5d8f655243)
2021-07-31 14:24:47 -07:00
Dan Albert
c1bdf55ff3 Update pydcs to latest master.
https://github.com/dcs-liberation/dcs_liberation/issues/1448
(cherry picked from commit 0cb41469ab)
2021-07-31 13:58:15 -07:00
Dan Albert
eee62fe84a Update pydcs to latest master.
(cherry picked from commit 9f23cb35a9)
2021-07-31 13:58:03 -07:00
bgreman
8a23792ae1 Vendor ruler (#1476)
* Fixes ruler module integrity issues by bringing module into source

* Changing ruler stylesheet to vaguely match DCS theme in Liberation

* Changelog

(cherry picked from commit 119d4b9514)
2021-07-31 15:44:42 -04:00
bgreman
0332c32bb3 Updates gripen support fixes legacy DEAD loadouts 2021-07-31 12:15:54 -04:00
bgreman
9ed165b8bd Adds more details to frontline movement logging (#1465)
* adds more detailed logging for frontline movement

* Fixing attribute name

* Fixing if, adding else

(cherry picked from commit 58c96e1329)
2021-07-31 12:06:34 -04:00
RndName
ad8e70c250 fix generation of empty transfer during cp capture
when a cp capture happens and the next cp has pending unit deliveries then they will be redeployed to the newly captured cp. The redeploy was drecreasing the num of pending unit deliveries for the old cp but was not removing them completly from the dict when all were removed

(cherry picked from commit 67fa4a8910)
2021-07-30 16:47:44 -07:00
Mustang-25
e7e1e1cad4 Increment to Campaign v8.0
(cherry picked from commit 0117ab8aa4)
2021-07-30 16:37:28 -07:00
Mustang-25
c386ce8ea0 Increment to Campaign v8.0
(cherry picked from commit a5ade0c41a)
2021-07-30 16:37:13 -07:00
Mustang-25
a0574183d9 Increment to Campaign v8.0
(cherry picked from commit 4df12ae675)
2021-07-30 16:32:43 -07:00
Mustang-25
2749c050e7 Increment to Campaign v8.0
(cherry picked from commit 274a41f052)
2021-07-30 16:32:42 -07:00
Mustang-25
9267be5798 Increment to Campaign v8.0
(cherry picked from commit 3670c8f879)
2021-07-30 16:32:29 -07:00
Mustang-25
82a4d9194d Increment to Campaign v8.0
(cherry picked from commit e88bb442f3)
2021-07-30 16:32:15 -07:00
Dan Albert
339fa3d835 Remove the SA-10 from Syria 2011.
They didn't get this until a few years later. This was a stand-in for
the SA-5 that DCS doesn't have, but the SA-10 is so much more capable
that it's not a good replacement.

(cherry picked from commit 80bf3c97b2)
2021-07-24 15:11:10 -07:00
Dan Albert
c0a9eb3473 Bump campaign version to 8.0 for latest DCS.
Building IDs changed again. Ack the change in my two campaigns which
don't use these target types.

(cherry picked from commit edbd3de4a4)
2021-07-21 17:11:58 -07:00
Dan Albert
04b53fa23d Add decorator for tracking save compat.
Used to decorate functions or methods that have save compat code for a
given major version.

```
@has_save_compat_for(5)
def foo() -> None:
    ...
```

This function will raise an error at startup if it is decorated as
having save compat for a version other than the current major version of
the game. A new major version is the definition of a save compat break,
so keeping around the old compat code serves no purpose other than
hiding initialization bugs. The compat code and the decorator should be
removed in the branch raising the error.

(cherry picked from commit cd558daf5a)
2021-07-12 13:48:33 -07:00
Dan Albert
a22f1d8e63 Correct int/float confusion in Point APIs.
The heading and distance calculations always return floats.

(cherry picked from commit 6ce02282e7)
2021-07-11 14:34:43 -07:00
Dan Albert
5860518f92 Use Pillow types from typeshed.
(cherry picked from commit a19a0b6789)
2021-07-11 13:54:19 -07:00
Dan Albert
68473ae63a Update to latest pydcs.
This includes the basics that we need to get type checking for pydcs
calls.

Type checking has been disabled in a few monkey-patching cases. Patches
ought to be sent upstream (or in the case of dead unit tracking,
replaced with a better model).

(cherry picked from commit 9de08dc83f)
2021-07-11 13:38:54 -07:00
Dan Albert
1ea13954ec More adaptation for pydcs updates.
This is as much as we can do until pydcs actually adds the py.typed
file. Once that's added there are a few ugly monkey patching corners
that will just need `# type: ignore` for now, but we can't pre-add those
since we have mypy warning us about superfluous ignore comments.

(cherry picked from commit 96c7b87ac7)
2021-07-11 13:38:50 -07:00
Brock Greman
53a1c938c3 Fixing broken group generation.
(cherry picked from commit 469dd49def)
2021-07-11 13:38:41 -07:00