1180 Commits

Author SHA1 Message Date
Dan Albert
177f357492
Pre-allocate laser codes for FLOTs and flights. 2023-10-07 14:06:12 +02:00
MetalStormGhost
54777a9045
Helicopter waypoint altitude configurable (#207)
* Helicopter waypoint altitude configurable

Added a new option in Settings: Helicopter waypoint altitude (feet AGL).
It sets the waypoint altitude for helicopters in feet AGL. In campaigns in more mountainous areas, you might want to increase this setting to avoid the AI flying into the terrain.

* black?

* Distinguish cruise/combat altitudes for helicopters

Also includes a refactor for WaypointBuilder so it doesn't need a coalition. It can already reference the coalition from the flight.

* Update changelog.md

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2023-10-02 18:54:21 +02:00
Raffson
226a171550
Fix missing argument exception 2023-10-02 17:50:55 +02:00
Raffson
b3f5afe36b
Fix 'game not defined' exception 2023-10-01 22:37:17 +02:00
Raffson
d4eefd0b55
Streamlining 2023-10-01 21:56:30 +02:00
Dan Albert
485229b92f
Allow per pilot loadouts and properties.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3092.
2023-10-01 20:10:16 +02:00
Dan Albert
bce6a170b8
Improve UI for flight properties.
Use the new data from pydcs to improve the properties UI:

* Use human readable names
* Use appropriate control types
* Limit min and max values as appropriate for each property
* Show labels

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3090.
2023-10-01 19:28:52 +02:00
Dan Albert
7303c8fa20
Add cheats for destroying and repairing runways. 2023-10-01 19:26:23 +02:00
Dan Albert
f89ac52bf3
Clean up remaining Flight.from_cp users.
The preferred API for this has been `Flight.departure` for a while.
2023-10-01 19:26:20 +02:00
Raffson
3b7077e593
Use all modeled radio-bands in freq-selector 2023-09-30 17:46:28 +02:00
Raffson
0cb3702eb9
Fix exception after new payload file was saved
When a new payload file would be saved, the subsequent flight would always throw an exception (until Retribution would be restarted) because the payload_cache wasn't updated until now.
2023-09-09 12:03:47 +02:00
Raffson
66d741d0b3
Allow user to add navigation waypoints where possible 2023-08-27 21:11:10 +02:00
M Chimiste
16b7ff2bb4
Create payloads folder in ME folder if needed (#200)
Added a check for the existence of a payloads folder.  Also made the _save_payloads lookup and path generation the same as _backup_payloads method to have consistency.
2023-08-27 19:10:00 +02:00
Raffson
f5cb293e44
Allow editing pretty_name for waypoints 2023-08-26 19:19:54 +02:00
Raffson
046dccc4d5
Update contributors list 2023-08-12 19:25:36 +02:00
Raffson
15b0c26c5d
Update version info for Su-57 mod 2023-08-12 19:15:14 +02:00
Raffson
7200c687af
Update version info for Su-30 mod 2023-08-12 19:11:28 +02:00
Raffson
da75f41b01
Refactor payloads folder logic 2023-07-22 23:26:32 +02:00
Raffson
63e65744f1
Formatting -_- 2023-07-22 21:34:52 +02:00
Raffson
b8cce988f8
Fix wrong serialization when saving payload in new file 2023-07-22 21:33:45 +02:00
Raffson
85bbda4234
Notify user when save/backup was successful 2023-07-22 20:35:26 +02:00
Raffson
0e5df2fd21
Get rid of all pydcs' PayloadDirectories usages 2023-07-22 20:01:00 +02:00
Raffson
0027c64e57
Add & Select newly saved payload to selector 2023-07-22 00:03:22 +02:00
Raffson
493e69eb40
Use base_path instead 2023-07-21 22:51:13 +02:00
Raffson
15be9e3ce1
Fine-tune "save payload" logic 2023-07-21 22:21:45 +02:00
Raffson
2cfd56c8da
Add ability to save/backup payloads
Resolve #164
2023-07-21 21:47:25 +02:00
Raffson
595a5ac111
Fix flights not removed from map if auto-create cancelled 2023-07-16 21:19:04 +02:00
Raffson
024407e1e2
Initial POC for #165 2023-07-16 19:51:35 +02:00
Raffson
6c87421c26
Cache liveries at startup 2023-07-15 17:46:31 +02:00
Raffson
baac660f1d
Update faction selection page when inverting map
Reported by Kerbo on discord
2023-07-15 16:32:13 +02:00
Raffson
8f35546d84
Fine-tuning some typing issues 2023-07-09 22:59:23 +02:00
Raffson
d6e7451f8a
Add F-15I support
Co-Authored-By: M Chimiste <37678080+M-Chimiste@users.noreply.github.com>
2023-07-09 19:32:15 +02:00
Raffson
06d98db55b
Replace lists with sets 2023-07-09 19:32:00 +02:00
MetalStormGhost
031feeed6f
F-16A hotifx (#158)
* F-16A hotifx

Added SEAD capability to F-16A MLU and SEAD Escort & SEAD to F-16A. Fixed F-16A MLU icon and banner. Added new F-16A and F-16A MLU loadouts.

* Updated changelog.
2023-07-02 21:13:00 +00:00
Raffson
e2d9a794b8
Invert factions when "Invert Map" is set in NGW 2023-07-02 13:56:11 +02:00
MetalStormGhost
6e37cadb84
Settings doctrine page + streamlining (#156)
* Added a separate Doctrine page in settings with the following new options:
- Minimum number of aircraft for autoplanner to plan OCA packages against
- Airbase threat range (nmi)
- TARCAP threat buffer distance (nmi)
- AEW&C threat buffer distance (nmi)
- Theater tanker threat buffer distance (nmi)

Implemented handling for the OPFOR autoplanner aggressiveness in objectivefinder.py vulnerable_control_points().

* * Added three new options in Settings:
- Autoplanner plans refueling flights for Strike packages
- Autoplanner plans refueling flights for OCA packages
- Autoplanner plans refueling flights for DEAD packages

Fixed a bug in faction.py where F-16Ds were not correctly removed from the faction when the F-16I/F-16D mod was not selected.

* Renamed Maximum frontline length -> Maximum frontline width.
2023-07-01 23:54:27 +02:00
Raffson
4b4ec8d9ad
Add livery selector in SquadronDialog 2023-07-01 23:42:13 +02:00
Raffson
3b745c43eb
Save-compat changes to allow loading Liberation saves
May be incomplete, some discrepancies in naming may still exist, but at least Kerbo's campaign can be loaded.
2023-07-01 17:08:12 +02:00
Raffson
bf5807d9c1
Fix parking space info in AWCD 2023-06-25 15:38:22 +02:00
Dan Albert
50975d5eb6
Razbam F-15E banner and icon.
Just reusing the old one.

https://github.com/dcs-liberation/dcs_liberation/issues/3028
2023-06-23 22:08:39 +02:00
MetalStormGhost
fb2598a671 Github URL update
Updated the URLs to point correctly to Retribution code, Retribution wiki or Liberation code, as appropriate.
2023-06-21 10:28:26 +02:00
MetalStormGhost
e273e93012
Roadbase and ground spawn support (#132)
* Roadbase and ground spawn support

Implemented support for roadbases and ground spawn slots at airfields and FOBs. The ground spawn slots can be inserted in campaigns by placing either an A-10A or an AJS37 at a runway or ramp. This will cause an invisible FARP, an ammo dump and a fuel dump to be placed (behind the slot in case of A-10A, to the side in case of AJS37) in the generated campaigns. The ground spawn slot can be used by human controlled aircraft in generated missions. Also allowed the use of the four-slot FARP and the single helipad in campaigns, in addition to the invisible FARP. The first waypoint of the placed aircraft will be the center of a Remove Statics trigger zone (which might or might not work in multiplayer due to a DCS limitation).

Also implemented three new options in settings:
 - AI fixed-wing aircraft can use roadbases / bases with only ground spawns
   - This setting will allow the AI to use the roadbases for flights and transfers. AI flights will air-start from these bases, since the AI in DCS is not currently able to take off from ground spawns.
 - Spawn trucks at ground spawns in airbases instead of FARP statics
 - Spawn trucks at ground spawns in roadbases instead of FARP statics
   - These settings will replace the FARP statics with refueler and ammo trucks at roadbases. Enabling them might have a negative performance impact.

* Modified calculate_parking_slots() so it now takes into account also helicopter slots on FARPs and also ground start slots (but only if the aircraft is flyable or the "AI fixed-wing aircraft can use roadbases / bases with only ground spawns" option is enabled in settings).

* Improved the way parking slots are communicated on the basemenu window.

* Refactored helipad and ground spawn appends to static methods _add_helipad and _add_ground_spawn in mizcampaignloader.py
Added missing changelog entries.
Fixed tgogenerator.py imports.
Cleaned up ParkingType() construction.

* Added test_control_point_parking for testing that the correct number of parking slots are returned for control point in test_controlpoint.py

* Added test_parking_type_from_squadron to test the correct ParkingType object is returned for a squadron of Viggens in test_controlpoint.py

* Added test_parking_type_from_aircraft to test the correct ParkingType object is returned for Viggen aircraft type in test_controlpoint.py

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2023-06-19 00:02:08 +03:00
Raffson
19a6eaeaa3
Yesterday's fix was bogus... 2023-06-17 21:50:00 +02:00
Raffson
c924130356
Apply mod-settings to faction before generating game 2023-06-17 04:40:10 +02:00
zhexu14
322b8245f7
Make waypoint altitudes editable. 2023-06-16 22:42:59 +02:00
Raffson
057ea58d8e
Modifiers for ground unit transfer window 2023-06-14 03:44:03 +02:00
Raffson
245bab57c2
Avoid moving empty squadrons if aircraft-type can't fit any slot 2023-06-13 13:30:32 +02:00
Dan Albert
b45139bf02
Stop preloading images that are rarely used.
The aircraft banners are only used for the unit info window, and that's
not a normal part of gameplay. We spend a bit over 1.5 seconds
preloading this data at startup (about 25% of the non-game load startup
time). This data is only expensive to load in aggregate, and we never
need all of it. The unit info window is not noticeably slowed by this,
but startup is noticeably faster without it.
2023-06-12 20:59:14 +02:00
Dan Albert
88db6eb5f0
Remove pointless suffixes on banner files.
I think someone just copied this pattern from the icons where the suffix
represented the icon size. These are definitely not 24px banners, and
some of the suffixes are even wrong (_25).
2023-06-12 20:59:14 +02:00
Raffson
d3e727f205
Fix UI not updating properly after loading settings 2023-06-11 21:29:24 +02:00