Khopa
60f837d0b9
Fixed : AI wouldn't buy artillery units
2020-12-21 13:34:56 +01:00
Dan Albert
2ac818dcdd
Convert to new unit APIs, remove old APIs.
...
There are probably plenty of raw ints around that never used the old
conversion APIs, but we'll just need to fix those when we see them.
Fixes https://github.com/Khopa/dcs_liberation/issues/558
2020-12-19 22:08:57 -08:00
Dan Albert
113947b9f0
Add types for distance and speed.
...
Not converting all at once so I can prove the concept. After that we'll
want to cover all the cases where an int distance or speed is a part of
the save game (I've done one of them here with `Flight.alt`) so further
cleanups don't break save compat.
https://github.com/Khopa/dcs_liberation/issues/558
2020-12-19 21:07:55 -08:00
Dan Albert
778ed6ad91
Update 2.3 branch to 2.3.3 preview.
2020-12-19 13:48:44 -08:00
Dan Albert
197bf5d0cf
Mark develop branch as 2.4 preview.
2020-12-19 12:07:35 -08:00
Dan Albert
23e870e416
Put back code to reserve beacon frequencies.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/616
(cherry picked from commit 2f3f53a978 )
2020-12-19 11:47:01 -08:00
Dan Albert
2f3f53a978
Put back code to reserve beacon frequencies.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/616
2020-12-19 11:45:33 -08:00
Dan Albert
563c3f0f1b
Merge branch 'develop_2_3_x' into develop
2020-12-17 16:25:18 -08:00
Khopa
419f4f3156
Updated version string
2020-12-18 01:08:34 +01:00
Khopa
2b7cd36eea
T72B3 and BTR-82A support
2020-12-18 00:42:44 +01:00
Khopa
23a0846533
Merge branch 'develop_2_3_x' into develop
...
# Conflicts:
# changelog.md
# qt_ui/windows/QLiberationWindow.py
# resources/campaigns/syria_full_map_remastered.json
2020-12-18 00:23:53 +01:00
walterroach
666858f8e2
Fix Ground units ... don't move forward #601
2020-12-17 02:03:02 -06:00
Khopa
3902ab3375
Fixed : BMD_1 IFV missing from db. Fixed error preventing mission generation when the role of an unit can not be determined.
...
(cherry picked from commit 4112a86fe9 )
2020-12-16 19:08:42 -08:00
Dan Albert
6bb0bdf66e
Don't exclude BARCAP targets from culling.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/597
(cherry picked from commit b9ade2295e )
2020-12-16 18:53:17 -08:00
Dan Albert
b9ade2295e
Don't exclude BARCAP targets from culling.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/597
2020-12-16 18:52:12 -08:00
Khopa
ba2686630a
Updated version number
2020-12-16 20:51:36 +01:00
Khopa
991cd91dd4
Possible to setup Runway attack payload, default to strike payload otherwise;
2020-12-15 23:14:36 +01:00
Khopa
4112a86fe9
Fixed : BMD_1 IFV missing from db. Fixed error preventing mission generation when the role of an unit can not be determined.
2020-12-15 20:09:41 +01:00
Dan Albert
0f1577d314
Fix crash in new game generation.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/583
(cherry picked from commit 793b356c01 )
2020-12-15 10:20:38 -08:00
Dan Albert
793b356c01
Fix crash in new game generation.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/583
2020-12-15 10:16:21 -08:00
Dan Albert
aaa6637435
Don't cull objects near package targets.
...
https://github.com/Khopa/dcs_liberation/issues/578
Fixes https://github.com/Khopa/dcs_liberation/issues/262
(cherry picked from commit 25efdd3d4f )
2020-12-14 23:55:59 -08:00
Dan Albert
25efdd3d4f
Don't cull objects near package targets.
...
https://github.com/Khopa/dcs_liberation/issues/578
Fixes https://github.com/Khopa/dcs_liberation/issues/262
2020-12-14 23:47:31 -08:00
Dan Albert
ece56032f1
Fix missing import for new package on enemy CVs.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/570
(cherry picked from commit e887082501 )
2020-12-13 15:12:39 -08:00
Dan Albert
e887082501
Fix missing import for new package on enemy CVs.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/570
2020-12-13 13:44:10 -08:00
walterroach
1d1c130d19
Add missing WW2 units to db
...
Fixes #571
2020-12-13 15:03:19 -06:00
C. Perreau
95db2aa14f
Merge branch 'develop' into ITAHawkmoon-update-db
2020-12-13 16:25:52 +01:00
Emanuele Garofalo
fc11182bbe
Update db.py
...
added some plane missing from the db
2020-12-13 12:29:58 +01:00
walterroach
f608cd5aef
fix mypy issues
2020-12-12 15:45:55 -06:00
walterroach
c8e71d269b
Improve Ground Unit Behavior
...
* Prevent spinning units
* Prevent units spawning in exclusion zone
* Prevent units from moving into exclusion zone
2020-12-12 15:33:26 -06:00
Dan Albert
1a062e2170
Set carrier speed for recovery.
...
https://github.com/Khopa/dcs_liberation/issues/543
(cherry picked from commit d316836e90 )
2020-12-11 19:19:48 -08:00
Dan Albert
d316836e90
Set carrier speed for recovery.
...
https://github.com/Khopa/dcs_liberation/issues/543
2020-12-11 19:19:08 -08:00
Khopa
feed55186f
Migrated "polygon" code to shapely
2020-12-12 02:31:43 +01:00
Khopa
7c52ca15f3
C-130 example faction
2020-12-12 00:54:19 +01:00
Khopa
a029c165a0
Normandy campaigns and terrain update
2020-12-11 22:04:33 +01:00
Dan Albert
409e070887
Generate required IADS near FOBs.
2020-12-11 01:09:14 -08:00
Dan Albert
f659dc1f76
Reference point rework.
...
* Introduce a real type.
* Rewrite _transform_point to make use of Point.
* Add shift modifier for large (10 pixel) adjustements to reference
points. Unmodified behavior is now single pixel.
* Use WASD for moving the second point (shift modified numpad keys don't
seem to work).
* Add a debug option to draw transformed reference points to check for
errors. If they don't overlap, something is wrong.
* Cleaned up all the existing reference points. Caucasus in particular
is now *much* better.
As an added bonus, the cleanup for carrier movement projection now also
shows an invalid destination when the destination is on land.
2020-12-10 21:08:38 -08:00
Khopa
bf290ac1a9
Improved Normandy reference points
2020-12-10 23:34:06 +01:00
Khopa
7d07faa5fb
Fix last commit error
2020-12-10 21:09:19 +01:00
Khopa
fd70f0fc4a
Pydcs extensions and db info added for C-130 Hercules mod ✈️
2020-12-10 21:07:04 +01:00
walterroach
c54f6ba4d2
Use set instead of dict
2020-12-09 18:25:24 -06:00
walterroach
61ecdfc48c
Merge branch 'develop' into you_won
2020-12-09 18:12:18 -06:00
Khopa
1258f3e17c
Carrier and Tarawa are now fully moveable
2020-12-10 00:13:34 +01:00
Khopa
44ed895277
Merge remote-tracking branch 'khopa/develop' into develop
2020-12-09 22:55:24 +01:00
walterroach
2ea3f914f0
You Won message #419
2020-12-09 14:37:17 -06:00
Khopa
d6e4a50064
QOL : On launch, auto load the latest saved game.
2020-12-09 21:01:32 +01:00
walterroach
473cda971a
Fix typing mistake
2020-12-08 17:16:09 -06:00
Dan Albert
edfaaacd04
Determine player vs enemy early in debriefing.
...
This way the results of committing the debriefing can't alter the view
of the debriefing. It looks like it was probably that case that
debriefing information displays (but not the committed results) would be
incorrect after a base capture because the results might be shown after
the results were committed.
Maybe fixes https://github.com/Khopa/dcs_liberation/issues/513
2020-12-06 20:20:08 -08:00
Dan Albert
84b8613cf5
Cleanup debriefing signals.
...
We don't need most of this information.
2020-12-06 20:20:08 -08:00
Dan Albert
e0223ded54
Fix display of AA ranges for most ship types.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/390
2020-12-06 14:22:33 -08:00
Dan Albert
8f30e60e1b
Use unplanned missions to guide aircraft purchase.
...
AI aircraft purchase decisions are now driven by the missions that the
flight planner was unable to fulfill. This way we're buying the aircraft
we actually need instead of buying them at random, in the locations we
need them, in the order they're needed.
There's a bit more that could be improved here:
* Unused aircraft could be ferried to where they would be more useful.
* Partial squadrons could be completed rather than buying a whole flight
at a time.
* Aircraft could be ranked by their usefulness so we're not buying so
many Hueys when a Hornet would do better.
* Purchase a buffer of CAP capable aircraft in case too many are shot
down and they are not available next turn.
https://github.com/Khopa/dcs_liberation/issues/361
2020-12-06 00:59:04 -08:00