838 Commits

Author SHA1 Message Date
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
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
Raffson
e2d9a794b8
Invert factions when "Invert Map" is set in NGW 2023-07-02 13:56:11 +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
Raffson
d3e727f205
Fix UI not updating properly after loading settings 2023-06-11 21:29:24 +02:00
Raffson
7e9380162c
Don't remove transfers but disable if insufficient room 2023-06-11 21:29:23 +02:00
Raffson
c69f536639
Improve accuracy w.r.t. parking space info 2023-06-04 21:45:37 +02:00
Raffson
fbdc3e896e
Tweak parking info in air wing config dialog
Update changelog.md
2023-06-04 19:12:06 +02:00
Dan Albert
a97fd69828
Show parking capacities in air wing config.
This does show the theoretical parking use of full squadrons even when
the new rules are not enabled. Since limits can be enabled manually
later in the game, it's still useful information, even if it's a bit
misleading.

https://github.com/dcs-liberation/dcs_liberation/issues/2910
2023-06-04 14:15:58 +02:00
Raffson
c559d6e2be
Follow-up on flight TOT offset 2023-06-04 01:50:46 +02:00
Dan Albert
0acf970443
Add UI for TOT offset adjustment.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2912.
2023-06-04 00:36:51 +02:00
Raffson
e018ef7f11
Formatting + typing 2023-06-03 19:27:50 +02:00
Raffson
2ed85792b9
Split full-strength start from squadron aircraft limits 2023-06-03 16:04:27 +02:00