Commit Graph

4999 Commits

Author SHA1 Message Date
Dan Albert
9e5f1d08d2 Add a comment explaining a wtf in alt estimation. 2022-10-16 12:51:19 +02:00
Dan Albert
0135e40f1a Fix offshore targets for WW2 factions.
This makes the oil platform a required building so that all factions can
use it. Alternatively, we could pick a different offshore target for WW2
factions, or gracefully degrade to not generating these targets for WW2
factions. This approach seems to best match the designer's intent.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2322.
2022-10-16 12:51:18 +02:00
Dan Albert
33ae428506 Make Mozdok to Maykop editable without WW2 assets.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2391.
2022-10-16 12:51:18 +02:00
Dan Albert
d89ad18825 Changelog updates. 2022-10-16 12:51:18 +02:00
Dan Albert
9f3f9ad808 Don't allow helicopters at non-FARP FOBs.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2378.
2022-10-16 12:51:18 +02:00
Dan Albert
d53bfd4542 Add additional weapon data.
Partial submission of the data in
https://github.com/dcs-liberation/dcs_liberation/issues/2348. I haven't
changed anything that conflicted with
https://github.com/dcs-liberation/dcs_liberation/pull/1858.
2022-10-16 12:51:17 +02:00
Dan Albert
febcbce413 Key the PrimaryMarker with destination presence.
This is how React recommend dealing with derived state that needs to be
reset:
https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html

