Dan Albert
9de08dc83f
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).
2021-07-11 13:37:17 -07:00
Dan Albert
96c7b87ac7
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.
2021-07-09 16:35:03 -07:00
Brock Greman
469dd49def
Fixing broken group generation.
2021-07-09 12:35:32 -07:00
Dan Albert
53f6a0b32b
Fix some typing in preparation for pydcs types.
...
Not complete, but progress.
2021-07-08 23:23:05 -07:00
Dan Albert
fb9a0fe833
Flesh out typing information, enforce.
2021-07-07 17:41:29 -07:00
Dan Albert
69c3d41a8a
Disallow partially specified generics.
2021-07-07 16:01:20 -07:00
Dan Albert
fc32b98341
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
2021-07-07 15:47:19 -07:00
Dan Albert
299ed88f09
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.
2021-07-07 15:17:05 -07:00
Dan Albert
29753a6aa9
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.
2021-07-07 15:17:05 -07:00
Dan Albert
7983cd8d62
Add documentation for turn processing.
2021-07-07 14:44:38 -07:00
RndName
05fab1f79d
correct display of turn statistics
2021-07-07 14:12:20 -07:00
RndName
7229b886e0
replan opfor mission on sell or buy of tgos
2021-07-07 14:12:20 -07:00
Dan Albert
8b70d2674f
Note fix for empty convoy groups.
2021-07-05 15:54:23 -07:00
RndName
8ba27cdaea
remove completely destroyed units from the convoy
2021-07-05 15:51:34 -07:00
Khopa
1c2411a0fc
Added a basic campaign on Mariana Islands theater to try it out.
2021-07-04 19:35:36 +02:00
Khopa
ec88d07ef1
Corrected some bugs preventing marianas campaigns from running
2021-07-04 19:34:58 +02:00
bgreman
aa328d3ef7
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>
2021-07-03 14:51:26 -04:00
Dan Albert
727facfb90
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
2021-07-02 17:33:24 -07:00
Dan Albert
4add853473
Fix the legacy tanker.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1379
2021-07-02 17:18:21 -07:00
RndName
b2db27f9aa
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
2021-07-02 16:46:16 -07:00
RndName
96be6c0efe
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
2021-07-02 16:46:16 -07:00
Dan Albert
3f42f1281d
Note the silkworm fix in the changelog.
2021-07-02 16:28:06 -07:00
Mustang-25
bab8384803
Corrected Silkworm launcher name
2021-07-02 16:26:47 -07:00
Florian
3f65928e9d
Remove the randomness from SAM group size.
2021-07-02 01:38:27 -07:00
Dan Albert
4e6659e7e8
4.0.1 -> 4.1.0
...
This includes new features now.
2021-07-02 01:27:51 -07:00
Chris Seagraves
9e22d4b5df
Note TGO tooltip improvement in the changelog.
2021-07-02 01:26:55 -07:00
RndName
357361de3d
fixed lua data generation
2021-07-02 01:25:03 -07:00
RndName
de443fa3f0
reworked the skynet group name generation
...
- added information about the role of the aa site
- moved handling of ground name from tgo to the sam generator to make the tgo cleaner
- adjusted the skynet-config lua to the changes
2021-07-02 01:25:03 -07:00
Dan Albert
20839853b7
Minor formatting fix for the changelog.
2021-07-01 20:07:28 -07:00
Chris Seagraves
bc2539b566
Fix for crash when clear weather.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1394
2021-07-01 20:07:01 -07:00
Dan Albert
c89416702d
Revert "Revert "Add Cloud Base Altitude to Weather Display ( #1371 )""
...
This reverts commit b2dd8c68e1aa7cb9e009777cc6e6a06272496dca.
2021-07-01 20:07:01 -07:00
Dan Albert
b2dd8c68e1
Revert "Add Cloud Base Altitude to Weather Display ( #1371 )"
...
Reverting until
https://github.com/dcs-liberation/dcs_liberation/issues/1394 is
resovled.
This reverts commit f80696b7244d2eace20111dacdcb149cb4747055.
2021-07-01 20:00:08 -07:00
Dan Albert
2ef2eafdd3
Remove debug cruft.
...
We don't need to print the description of every unit on startup.
2021-07-01 19:37:08 -07:00
Schneefl0cke
568655d503
Add incomes for WW2 villages and camps.
2021-07-01 17:04:03 -07:00
bgreman
9bd6f9ef47
Addresses #478 to clean up the angle summing functionality. ( #1386 )
2021-06-30 23:58:20 -04:00
bgreman
c8e5cefd36
Increasing time JTAC radio messages stay on the UI. ( #1369 )
...
- Target lost or killed: 10s -> 20s
- New target : 10s -> 30s
- Request JTAC Status: 25s -> 60s
2021-06-30 23:55:37 -04:00
bgreman
7ba4077f9f
Fixes #240 by making statistics windows axis labels integers ( #1370 )
2021-06-30 23:50:02 -04:00
Mustang-25
151f8bf329
Update TGP Restriction Dates
...
TGP dates to more accurately reflect IRL IOC dates.
2021-06-30 19:17:14 -07:00
Chris Seagraves
e94d48c265
Notes to kneeboard ( #1375 )
...
Adds global-level kneeboard notes. Explicit save compatability with 4.0.0
2021-06-30 18:07:53 -04:00
Fryderyk Wysocki
2a5c523afd
Update poland_2010.json ( #1380 )
...
* Update poland_2010.json
* Adding MiG-29G to PL faction
Poland has bought some MiG-29Gs from unified Germany in the early '90s
2021-06-30 15:30:38 -04:00
Chris Seagraves
f80696b724
Add Cloud Base Altitude to Weather Display ( #1371 )
...
Adds tooltip with cloud base altitude to weather panel
2021-06-30 15:22:14 -04:00
Chris Seagraves
5f5b5f69e3
asset reference links 😎 ( #1363 )
...
Adds urls to unit info pages that don't have data.
2021-06-30 15:04:06 -04:00
Chris Seagraves
d99f8fef09
Update main.py ( #1382 )
2021-06-29 18:19:37 -04:00
Simon Clark
e39f17b3de
Fix begin campaign button on reload.
2021-06-26 22:43:22 +01:00
Dan Albert
0b90b53e09
Add changelog section for 4.0.1.
2021-06-26 14:40:00 -07:00
Dan Albert
847d729ba4
Release 4.0.0. ( #1365 )
2021-06-26 12:46:26 -07:00
Dan Albert
aa86a6e53b
Add the most important feature to the changelog.
2021-06-26 12:33:56 -07:00
Brock Greman
34470336e4
Clarify the impact of non-cold flight starts.
2021-06-26 12:29:17 -07:00
Mustang-25
5a2a89f19e
Update Op Mole Cricket 2010 Campaign.
...
Moved SAM generator at Rosh Pina so it does not spawn units on the runway.
2021-06-26 12:17:27 -07:00
Dan Albert
7eb4df770e
Revert accidental change to default pilot limit.
2021-06-26 12:06:18 -07:00