32 Commits

Author SHA1 Message Date
Raffson
d1b484f560
Support for auto-fog
implemented as a setting...
2024-12-26 02:51:58 +01:00
Druss99
6d0dbd4d1c
Bugfix if settings directory doesn't exist (#432)
* bugfix if settings directory doesnt exist

* Create directories in persistency

---------

Co-authored-by: Raffson <Raffson@users.noreply.github.com>
2024-12-21 16:44:31 +00:00
Raffson
64d60e5ccf
Datalink support + pydcs update
Support for 2.9.10.4160, though without Iraq, but finally there's some basic support for datalink...
2024-12-16 03:08:40 +01:00
Raffson
583c87b2e3
Emit game_loaded after restore pre-pretense backup 2024-08-04 01:19:07 +02:00
Raffson
4405764006
Generate warehouses for pretense missions 2024-08-03 22:22:21 +02:00
Raffson
242ef30469
Formatting -_- 2024-07-28 19:09:59 +02:00
Raffson
3d1a5bea67
Adjust pre-pretense backup strategy 2024-07-28 19:05:37 +02:00
MetalStormGhost
e704d2aa53 Large ground spawn support in PretenseMissionGenerator. 2024-07-05 12:29:19 +03:00
MetalStormGhost
e69708ada9 Removed Retribution convoys from Pretense campaigns. Removed deep copies of both coalitions when saving the pre-Pretense generation backup. 2024-05-04 09:24:56 +03:00
MetalStormGhost
40a01218dd Implemented saving of a Pretense pre-generation backup save before generating a Pretense campaign. 2024-05-01 11:01:59 +03:00
MetalStormGhost
64b1410de8 Implemented support for player controllable carriers in Pretense campaigns. This functionality can be enabled or disabled in settings, because the controllable carriers in Pretense do not build and deploy AI missions autonomously, so the old functionality is retained.
Added new options in settings:
- Carriers steam into wind
- Navmesh to use for Pretense carrier zones
- Remove ground spawn statics, including invisible FARPs, at airbases.
- Percentage of randomly selected aircraft types (only for generated squadrons)
intended to allow the user to increase aircraft variety.

Will now store the ICLS channel and Link4 frequency in missiondata.py CarrierInfo.

Implemented artillery groups as Pretense garrisons. Artillery groups are spawned by the Artillery Bunker. Will now also ensure that the logistics units spawned as part of Pretense garrisons are actually capable of ammo resupply.

Fixed the Pretense generator generating a bit too many missions per squadron. Ground spawns: Also hot start aircraft which require ground crew support (ground air or chock removal) which might not be available at roadbases. Also, pretensetgogenerator.py will now correctly handle air defence units in ground_unit_of_class(). Added Roland groups in the Pretense generator.
2024-04-06 15:46:11 +03:00
MetalStormGhost
4c201f25ba Will now correctly generate Pretense campaigns with CJTF factions. 2024-02-06 10:59:21 +02:00
MetalStormGhost
de0802a3c2 Implemented new options in settings:
- Pretense: Extra friendly zone connections - Add connections from each zone to this many closest friendly zones, which don't have an existing supply route defined in the campaign.
- Number of cargo planes per side
- Number of AI SEAD flights per control point / zone
- Number of AI CAS flights per control point / zone
- Number of AI BAI flights per control point / zone
- Number of AI Strike flights per control point / zone
- Number of AI BARCAP flights per control point / zone
- Number of AI aircraft per flight
- Number of player flights per aircraft type at each base
- Number of AI cargo planes per side

Implemented CAS helo mission handling for Pretense. Implemented separate pretense_air_groups container for storing/referencing Flight objects. Tweaked the supply costs of SAM sites and Command centers. Will no longer generate player air starts at roadbases either. Restored the missing DEAD flights to Pretense. Removed spawning of frontline units and moved the JTAC spawning to pretensemissiongenerator.py
2024-02-06 10:59:21 +02:00
MetalStormGhost
595c468ab2 Restored Retribution scripts and triggers to Pretense campaigns. Pretense progress can now be translated back to Retribution. Moved the trigger clearing from pretenseluagenerator.py to pretensemissiongenerator.py
keepActive is now only enabled for airbases and carriers/LHAs, for performance reasons.
2024-02-06 10:59:20 +02:00
MetalStormGhost
a3575995bd Restored compatibility of the Pretense generator after the timedelta -> datetime change and other changes caused by the Liberation merge/sync. 2024-02-06 10:58:44 +02:00
Raffson
e7b84e18d1 Fix errors due to LaserCodeRegistry move 2024-02-06 10:58:43 +02:00
MetalStormGhost
fbbc2536a1 Now generates one transport helicopter squadron for each control point which can operate one. Also implemented generating several Pretense cargo plane squadrons, defined by PRETENSE_AI_CARGO_PLANES_PER_SIDE. Cleaned up PretenseMissionGenerator.generate_air_units() a bit. 2024-02-06 10:58:38 +02:00
Raffson
6f4a12658d Formatting 2024-02-06 10:58:38 +02:00
MetalStormGhost
8520764308 Run aircraft_generator.generate_packages() only once per ATO, instead of multiple times. Fixed the duplicated flights issue. 2024-02-06 10:58:36 +02:00
MetalStormGhost
1e3f6baceb Changed tanker_tacan from "N/A" to 0.0 when the tanker is not compatible with TACAN, in order to avoid mission script errors. 2024-02-06 10:58:36 +02:00
MetalStormGhost
00bcd547d3 Implemented a separate generate_packages() method in PretenseAircraftGenerator to prevent generating the same ATO multiple times over. 2024-02-06 10:58:35 +02:00
MetalStormGhost
94c1455249 Now generates air units for both sides at airfields. 2024-02-06 10:58:34 +02:00
MetalStormGhost
2e889325e1 Calling the constructor of MissionGenerator in PretenseMissionGenerator in unnecessary, so leaving it out. 2024-02-06 10:58:31 +02:00
MetalStormGhost
ddc5709a17 Add CJTF factions to the coalitions in Pretense, if they're not being used in the Retribution campaign. 2024-02-06 10:58:30 +02:00
MetalStormGhost
4a859e00ae Add CJTF factions to the coalitions in Pretense, if they're not being used in the campaign. 2024-02-06 10:58:28 +02:00
MetalStormGhost
acf035697f Implemented dynamic outputting of JTAC units to the Pretense init script. 2024-02-06 10:58:28 +02:00
MetalStormGhost
73f7d94bda Dynamically generate Pretense air groups (pretense/pretenseluagenerator.py) 2024-02-06 10:58:26 +02:00
MetalStormGhost
cc713f089a First version of PretenseLuaGenerator, inherited from LuaGenerator 2024-02-06 10:58:25 +02:00
MetalStormGhost
94d755e9a0 Cleaned up some of my recent Pretense code. 2024-02-06 10:58:21 +02:00
MetalStormGhost
d09cb70948 Will now generate ground units for the Pretense campaign. 2024-02-06 10:58:21 +02:00
MetalStormGhost
db95fc17dc Will now generate control point trigger zones and AI aircraft for the Pretense campaign. 2024-02-06 10:58:20 +02:00
MetalStormGhost
8402e5d9bb Copied three files as templates/inheritance for generating Pretense campaigns from Retribution campaigns:
- missiongenerator.py
 - aircraftgenerator.py
 - triggergenerator.py
2024-02-06 10:58:19 +02:00