1663 Commits

Author SHA1 Message Date
Raffson
c559d6e2be
Follow-up on flight TOT offset 2023-06-04 01:50:46 +02:00
Dan Albert
7a57bd3ee0
Save the TOT offset in the flight plan.
Prep work for exposing this to the UI.
2023-06-04 00:31:38 +02:00
Raffson
e018ef7f11
Formatting + typing 2023-06-03 19:27:50 +02:00
Raffson
b318bc4941
Tweak ingress waypoint tasks for OCA-Runway, STRIKE & FighterSweep 2023-06-03 19:04:38 +02:00
Raffson
962c64d065
Refine DCS tasks for different mission types 2023-06-03 19:04:37 +02:00
Raffson
bbf8e69659
Split Anti-Ship from BAI 2023-06-03 19:04:37 +02:00
Raffson
2ed85792b9
Split full-strength start from squadron aircraft limits 2023-06-03 16:04:27 +02:00
Raffson
703da303ee
Migrator fix for 'Hipico' 2023-05-30 21:36:50 +02:00
MetalStormGhost
54a471fe82 Improved convoy form-up behaviour
Adds one waypoint with PointAction.Cone and then orders convoys on road. This is done to make convoys start to move immediately, instead of waiting (potentially) a long time for them to form up and actually start moving.

