Commit Graph

2902 Commits

Author SHA1 Message Date
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
Dan Albert
229a2cd7a4 Fix some typing in preparation for pydcs types.
Not complete, but progress.

(cherry picked from commit 53f6a0b32b)
2021-07-11 13:38:40 -07:00
Dan Albert
19980e5d6b Flesh out typing information, enforce.
(cherry picked from commit fb9a0fe833)
2021-07-07 17:42:21 -07:00
Dan Albert
85be9df481 Disallow partially specified generics.
(cherry picked from commit 69c3d41a8a)
2021-07-07 16:07:58 -07:00
Dan Albert
9bc8b51794 Type check the contents of untyped functions.
By default mypy doesn't type check the code within an untyped function.
This enables that and fixes typing errors to accomodate it.

This did uncover a very old bug:
https://github.com/dcs-liberation/dcs_liberation/issues/1417

(cherry picked from commit fc32b98341)
2021-07-07 16:07:57 -07:00
Dan Albert
e9bc3f3e69 Fix unreachable code issues, enable checking.
The loadout case actually could (and previously did) hide bugs from the
type checker, since mypy was smart enough to see that we were removing
None from the input it assumed that the member was non-optional, but
later modifications could cause null values, and since those came from
the UI mypy couldn't reason about this. This meant that mypy assumed the
type could not be optional and wouldn't check that case.

(cherry picked from commit 299ed88f09)
2021-07-07 16:07:56 -07:00
Dan Albert
3f5fdc580a Add (mostly disabled) mypy configs.
We're missing a lot of checking right now. Most of it requires
additional cleanup. For now I've enabled what I could and will follow up
to clean up and enable more checking.

(cherry picked from commit 29753a6aa9)
2021-07-07 16:07:54 -07:00
Dan Albert
f4e02954b7 Add documentation for turn processing.
(cherry picked from commit 7983cd8d62)
2021-07-07 14:45:05 -07:00
RndName
e88dfc53c2 correct display of turn statistics 2021-07-07 14:12:42 -07:00
RndName
2926431dc7 replan opfor mission on sell or buy of tgos
(cherry picked from commit 7229b886e0)
2021-07-07 14:12:34 -07:00
Dan Albert
70a0341675 Note fix for empty convoy groups.
(cherry picked from commit 8b70d2674f)
2021-07-05 15:54:47 -07:00
RndName
251c84019f remove completely destroyed units from the convoy
(cherry picked from commit 8ba27cdaea)
2021-07-05 15:54:46 -07:00
bgreman
8fae7decca Adds Marianas Islands support (#1406)
* Implements #1399

* Reverting accidental change in generate_landmap.py

* Changelog update

* Import beacon data for Marianas.

Co-authored-by: Dan Albert <dan@gingerhq.net>
(cherry picked from commit aa328d3ef7)
2021-07-03 14:52:21 -04:00
Dan Albert
3415525e2c Fixup None loadouts for aircraft with no loadouts.
Aircraft that have no loadouts at all (such as the IL-78M) will have no
loadouts and thus no values in the dropdown menu. If the player toggles
the custom layout box we reset the flight's loadout to the selected
loadout, and with no loadouts in the combo box that is None, and
`Flight.loadout` isn't supposed to be optional.

Check for that case in the loadout selector and replace with an empty
loadout if that happens.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1402

(cherry picked from commit 727facfb90)
2021-07-02 17:33:40 -07:00
Dan Albert
355ea9f9be Fix the legacy tanker.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1379

(cherry picked from commit 4add853473)
2021-07-02 17:18:31 -07:00
RndName
eff674c441 remove prices from sam generators
The prices are only estimations due to randomization. the real price will be only known when the generator was used and the final units are known

(cherry picked from commit b2db27f9aa)
2021-07-02 16:46:29 -07:00
RndName
9858e3e257 correct prices for ewr and sams
prices will now be calculated for the whole group by the generator by
looking up the price using the  GroundUnitType wrapper

fixes #1163

(cherry picked from commit 96be6c0efe)
2021-07-02 16:46:28 -07:00
Dan Albert
b206bcae56 Note the silkworm fix in the changelog.
(cherry picked from commit 3f42f1281d)
2021-07-02 16:28:35 -07:00
Mustang-25
3dbfa8ca60 Corrected Silkworm launcher name
(cherry picked from commit bab8384803)
2021-07-02 16:28:34 -07:00
Florian
779dc8ad70 Remove the randomness from SAM group size.
(cherry picked from commit 3f65928e9d)
2021-07-02 01:38:37 -07:00
Dan Albert
467de580c5 Bump version to 4.1.0. 2021-07-02 01:29:25 -07:00
Dan Albert
adbba788c6 4.0.1 -> 4.1.0
This includes new features now.

(cherry picked from commit 4e6659e7e8)
2021-07-02 01:29:09 -07:00
Chris Seagraves
99f359b46b Note TGO tooltip improvement in the changelog.
(cherry picked from commit 9e22d4b5df)
2021-07-02 01:27:07 -07:00