The problem is that the new turn will give the component new props, but
new props will not cause the state to be reset. We can either do that
manually (which React recommends only for the cases where it is
absolutely necessary:
https://reactjs.org/docs/hooks-faq.html#how-do-i-implement-getderivedstatefromprops),
or by forcing the component to be replaced by using a key.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2388.
2022-10-16 12:51:17 +02:00
Dan Albert
b478e9c3af Split up the ControlPoint.tsx monolith.
This is in need of some serious refactoring so that
https://github.com/dcs-liberation/dcs_liberation/issues/2388 can be
fixed.
2022-10-16 12:51:17 +02:00
Dan Albert
6c388bd557 Factor out control point location event behavior. 2022-10-16 12:51:16 +02:00
Dan Albert
f0a30b5cb7 Document primary/secondary CP marker behavior. 2022-10-16 12:51:16 +02:00
Dan Albert
daa5227f07 Fix the react app initialization.
ReactDOM.render is deprecated and using it forces react 17 behavior.
2022-10-16 12:51:16 +02:00
MetalStormGhost
8920d5890a F-105 Thunderchief banners (#5)
* Added F-105D and F-105G banners by Jim (used with permission).
* Added the official VNS logos to the F-105 Thunderchief banners.
2022-10-16 12:42:02 +02:00
MetalStormGhost
04a5497f3b F-4B Phantom II mod support (#4) 2022-10-15 23:07:06 +02:00
MetalStormGhost
139e42dbed Support for the F-105 Thunderchief mod
v2.7.12.23x
2022-10-15 12:57:43 +02:00
MetalStormGhost
8c905f95e3 Implemented support for the F-100 Super Sabre mod versions v2.7.18.01 & 2.7.18.30765 and patches 30.09.22 & 09.10.22. 2022-10-15 10:55:26 +02:00
Raffson
33305cfb46 Limit beta's webhook to test-branches only 2022-10-15 00:06:50 +02:00
Raffson
9d65c450b6 Rename payloads 2022-10-14 21:45:49 +02:00
Raffson
c4f20b67fe Support for C-47 2022-10-09 22:17:46 +02:00
Raffson
bc5b62243a Bump campaign versions
Bump to v10.4:
- Mount Barrigada
- Landing at Agat
- Northern Russia
- Operation Dynamo
2022-10-09 20:32:40 +02:00
Raffson
00aa8bf944 Adjust workflow for beta's webhook in discord 2022-10-09 19:00:20 +02:00
Raffson
bcac6c4287 Skip & Log properties with 'None' as default value 2022-10-09 15:28:36 +02:00
Raffson
2be3257e3c Fix mypy error after update 2022-10-09 15:22:03 +02:00
Raffson
6c795bee81 Update mypy 2022-10-09 15:21:48 +02:00
Dan Albert
1606534862 Fix errors in log with 204 response endpoints.
FastAPI uses JsonResponse by default, which will convert the empty
response None to null. We need to forcibly use Response instead to
prevent that for No Content responses.

This didn't cause any observable issues but was polluting the log.
2022-10-09 12:46:06 +02:00
Dan Albert
07425ea04f Update NPM dependencies.
New versions of react and leaflet, along with a lot of other packages.
I'm hoping that the newest react-leaflet might let use solve the carrier
drag and drop issues in a less hacky way, since that's the cause of
https://github.com/dcs-liberation/dcs_liberation/issues/2388.
2022-10-09 12:46:05 +02:00
Dan Albert
326291e708 Fix the react test.
It's still a useless test, but now it passes.
2022-10-09 12:46:05 +02:00
Dan Albert
998a58df34 Ignore vscode tasks file in client. 2022-10-09 12:46:05 +02:00
Dan Albert
9c20a3cf51 Update caniuse-lite.
Complains when tests are run.
2022-10-09 12:45:53 +02:00
Dan Albert
3a412b420b Double the front line thickness.
Make it easier to click on.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2437.
2022-10-02 19:56:51 +02:00
Dan Albert
8126635bd9 Add missing type annotation.
Caught by newer versions of typescript.
2022-10-02 19:56:50 +02:00
Dan Albert
8ff943552b Update pydcs.
Includes the AIM-54C Mk 60.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2436.
2022-10-02 19:56:50 +02:00
Dan Albert
d5a2c54fbd Add a hint about how to transfer squadrons.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1911.
2022-10-02 19:56:50 +02:00
Dan Albert
920c9b15ff Revert "Add support for the AI-only F-14A."
AI behavior with the Heatblur F-14 has been fixed, so not needed any
more.

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

This reverts commit 7387c2ed8f.
2022-10-02 19:56:49 +02:00
Dan Albert
841e918d6f Add Falklands weather data.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2242.
2022-10-02 19:56:49 +02:00
Dan Albert
7e8f734309 Load map icons directly from DCS.
If the user's DCS directory is not configured correctly this will
degrade by not showing an icon. Otherwise (and typically) we get nicer
looking icons for each theater, and we don't have to make these for each
new map.
2022-10-02 19:56:49 +02:00
Dan Albert
868c38b782 Remove unused data.
We get TACAN, ILS, and ATC data from pydcs now. The rest of this
manually curated data is unused.
2022-10-02 19:56:48 +02:00
Dan Albert
7c7d9f7066 Get TACAN and ILS data from pydcs. 2022-10-02 19:56:48 +02:00
Dan Albert
e5074b57b8 Fix TACAN beacon type import.
The dataclass contructor will not automatically convert the int in the
JSON file to the enum type, so our enum equivalence check was not
actually working, and could result in us re-allocating a TACAN channel
that was used by the map.

Fixing this problem surfaces a latent bug, where we can't actually treat
duplicate map TACAN channels as a bug because some channels are used by
multiple airports in PG.
2022-10-02 19:56:48 +02:00
Dan Albert
ed855d26a7 Number beacon types explicitly.
auto() starts at 1 for IntEnum, so this has always been wrong.
2022-10-02 19:56:47 +02:00
Dan Albert
631ee96bbe Move beacons module.
This isn't related to the missiongenerator, and importing this file from
some places (such as runway data) will cause a circular reference when
importing the rest of the missiongenerator package.
2022-10-02 19:56:47 +02:00
Dan Albert
2c53f7952f Alter the beacon format to be keyed by ID.
ID based lookup will be used for finding ILS and TACAN beacons from the
pydcs data.
2022-10-02 19:56:47 +02:00
Dan Albert
2aab7c34be Fix broken error message in beacon importer. 2022-10-02 19:56:46 +02:00
Dan Albert
c7705fd545 Update pydcs.
This update includes expanded runway data that lets us clean up some
code. It also include beacon IDs for runways and airfields that will let
us get ILS and TACAN info from pydcs, but that's a bigger change that
I'll land separately.
2022-10-02 19:56:46 +02:00
Raffson
46eed54705 Update discord link 2022-10-02 19:56:46 +02:00
Raffson
d8509ef736 New performance option: front-line troops prefer roads
Co-Authored-By: MetalStormGhost <89945461+MetalStormGhost@users.noreply.github.com>
2022-10-02 19:56:45 +02:00
Raffson
a81b4ffd05 New performance option: disable convoys
Co-Authored-By: MetalStormGhost <89945461+MetalStormGhost@users.noreply.github.com>
2022-10-02 19:56:45 +02:00
Raffson
cb36163bee Update changelog.md 2022-10-02 19:56:45 +02:00
Raffson
c783dbd17c Update CODE OF CONDUCT / CONTRIBUTING guides 2022-10-02 19:56:44 +02:00
Raffson
0a335d342a Update Issue templates 2022-10-02 19:56:44 +02:00
Raffson
ae0cbc2c5b Update PR template 2022-10-02 19:56:44 +02:00