Dan Albert
481f195725
Airlift support.
...
UI isn't finished. Bulk transfers where the player doesn't care what
aircraft get used work (though they're chosen with no thought at all),
but being able to plan your own airlift flight isn't here yet.
Cargo planes are not implemented yet.
No way to view the cargo of a flight (will come with the cargo flight
planning UI).
The airlift flight/package creation should probably be moved out of the
UI and into the game code.
AI doesn't use these yet.
https://github.com/Khopa/dcs_liberation/issues/825
2021-04-22 00:30:18 -07:00
Dan Albert
8e361a8776
Fix missing index valid check in transfer menu.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/1006
2021-04-21 17:14:45 -07:00
Dan Albert
29cd55e795
Add WIP airlift UI.
...
Doesn't do anything yet.
https://github.com/Khopa/dcs_liberation/issues/825
2021-04-21 01:02:02 -07:00
Dan Albert
c2ebf61fd3
Disable cancel actions on enemy transfers.
...
Decided to leave these in the menu as intel for the player, but the
player can no longer cancel them.
Fixes https://github.com/Khopa/dcs_liberation/issues/995
2021-04-20 23:20:08 -07:00
Dan Albert
6cffc47f3c
Clean up convoy code.
2021-04-20 22:21:42 -07:00
Dan Albert
50d8e08a34
Redo convoy attack flight plans.
...
The previous flight plan only makes sense if the convoy will make it a
significant distance from its starting point. At road speeds over the
typical mission duration this is not true, so we can actually plan this
as if it was a strike mission near the origin point and that's close
enough.
There's some cleanup work to do here that I've added todos for.
Fixes https://github.com/Khopa/dcs_liberation/issues/996
2021-04-20 22:04:57 -07:00
Dan Albert
81d5cddac9
Remove weird single-CP supply route edge case.
...
A CP with a factory would be able to supply itself, but was not in a
supply route if it was the only connected friendly CP. When the player
starts with only one base against an enemy base this meant that it was
in no supply route, causing it to not be a recruitment location or a
place to buy more than a reserve of vehicles automatically.
2021-04-19 17:15:41 -07:00
Dan Albert
3c4d6eb8e4
Automate transfers for purchases in the UI.
...
Buying a unit places the order, but the unit will appear at the nearest
connected source and a transfer will be automatically created next turn.
https://github.com/Khopa/dcs_liberation/issues/986
2021-04-18 23:31:45 -07:00
Dan Albert
627f18c42b
Require factories for purchasing ground units.
...
https://github.com/Khopa/dcs_liberation/issues/986
2021-04-18 23:22:30 -07:00
Dan Albert
67b341cbd6
Add feature flag for new ground unit recruitment.
...
This is going to render most campaigns unusable because they won't have
any places to spawn ground units, so flagging off for now.
https://github.com/Khopa/dcs_liberation/issues/986
2021-04-18 23:22:30 -07:00
Dan Albert
c92e4e06cc
Move campaign format version to a stable location.
2021-04-18 17:37:55 -07:00
Dan Albert
39135f8c80
Add version field to campaign descriptor file.
...
This is used to provide a UI hint to guide players towards campaigns
that have been updated to work with the current version of the game.
All the campaigns we currently have were made for an unknown version of
the game, so they're all flagged as incompatible.
The version field is not the DCS Liberation version number because the
campaign format may change multiple times during development. Instead
the version number is a monotonically increasing integer that we
increment whenever a game change requires campaign updates.
2021-04-18 17:30:49 -07:00
Dan Albert
5e054cfc77
Disallow selling ground units.
...
Ground units should be transferred to a new location, not sold and
repurchased.
https://github.com/Khopa/dcs_liberation/issues/823
2021-04-18 16:32:02 -07:00
Dan Albert
65ed110ab7
Track convoy kills.
...
https://github.com/Khopa/dcs_liberation/issues/824
2021-04-18 16:22:51 -07:00
Dan Albert
bd9cbf5e3b
Move transfers one CP per turn.
...
https://github.com/Khopa/dcs_liberation/issues/824
2021-04-18 16:22:51 -07:00
Dan Albert
65f6a4eddd
Restrict transfers to connected bases.
...
https://github.com/Khopa/dcs_liberation/issues/824
2021-04-18 15:59:15 -07:00
Dan Albert
e9ff554f39
Basic implementation of road based transfers.
...
This adds the models and UIs for creating ground unit transfer orders.
Most of the feature is still missing:
* The AI doesn't do them.
* Transfers can move across the whole map in one turn.
* Transfers between disconnected bases are allowed.
* Transfers are not modeled in the simulation, so they can't be
interdicted.
https://github.com/Khopa/dcs_liberation/issues/824
2021-04-18 15:59:15 -07:00
Dan Albert
157a59e3c4
Fix UI crash when unchecking default loadout.
...
This was throwing because it was being called with the wrong number of
arguments, preventing the UI from actually updating back to the default.
2021-04-18 13:05:22 -07:00
Khopa
3db275414d
Allow 0 income multiplier in game settings windows (this was already possible in new game wizard)
2021-04-18 01:20:32 +02:00
Khopa
c8f6b6df87
Fixed lint issue
2021-04-18 00:11:06 +02:00
Khopa
e63743f537
Improved FOB support : new custom banner for FOB menu and do not display aircrafts menu on first page.
2021-04-17 23:49:49 +02:00
Khopa
828c87df39
Game settings / new game wizard : Allowed a 0% income multiplier.
2021-04-07 19:33:23 +02:00
GvonH
49e729e9ec
Add dark kneeboard option for night missions ( #951 )
2021-03-22 19:41:54 -07:00
Khopa
5bd4c00257
Merge branch 'develop_2_4_x' into develop
...
# Conflicts:
# changelog.md
# game/db.py
# game/navmesh.py
# game/operation/operation.py
# game/theater/conflicttheater.py
# game/theater/controlpoint.py
# game/theater/start_generator.py
# game/theater/theatergroundobject.py
# game/threatzones.py
# game/version.py
# gen/aircraft.py
# gen/airsupportgen.py
# gen/fleet/carrier_group.py
# gen/flights/ai_flight_planner.py
# gen/flights/ai_flight_planner_db.py
# gen/flights/flightplan.py
# gen/flights/waypointbuilder.py
# gen/groundobjectsgen.py
# gen/kneeboard.py
# pydcs
# pydcs_extensions/f22a/f22a.py
# qt_ui/uiconstants.py
# qt_ui/widgets/combos/QAircraftTypeSelector.py
# qt_ui/widgets/map/QLiberationMap.py
# qt_ui/windows/QUnitInfoWindow.py
# qt_ui/windows/mission/flight/payload/QPylonEditor.py
# qt_ui/windows/settings/QSettingsWindow.py
2021-03-21 18:50:50 +01:00
Dan Albert
b5934633fa
Improve wording of "never delay players" option.
2021-02-27 14:16:41 -08:00
Khopa
6704cded2d
Fixed unit info windows crashing when banner not found (variable referenced before assignment error)
2021-02-27 00:10:57 +01:00
Khopa
58d5aa9944
Fixes : Missing weapons names would cause flight edition window to crash while setting up default loadout UI, preventing the user from editing flights.
2021-02-26 23:30:23 +01:00
Khopa
35dd9427a5
Added possibility to set up custom date in new game wizard.
2021-02-22 21:34:14 +01:00
Khopa
523ef08697
Ran black reformater on 2.4x branch
2021-02-22 20:55:51 +01:00
Khopa
a562345876
Updated credits in about dialog.
2021-02-22 20:28:34 +01:00
Khopa
c6939e7194
Added possibility to set up custom date in new game wizard.
2021-02-21 22:57:21 +01:00
Khopa
5cb1a47ed3
Updated credits in about dialog.
2021-02-21 17:24:15 +01:00
Dan Albert
a47bef1f13
Blacken.
2021-02-12 20:10:45 -08:00
Simon Krüger
65c185ebd2
Add an option for disabling the legacy AEW&C aircraft.
...
Using the legacy AEW&C aircraft is still the default until
https://github.com/Khopa/dcs_liberation/issues/844 is fixed.
2021-02-12 14:20:26 -08:00
Dan Albert
fb425d3524
Fix rounding of budget in recruitment menu.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/861 .
(cherry picked from commit 5792eb354cb40d0b6659d18507737af0e8bd62b2)
2021-02-12 14:01:34 -08:00
Dan Albert
5792eb354c
Fix rounding of budget in recruitment menu.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/861 .
2021-02-12 14:00:58 -08:00
Simon Krüger
e0501e46e3
Initial implementation of AEW&C missions.
...
Still a work in progress (the missions don't actually perform their task, just orbit). Currently:
* AEW&C aircraft can be bought.
* AEW&C missions can be planned at any control point and at front lines.
* AEW&C will return after 4H or Bingo.
2021-02-07 11:39:22 +00:00
Simon Clark
3fab1d92b7
Fixed some areas where the non-pretty name for a unit was displayed.
2021-02-07 11:15:25 +00:00
Dan Albert
d56c2f7a50
Allow editing the arrival/diver airfield.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/810
2021-01-31 14:26:14 -08:00
Dan Albert
944a8e9cd6
Allow selecting start type when creating flights.
2021-01-30 16:16:04 -08:00
Dan Albert
34d4ecd4e6
Add an option for default start type.
...
Changing this completely breaks OCA/Aircraft missions, but if the player
doesn't care about those this can reduce airfield congestion. The UI
warns about this.
This also makes the AI start type selectable in the flight UI.
Fixes https://github.com/Khopa/dcs_liberation/issues/387
Fixes https://github.com/Khopa/dcs_liberation/issues/729
2021-01-30 15:04:23 -08:00
Dan Albert
5047b535c4
Make ASAP a checkbox and maintain ASAP on changes.
...
Fixes https://github.com/Khopa/dcs_liberation/issues/642
2021-01-30 13:33:39 -08:00
Simon Clark
6217075adc
Add mission planning docs link to TOT field.
...
Completes: #696
2021-01-30 01:12:59 +00:00
Simon Clark
883f233c09
Adds WIP handling for default payload display with restricted date feature enabled.
2021-01-30 01:00:40 +00:00
Simon Clark
b80aad7449
Link custom theater/faction/loadout docs in UI.
...
Contributes-to: #614
2021-01-30 00:19:29 +00:00
Khopa
f10f580f1c
Fixed factions descriptions not being updated after auto-selection of factions.
2021-01-23 00:33:07 +01:00
Khopa
097c42d1dd
New game wizard : Added performance information about the selected campaigns.
2021-01-22 23:07:17 +01:00
Khopa
f959dd0519
Campaign have a recommended defaults faction setup to ease campaign setup
2021-01-22 22:09:55 +01:00
Simon Clark
b7fbade968
More work on the unit info screen.
2021-01-19 17:53:55 +00:00
Simon Clark
38941f02a8
Add some initial images for the unit info pages.
...
This was pretty fun! DCS is very photogenic given the right conditions...
2021-01-18 22:44:34 +00:00