Dan Albert
77d29e314c
Add API key authentication.
...
We don't have any sensitive data, but we do access the file system. On
the off chance that some phishing website decides to try to use
Liberation as an attack vector, prevent access to the API by
unauthorized applications. An API key is generated at each program start
and passed to the front end via the QWebChannel.
2022-02-19 14:41:39 -08:00
Dan Albert
09457d8aab
Move frozen combat handling out of MapModel.
2022-02-19 13:51:18 -08:00
Dan Albert
21f7912458
Add websocket event stream for sim updates.
...
As a proof of concept this only covers the flight positions.
2022-02-16 01:34:56 -08:00
Dan Albert
350f08be2f
Add FastAPI interface between the game and map.
...
A possible explanation for the infrequent CTDs we've been seeing since
adding fast forward is that QWebChannel doesn't keep a reference to the
python objects that it passes to js, so if the object is GC'd before the
front end is done with it, it crashes.
We don't really like QWebChannel anyway, so this begins replacing that
with FastAPI.
2022-02-15 18:14:34 -08:00
Dan Albert
6ebda41922
Replace debug QObject models with Pydantic.
...
This requires less duplication and paves the way for us replacing
QWebChannel with FastAPI, which in turn gets us closer to not needing
Qt.
2022-02-13 14:52:41 -08:00
Dan Albert
f153e75f03
Fix default layer in debug mode.
2022-02-13 14:35:30 -08:00
Dan Albert
515efd0598
Draw frozen combat on the map.
...
Very basic display. Draws the engagement footprint for air-to-air
combat, a line from the flight to the target for IP, and lines from SAMs
to their target for air defense.
https://github.com/dcs-liberation/dcs_liberation/issues/1680
2021-12-21 14:56:25 -08:00
Dan Albert
acd63fdeac
Fix more not-cleared flight plan elements.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1745
2021-11-21 13:37:45 -08:00
Dan Albert
bc819d59f4
Prevent drawing flights that are being deleted.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1720
2021-11-21 13:21:25 -08:00
Dan Albert
2c14a140fe
Highlight icons for selected flights.
...
https://spatialillusions.com/unitgenerator/ doesn't support generating
white icons AFAICT, so this was just the blue icon manually edited to
white.
https://github.com/dcs-liberation/dcs_liberation/issues/1704
2021-11-07 11:44:04 -08:00
Dan Albert
30cfd8a769
Don't rebuild the ATO model on selection change.
...
Much faster and avoids nasty concurrency issues between the JS and
Python side.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1719
2021-11-07 01:38:55 -07:00
Dan Albert
03430a4df5
Update the UI to show sim state.
...
https://github.com/dcs-liberation/dcs_liberation/issues/1704
2021-11-02 23:34:51 -07:00
Dan Albert
e22e8669e1
Add fallback locations for join zones.
...
It's rare with the current 5NM buffer around the origin, but if we use
the hold distance as the buffer like we maybe should it's possible for
the preferred join locations to fall entirely within the home zone. In
that case, fall back to a location within the max-turn-zone that's
outside the home zone and is nearest the IP.
2021-07-18 14:52:12 -07:00
Dan Albert
1b640f40dc
Fix map issues when debugging tools are disabled.
2021-07-16 00:27:11 -07:00
Dan Albert
82cca0a602
[3/3] Rework hold points.
2021-07-15 23:21:56 -07:00
Dan Albert
d444d716f5
[2/3] Improve join point placement.
2021-07-15 23:18:10 -07:00
Dan Albert
e03d710d53
[1/3] Rework IP placement.
...
Test cases:
1. Target is not threatened.
The IP should be placed on a direct heading from the origin to the
target at the max ingress distance, or very near the origin airfield
if the airfield is closer to the target than the IP distance.
2. Unthreatened home zone, max IP between origin and target, safe
locations available for IP.
The IP should be placed in LAR at the closest point to home.
3. Unthreatened home zone, origin within LAR, safe locations available
for IP.
The IP should be placed near the origin airfield to prevent
backtracking more than needed.
4. Unthreatened home zone, origin entirely nearer the target than LAR,
safe locations available for IP.
The IP should be placed in LAR as close as possible to the origin.
5. Threatened home zone, safe locations available for IP.
The IP should be placed in LAR as close as possible to the origin.
6. No safe IP.
The IP should be placed in LAR at the point nearest the threat
boundary.
2021-07-15 23:18:10 -07:00
Dan Albert
a1910f49a8
Color navmesh zones based on threat.
2021-07-13 17:49:10 -07:00
Chris Seagraves
ffcae66f59
Include control point name in ground object info.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/498
2021-06-26 11:24:12 -07:00
bgreman
a50a6fa917
Adds a ruler to the map ( #1332 )
...
* Adds a ruler to the map
* Updating changelog
* Updating changelog
2021-06-24 02:58:39 -04:00
Simon Clark
9d767c3dd8
Fix destination opacity bug.
2021-06-20 19:06:24 +01:00
Simon Clark
0793e9afc5
Addresses #1184 .
...
CV and LHA icons are now the same colour as airfields.
Destination markers now have transparency.
2021-06-20 15:33:01 +01:00
Dan Albert
f727712bfa
Make non-interactive map elements unobstructive.
...
This makes most of the lines and polygons on the map non-interactive so
they don't capture mouse events, and also makes the culling exclusion
zones unfilled so they don't obscure real map objects in dense areas.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1217
2021-06-16 17:22:07 -07:00
Dan Albert
284f2bc323
Show runway status on the new map.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1105
2021-05-31 14:18:27 -07:00
Dan Albert
f6909d2f98
Use airfield icons for off-map spawns.
...
Nothing else is really appropriate, and these are meant to represent
off-map airfields.
2021-05-31 13:23:47 -07:00
Dan Albert
c42974f7b3
Update FOB icon.
...
Also removes the possibility of generating FOBs that are not FOBs.
2021-05-31 13:14:45 -07:00
Dan Albert
acd3e87996
Remove accidentally preserved debug log in UI.
2021-05-30 19:46:38 -07:00
Dan Albert
8c8814d07e
Add culling display option to the new map.
...
https://github.com/dcs-liberation/dcs_liberation/issues/1097
2021-05-30 19:32:08 -07:00
Dan Albert
2218733da4
Add exclusion zone display to the new map.
...
https://github.com/dcs-liberation/dcs_liberation/issues/1097
2021-05-30 18:50:53 -07:00
Dan Albert
bc7faee880
Add navmesh map mode to the new map.
...
https://github.com/dcs-liberation/dcs_liberation/issues/1097
2021-05-28 17:00:33 -07:00
Dan Albert
b7b3b35816
Make some waypoint types undraggable.
...
None of these (takeoff, landing, divert, bullseye, precise target
locations) can be usefully moved, so prevent it.
2021-05-24 16:45:21 -07:00
Dan Albert
c7edba5120
Add TGO-specific layers.
...
This also splits the main and debug controls because the main list was
getting too long.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1069
2021-05-23 15:36:22 -07:00
Dan Albert
2ea0bccd25
Hide dead opfor objectives.
...
These are just clutter.
2021-05-23 14:44:24 -07:00
Dan Albert
ddd6e7d18f
Improve detection of functional radar SAMs.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1109
2021-05-23 13:01:44 -07:00
Dan Albert
eae0d6be94
Add threat zone drawing for the new map.
...
https://github.com/dcs-liberation/dcs_liberation/issues/1097
2021-05-23 12:25:15 -07:00
Dan Albert
c0ead4a484
Add icons for CPs.
2021-05-21 23:26:15 -07:00
Dan Albert
7e7a1dce7b
Fix icons for dead SAMs showing as damaged.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1099
2021-05-21 11:11:44 -07:00
Dan Albert
a382e74a89
Set up bullseye early, create waypoints.
...
Setting this up as part of the game makes it possible for us to show in
the UI.
https://github.com/dcs-liberation/dcs_liberation/issues/136
2021-05-20 18:29:35 -07:00
Dan Albert
04ebe4c68a
Add the rest of the TGO icons.
2021-05-19 21:40:36 -07:00
Dan Albert
1c7e065c52
Add more icons.
2021-05-19 21:24:54 -07:00
Dan Albert
80f3857f44
Stop forcing open CP tooltips.
...
These obscure the TGOs around them. Easy enough to mouse over, and the
names aren't the important part.
2021-05-19 20:49:51 -07:00
Dan Albert
3b62831401
Replace icons for some TGOs.
...
Only covered about half of the types so far.
This also removes the clustering, since that doesn't really seem to be
needed with the newer icons.
2021-05-19 20:47:52 -07:00
Dan Albert
7dac886375
Remove fixed todo from the map.
2021-05-18 23:55:00 -07:00
Dan Albert
af3b8a9902
Set up icons for TGOs.
...
These are just the old icons, but it's better than nothing.
2021-05-18 23:35:25 -07:00
Dan Albert
c063a638cd
Disable double click zoom action.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1087
2021-05-16 21:59:48 -07:00
Dan Albert
2dfe1420bc
Add "Show all" option for flight plans.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1085
2021-05-16 13:15:51 -07:00
Dan Albert
7dd379c5c3
Show active supply routes in the new UI.
2021-05-16 12:58:03 -07:00
Dan Albert
3f077727ae
Group allied and enemy SAM controls.
2021-05-15 22:08:00 -07:00
Dan Albert
5d9563304f
Update commit boundaries after moving waypoints.
...
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1084
2021-05-15 21:57:37 -07:00
Dan Albert
53cb68f82c
Make waypoints draggable.
2021-05-15 16:21:03 -07:00