Hearts of Iron IV

Hearts of Iron IV

Not enough ratings
Road to 56: Squadron Size Air Wings
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
339.038 KB
May 14, 2023 @ 1:36pm
Mar 15, 2024 @ 11:37am
3 Change Notes ( view )

Subscribe to download
Road to 56: Squadron Size Air Wings

Description
Submod for Road to 56 to change the size of Air Wings. This is functionally the same as my vanilla version but made to be compatible with Road to 56.

Changes the Air Wing size to be equal to that of a squadron. Light airframes are 24 aircraft to a squadron. Medium, Recon, and Heavy airframes are 12 aircraft to a squadron. Carrier aircraft remain at 10 to a squadron, but have been changed to stay at 10 when on land. Mod has been updated so that transport planes are set to 50. Anything below 50 seems to prevent airborne operations.

Incompatible with any mod that changes air wing size or adds any new air unit types. Should be compatible with everything else. May cause lag, untested though. Please let me know if there are any issues.

Disclaimer: I'm not associated with the Road to 56 team and everything related to that mod is their work, unless stated otherwise by them. All I did was change the air wing sizes.

Vanilla version: https://steamcommunity.com/sharedfiles/filedetails/?id=2872975666
MD version: https://steamcommunity.com/sharedfiles/filedetails/?id=2875293927
CWIC version: https://steamcommunity.com/sharedfiles/filedetails/?id=2966883599
The Great War version: https://steamcommunity.com/sharedfiles/filedetails/?id=2929151379
18 Comments
Mattcaton Apr 14 @ 4:26am 
Unfortunately atm this does cause a fatal crash upon any civil war starting, which is a massive shame as I think this mod is great for immersion and realism.

Hopefully the mod creator is willing/able to update
Uncle Bill Mar 16 @ 9:39am 
It needs an update. It is currently causing a crash during the start of the Spanish Civil War (I've rounded it down to this mod, since deactivating it allows the game to continue as normal.)

Interestingly enough, the last two lines on error.log imply it's not, in fact, this mod:

[13:06:31][1936.07.17.16][character.cpp:1129]: events/LAR_Spain.txt:697: set_nationality: Luis González de Ubieta already has an advisor role with slot type navy_chief

[13:06:31][1936.07.17.16][character.cpp:1165]: events/LAR_Spain.txt:697: set_nationality: Luis González de Ubieta already has a unit leader role

However, since disabling this mod allows the game to continue without crashing, I am forced to assume that it is this mod and it needs an update.
T Dec 28, 2024 @ 12:50am 
4/2 lmao last one

NDefines.NAir.ACE_EARN_CHANCE_PLANES_MULT = 0.005 -- Ace generation chance per aircraft. Chance is rolled twice because decimal numbers can't be small enough

The probability of generating an ace is two fold:
1) flat 1% change to even try
2) dynamic C = 100% * (0.005 * <wing size>)^2

for wing_size = 200, this comes to 100%; for wing_size = 100, this comes to 25%; for wing_size = 24, this comes to 1.44%... (assuming that the calc is still used in this post-custom-wing-size world!)

I set this to "NDefines.NAir.ACE_EARN_CHANCE_PLANES_MULT = 0.007" which makes the chance to generate an ace ~2.8% in 1% of cases. Since we're running 24 and 12 wings, we have like 4x-8x more wings than normal, so that shooooould(?) make a similar amount of aces (at least for 12 wings). I might make it lower or raise after testing, not sure.
T Dec 27, 2024 @ 11:56pm 
3/2 lol

There's also:
NDefines.NAir.AIR_WING_BOMB_DAMAGE_FACTOR = 2, -- Used to balance the damage done while bombing.

From reading a hoi4 forum post (a post called "How many TACs does it take to strat bomb an island?"), to quote user bitmode:

"...damage produced by the bombers is NAir.AIR_WING_BOMB_DAMAGE_FACTOR * <wing's strategic bombing> / 100 * <# of planes> * vDamageFactor..."

Where I think 100 is the default wing size, so it's basically calc'ing "percent of full air wing". Since we're doing smaller wings, the bombers will be doing 12% of their 'regular' damage... I therefore adjusted the bomb_factor to 17 (from 100/12*2=16.6666)

disclaimer: I'm looking at this late at night, so double/sanity check anything I say lol

EDIT: On second thought, while the 12-wing strats only do 12% of the damage, if you have 100 planes/~8 wings, that's even? Though due how min loses from state AA are calc'ed, I think 12-wings will take a lot more losses
T Dec 27, 2024 @ 11:01pm 
2/2

There's also two other defines:
NDefines.NAir.MIN_PLANE_COUNT_PARADROP = 50
NDefines.NAir.BASE_UNIT_WEIGHT_IN_TRANSPORT_PLANES = 45.0

These mean that "you need 45 transports per division, though you need at least 50 to run the drop"... i.e., for 1,2,3,... divisions of para, you need >50<,90,135,... transports. since you need a min of 50 to run the drop, if a single plane gets shot down on a 1div drop, it would cancel that drop; for this, I personally left the transports at 100 size, to avoid issues with that min_plane_count and since I didn't want to change the number of transports/para div.
T Dec 27, 2024 @ 11:01pm 
So I've been looking into custom air wing sizes, and from my findings, I'd suggest adding a "common/defines/99_squadron_size_air_wings.lua" file, and adding the following defines (I left them at default values w/ dev comment, but like ace wing size might be set to, say, 24):

NDefines.NAir.NAVAL_COMBAT_EXTERNAL_PLANES_MIN_CAP = 20 -- Min cap for planes that can join naval combat
NDefines.NAir.ACE_WING_SIZE = 100 -- size of wing ace bonuses are set up for. if lower more bonus, if higher less bonus
NDefines.NAir.AIR_WING_AVERAGE_SIZE = 100 -- Eyeballed average amount of airplanes in wing. Used when calculating air volunteer.

Now granted, I have no idea if these defines actually are still used, but they're the relevant ones I've found so far!!
Jax  [author] Nov 15, 2024 @ 10:34pm 
I'll work on getting an update out on sunday. Gotta figure out how the new systems affect wing sizes.
advancedcapital Nov 15, 2024 @ 3:32pm 
Update please :)
Jax  [author] Mar 15, 2024 @ 11:37am 
Updated. Should no longer crash now.
𝐼𝓃𝓈𝑜𝓂𝓃𝒾𝒶 Mar 10, 2024 @ 9:13am 
It's just with the Road to 56 mod I think.
I tried messing around with it to see if there could be anything else, but it seems like no.