Dan Albert
9f2fab78a1
Flesh out intel displays.
...
* Add enemy air and ground unit reports.
* Changes the summary to be a comparison of relative strengths rather
than raw enemy numbers.
Fixes https://github.com/Khopa/dcs_liberation/issues/658
(cherry picked from commit 3bdf1377c0 )
2020-12-25 16:08:10 -08:00
Dan Albert
3bdf1377c0
Flesh out intel displays.
...
* Add enemy air and ground unit reports.
* Changes the summary to be a comparison of relative strengths rather
than raw enemy numbers.
Fixes https://github.com/Khopa/dcs_liberation/issues/658
2020-12-25 16:08:02 -08:00
Dan Albert
8f24cf07be
Improve layout of intel window.
...
(cherry picked from commit 1f4516b954 )
2020-12-25 16:05:04 -08:00
Dan Albert
17c40234e9
Add basic intel window.
...
Currently only shows the enemy's economic information.
https://github.com/Khopa/dcs_liberation/issues/658
(cherry picked from commit 1d76ee4871 )
2020-12-25 16:04:54 -08:00
Dan Albert
4cecddcdd0
Add basic enemy intel widget.
...
https://github.com/Khopa/dcs_liberation/issues/658
(cherry picked from commit b53cac4c7a )
2020-12-25 16:04:17 -08:00
Dan Albert
1f4516b954
Improve layout of intel window.
2020-12-25 14:42:04 -08:00
Dan Albert
1d76ee4871
Add basic intel window.
...
Currently only shows the enemy's economic information.
https://github.com/Khopa/dcs_liberation/issues/658
2020-12-25 03:24:33 -08:00
Dan Albert
b53cac4c7a
Add basic enemy intel widget.
...
https://github.com/Khopa/dcs_liberation/issues/658
2020-12-25 01:38:14 -08:00
Dan Albert
29a0644719
Never generate empty ship groups.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/391
(cherry picked from commit c833078e71 )
2020-12-25 01:35:24 -08:00
Dan Albert
c833078e71
Never generate empty ship groups.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/391
2020-12-25 01:32:54 -08:00
Dan Albert
e4cba8d19f
Mention Skynet PD in changelog.
2020-12-24 19:32:31 -08:00
Dan Albert
cd6620712f
Configure skynet point defenses.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/470
2020-12-24 17:10:32 -08:00
Dan Albert
85619b156d
Support groups for SAM templates.
...
It's only possible to control emissions for the group as a whole, so
Skynet needs PDs to be in separate groups from the main part of the SAM
for PD to operate correctly.
https://github.com/Khopa/dcs_liberation/issues/429
https://github.com/Khopa/dcs_liberation/issues/470
2020-12-24 16:09:42 -08:00
Dan Albert
10debbc286
Constrain front lines better.
...
Holes in the inclusion zone are defined by exclusion zones, not by holes
in the inclusion zone. Add a cached property for the inclusion zone that
is not also sea or exclusion zone and use that boundary instead.
2020-12-24 13:50:29 -08:00
Khopa
dcac5b488a
Changelog update
2020-12-24 16:11:12 +01:00
Khopa
e1009bdafa
Fixed ships group that could be replaced by sam site. Removed the possibility to disband ship groups for now.
2020-12-24 16:09:13 +01:00
Khopa
38ce842ca8
Merge remote-tracking branch 'khopa/master' into develop_2_3_x
...
# Conflicts:
# changelog.md
# game/version.py
# gen/ground_forces/ai_ground_planner.py
# pydcs
# resources/factions/iraq_1991.json
# resources/factions/russia_2010.json
2020-12-24 13:32:14 +01:00
Dan Albert
aafd09569c
Fix mypy error.
2020-12-24 02:20:49 -08:00
Dan Albert
67a9df686e
Add fast path for NavPoint equality.
...
Hot method and the FFI costs for comparing the points are not cheap.
2020-12-24 02:06:08 -08:00
Dan Albert
9a374711fd
Don't access point coordinates when hashing.
...
For some reason this is crazy expensive. Turn time goes from 1.7 seconds
to 1 second with this change.
2020-12-24 01:49:07 -08:00
Dan Albert
b9138acbc8
Use shapely projection instead of brute force.
...
Converts the landmap to use MultiPolygon instead of a collection of
polygons, since Shapely has explicit support for this.
Because we've done that, we can use a single projection from a line
instead of brute forcing the extent of the front line.
This makes turn processing ~66% faster (3 seconds to 1.8).
There are probably other places this should be used.
2020-12-24 01:20:15 -08:00
Dan Albert
2a65916f7c
Log time taken in turn processing.
2020-12-24 00:53:36 -08:00
Dan Albert
6aa1f1cca0
Prefer buying aircraft at safe airbases.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/652
2020-12-23 22:25:47 -08:00
Dan Albert
8c1ebfda02
Show ASAP TOT for debug view flights.
2020-12-23 21:42:13 -08:00
Dan Albert
81af5d7497
Use navmesh to plan strike-like flight plans.
...
The cases where the target is extremely close to the origin point still
use the old flight plan pattern. This is probably fine.
https://github.com/Khopa/dcs_liberation/issues/292
2020-12-23 21:30:36 -08:00
Khopa
368bf08ade
Fixed mypy error
2020-12-24 03:18:53 +01:00
Dan Albert
d95f623ca9
Use navmesh to plan sweep missions.
...
https://github.com/Khopa/dcs_liberation/issues/292
2020-12-23 18:08:58 -08:00
Dan Albert
2856fbc42b
Improve display of nav points in kneeboard.
2020-12-23 17:52:14 -08:00
Dan Albert
ac59e15bd9
Use navmesh to plan CAS and BARCAP.
...
https://github.com/Khopa/dcs_liberation/issues/292
2020-12-23 17:40:59 -08:00
Dan Albert
91d9bbdc97
Add visual debugging for other fligth plans.
2020-12-23 17:31:04 -08:00
Dan Albert
575f4e1786
Clean up debug display options.
2020-12-23 17:19:57 -08:00
Dan Albert
bff905fae5
Use navmeshes to improve TARCAP flight plans.
...
Started with TARCAP because they're simple, but will follow and extend
this to the other flight plans next.
This works by building navigation meshes (navmeshes) of the theater
based on the threat regions. A navmesh is created for each faction to
allow the unique pathing around each side's threats. Navmeshes are built
such that there are nav edges around threat zones to allow the planner
to pick waypoints that (slightly) route around threats before
approaching the target.
Using the navmesh, routes are found using A*. Performance appears
adequate, and could probably be improved with a cache if needed since
the small number of origin points means many flights will share portions
of their flight paths.
This adds a few visual debugging tools to the map. They're disabled by
default, but changing the local `debug` variable in `DisplayOptions` to
`True` will make them appear in the display options menu. These are:
* Display navmeshes (red and blue). Displaying either navmesh will draw
each navmesh polygon on the map view and highlight the mesh that
contains the cursor. Neighbors are indicated by a small yellow line
pointing from the center of the polygon's edge/vertext that is shared
with its neighbor toward the centroid of the zone.
* Shortest path from control point to mouse location. The first control
point for the selected faction is arbitrarily selected, and the
shortest path from that control point to the mouse cursor will be
drawn on the map.
* TARCAP plan near mouse location. A TARCAP will be planned from the
faction's first control point to the target nearest the mouse cursor.
https://github.com/Khopa/dcs_liberation/issues/292
2020-12-23 17:09:34 -08:00
Khopa
c0fa135bf6
Artillery groups would retreat in the wrong direction - fixed (parameters of the find_retreat_point function are a bit confusing 😕 )
2020-12-24 02:03:12 +01:00
Khopa
86394d8f19
Artillery groups would retreat in the wrong direction - fixed (parameters of the retreat point function are a bit confusing 😕 )
2020-12-24 02:02:17 +01:00
Khopa
72c233cb0d
Fixed possible assertion error when redeploying units which would lead to ground units not being redeployed.
2020-12-24 01:47:44 +01:00
Khopa
04e2c02eff
SCUD missile sites will fire on nearest enemy airport by default
2020-12-24 01:26:00 +01:00
Khopa
7362744df2
Changelog update
2020-12-23 22:15:56 +01:00
Khopa
01951b5c32
Reworked emirates campaign
2020-12-23 21:58:39 +01:00
Khopa
f2f52771bd
Removed "broken" midgame setting
2020-12-23 21:37:59 +01:00
Khopa
b59167d3ca
Changelog update, WW2 factions can recruit AA/AT guns for frontlines.
2020-12-23 18:21:13 +01:00
Khopa
88e466562c
Infantry squads can contain a mortar.
2020-12-23 17:53:52 +01:00
Khopa
1f85e5d7f8
Changelog update
2020-12-23 17:25:15 +01:00
Khopa
50471d510e
Fixed and added many ground units icons
2020-12-23 17:24:20 +01:00
Khopa
8b7cf2f725
Changelog update
2020-12-23 01:35:19 +01:00
Khopa
282a5109ba
Infantry group are always made of 5 units instead of a random amount.
2020-12-23 01:33:49 +01:00
Khopa
3d3b4738d9
Insurgent hard faction name fixed
2020-12-23 01:31:07 +01:00
Khopa
66149bb591
Fixed error in merge
2020-12-22 23:34:08 +01:00
Khopa
b0ad664ece
Merge branch 'develop_2_3_x' into develop
...
# Conflicts:
# changelog.md
# game/procurement.py
# resources/factions/iraq_1991.json
2020-12-22 23:32:06 +01:00
Khopa
7c29ea836c
Infantry is only generated for IFV and APC groups
2020-12-22 23:24:27 +01:00
Khopa
92e9e8c56a
Merge remote-tracking branch 'khopa/develop_2_3_x' into develop_2_3_x
2020-12-22 23:23:52 +01:00