HW-PlayersPatch / Development

Players Patch development repository
7 stars 2 forks source link

Strike Group Supply Limits #263

Closed cloaked2222 closed 4 years ago

cloaked2222 commented 4 years ago

In hw2c and HWR v1.0, the three strike groups Capital Phalanx, Frigate Line, and Fighter Screen did not have supply limits. So you could put your whole fleet in a strike group to move it around. v2.0 added supply limits to formations and strike groups. Supply limits have a purpose for formations, but probably aren't a good idea for these 3 strike groups. If you build a full unit cap of units and put them in capital phalanx, the game splits them into like 5 or 6 SGs.

scripts\strike groups SupplyLimits should be increased to allow default full unit caps. Or maybe 999, as you'll have more ships in the campaign due to different SP unit caps and capturing ships. Compare the file with v1.0, as it looks like many changes were made in v2.0. We might want to remove/reduce stuff that slows the strikegroup down as more units are added to it.

cloaked2222 commented 4 years ago

I tried changing the total unit limit to 999, but there seems to be a hard limit around 64-66... I'm not sure if this is limited by the engine/exe, or perhaps by what I'd call slots in the Children table (basically coordinates in space where units can go in a SG). Perhaps more slots can be added in the Children table, idk. For now we're able to set any unit type's supply limit up to 64-66 though.

I changed Capital Phalanx, Frigate Line, Fighter Screen, and Wall. I included wall as well as its a compact formation. The other formations tend to tear at the edges and have targeting issues if you make them bigger so I left them alone. Here's the new numbers: UnitLimit = 66 SupplyLimits = { LayoutFighter = 65, LayoutCorvette = 66, SalvageCorvette = 0, LayoutFrigate = 54, LayoutDestroyer = 7, LayoutBattleCruiser = 3, LayoutResource = 64, }

d41efd5df3fcc44a7a5ccada99a53fd300d2d1ef

This lets you put all frigs/dds/cruisers in one strike group on large unit caps. You'll need additional strike groups for fighters and corvettes. ss00056