Credit to Farrago for suggesting this.
2023-05-30 21:12:05 +02:00
MetalStormGhost
1540b2cf31 Use SEAD task for stock Tornado SEAD/DEAD
The stock Tornado is capable of the SEAD task in DCS, but not the CAS task, so use SEAD for Tornadoes when flying SEAD or DEAD missions. Also, feel free to add to the list if other airframes should use SEAD as well for cosmetic reasons (would show SEAD task in the mission editor and F10 map in-game).
2023-05-29 12:20:04 +02:00
Raffson
198ff7d8a3
Allow deletion of certain types of waypoints
Resolves #60
NAV/REFUEL/DIVERT waypoints should have no effect on the timings.
2023-05-29 00:11:27 +02:00
SnappyComebacks
8363a7e8fa
Set units on the frontline to Hidden On MFD. (#2669)
All groups (friendly and enemy) that are part of the front line are set
to `Hidden On MFD`. This is a group level filter, and can not be applied
on a per unit basis.
2023-05-28 21:20:12 +02:00
Raffson
7582040d41
Allow harriers to operate from FOBs/FARPs
Resolve #109
2023-05-28 21:05:17 +02:00
Raffson
b8cb1a6273
Fix corruptions due to overpopulation 2023-05-28 15:17:40 +02:00
Raffson
b958e9b095
Avoid overpopulating bases
With the new aircraft limitations for squadrons, airfields/fobs/farps could get overpopulated at campaign start. This would cause all sorts of gnarly things like squadrons ending up with a negative amount of "owned aircraft".
2023-05-28 14:28:41 +02:00
Raffson
78990b8953
Use actual procurement ratio for turn 0 2023-05-28 00:23:53 +02:00
Raffson
4898cdb614
Reuse the settings screen in NewGameWizard
Resolves #123
2023-05-27 21:50:08 +02:00
Raffson
72eb6622ac
Cleanup country_shortname, use country.shortname instead 2023-05-21 14:13:33 +02:00
Raffson
f9e15951f2
Support for Iron Dome v1.2 by IDF Mods Project
Resolves #124
2023-05-20 23:48:53 +02:00
Raffson
a46e32cdf1
Add Spanish Naval Assets pack v3.2.0 by desdemicabina
Resolves #119
2023-05-20 20:17:54 +02:00
Raffson
93b3157c35
Add 'Fog' class to CustomUnpickler
This class also got refactored and moved into its own package, hence we need to add it to the custom unpickler
2023-05-20 01:41:37 +02:00
Raffson
5eee136189
Fix final country-refactor related issues? 2023-05-20 01:41:37 +02:00
Raffson
1a5e31c01a
Migrate squadron countries 2023-05-20 01:41:37 +02:00
Raffson
f72f3316f4
Fix bug in migrator 2023-05-18 23:05:57 +02:00
Raffson
5909ce372b
Remove debugging try-except 2023-05-18 22:36:17 +02:00
Raffson
386844378e
More save-compatibility changes 2023-05-18 22:33:11 +02:00
Raffson
99b56f1ab7
Update campaign version 2023-05-18 18:51:35 +02:00
Raffson
978e3e4de2
Formatting + type annotations 2023-05-18 16:29:20 +02:00
Raffson
da109146c9
Fixing issues after using actual Country in Faction 2023-05-18 16:24:49 +02:00
Raffson
cca45d3729
Fix save-compat issues 2023-05-18 14:37:34 +02:00
Raffson
b14059e134
Fixing tests + mypy issues 2023-05-18 14:12:41 +02:00
Raffson
71f6186a88
Reuse Ghosti's NightMission conditions 2023-05-18 13:40:29 +02:00
Dan Albert
0e139b8640
Make wind speed moddable.
These should probably be overridable per theater and per season, but
even with that we'll want some defaults.

https://github.com/dcs-liberation/dcs_liberation/issues/2862
2023-05-18 13:33:39 +02:00
Dan Albert
8ed843a9cf
Move and split up weather.py.
This is getting out of hand, and I'm about to make it worse.
2023-05-18 13:31:26 +02:00
Dan Albert
080d346517
Rework wind speed Weibull inputs, tune.
The previous method of using a uniform scalar of the MSL wind speed for
higher altitudes didn't offer enough control. In particular, the shape
needs to be quite different to skew low, mid, high.

This patch reworks that system so the parameters of each distribution
are configured per-altitude level. To keep some continuity between
altitudes (on a windy day, all levels should have higher wind speeds on
average), the wind speed of the lower altitude will be added to the
scale value of the higher altitude.

Since it wasn't practical to approximate the previous behavior with the
new system, this also handles the tuning of each. The low altitude
speeds remain mostly unchanged (typically around 5 knots expect for
thunderstorms), but the average speeds for other altitudes went up to
more closely match the previous intent but without the massive
overshoot. At 2000m wind speeds are typically in the 20-25 knot range
now, and 8000m 30-50 knots.

https://www.quora.com/What-is-the-average-wind-speed-at-different-altitudes
has some of the source data, and Quora is the most authoritative source
there is. It claims that cruise altitude winds can get "as high as 150
knots", but doesn't claim anything about the average. I had a
surprisingly difficult time finding good data for cruise altitude air
speeds for non-jet stream paths (though many of our maps are in jet
streams), so I just eyeballed it from
https://turbli.com/wind-during-flights/.

https://github.com/dcs-liberation/dcs_liberation/issues/2861

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2863.
2023-05-18 13:29:02 +02:00
Dan Albert
73e0cbe182
Use weibull distribution for wind generation.
Wind speeds should not be uniformly distributed. This switches to a
Weibull distribution which allegedly (see the bug) is good enough.
Experimentally that seems true as well, though I know nothing about how
wind works irl. This at least looks like it'll generate reasonable
variation in missions while keeping the 1st through 3rd quartile
behaviors from getting out of hand.

I'm very uncertain about the scaling factor aspect of this. Naively the
wind speeds at different altitudes ought to be somewhat correlated, but
I'm not sure how much, and whether this kind of scaling is at all the
right way to do it. As before, meh, close enough?

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2861.
2023-05-18 13:29:02 +02:00
Raffson
b750099b16
Add missing tasks in aircraft yamls 2023-05-18 13:14:22 +02:00
Raffson
f00a3fb1d2
pydcs update: refactored livery-scanner 2023-05-16 21:45:27 +02:00
Raffson
1b1090d78f
Fix exception wrt typing 2023-05-16 21:45:26 +02:00
Raffson
34645560bf
Migration changes 2023-05-16 21:45:26 +02:00
Raffson
785beffee0
Cleanup after cherry-picking... 2023-05-14 21:37:24 +02:00
Dan Albert
b44249317a
Remove old aircraft selection mode.
New mode seems to be working well.
2023-05-14 21:04:43 +02:00
Dan Albert
0608089eb0
Use the actual Country type instead of the name.
We want other pieces of country information (in particular the short
names). This cleans up a lot of code anyway.

As an added bonus, this now catches squadrons that used invalid names
which would previously be passed through to pydcs and... then I don't
know what would happen.
2023-05-14 21:04:09 +02:00
Dan Albert
5c07a2556e
Add option to limit squadron sizes and begin full.
Adding temporarily as an option to make sure it's not a terrible idea,
but the old mode will probably go away.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1583.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2808.
2023-05-14 20:56:58 +02:00
Dan Albert
f719e1cfe7
Add an option to prefer primary tasked aircraft.
We're still using mostly the same aircraft selection as we have before
we added squadrons: the closest aircraft is the best choice.

This adds an option to obey the primary task set by the campaign
designer (can be overridden by players), even if the squadron is farther
away than one that is capable of it as a secondary task.

I don't expect this option to live very long. I'm making it optional for
now to give people a chance to test it, but it'll either replace the old
selection strategy or will be removed.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1892.
2023-05-14 20:33:55 +02:00
zhexu14
790d08fa13
enable AEWC missions on FOBs 2023-05-14 17:30:20 +02:00
Dan Albert
03c48376c4
Disallow squadrons from disabling mission types.
After this change, players will always have the final say in what
missions a squadron can be assigned to. Squadrons are not able to
influence the default auto-assignable missions either because that
property is always overridden by the campaign's air wing configuration
(the primary and secondary task properties). The `mission-types` field
of the squadron definition has been removed since it is no longer
capable of influencing anything. I haven't bothered cleaning up the now
useless data in all the existing squadrons though.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2785.
2023-05-14 17:18:55 +02:00
Raffson
5e2625ad21
Propagate changes from Liberation 2023-05-14 17:09:41 +02:00
Raffson
711d102425
Only use bold font on kneeboard
Should fix an issue where letters seem transparent in VR
2023-05-14 16:54:48 +02:00
Raffson
231a857813
Fix mypy errors 2023-05-14 15:16:21 +02:00