Help with the EntiyModifier "FightersPerSquadron"

Hello fellow modding community I have a little problem regarding the modifier "FightersPerSquadron"

The goal of the modification is to automatically increase the number of fighters/bombers in the squads of a capital ship when it levels up

I did already have success with making a passive ability that does the job but I noticed that in the entity files of the capital ships there are very simple and short versions of my idea that increase for example the hull or shield points per level

For example:

MaxHullPoints
    StartValue 250.000000
    ValueIncreasePerLevel 120.000000

So I tried putting this under those lines (just as an example):

FightersPerSquadron
    StartValue 2.000000
    ValueIncreasePerLevel 2.000000
But that just resulted in the game freezing at the loading screen :(

I tried some different ideas but none actually worked (listing them all would be a bit too much I guess) so I finally decided to ask you guys for help because the solution with the passive ability is quite complicated and I do think it should be possible in a much simpler way

Thank you in advance and also thank you for all your guides and collections of modifiers etc. Without this forum I would´ve never been able to mod this game in the first place :)

8,677 views 2 replies
Reply #1 Top

You can increase squad per levels in the capital ship entity file:

CommandPoints
StartValue 7.800000
ValueIncreasePerLevel 0.600000

You can't add fighters per squadron though in the same file. And yeah, adding lines the game isn't expecting will cause a mini-dump.

The passive ability will work for up to 4 levels up upgrade if it's chosen, There isn't a way to just have it grow per level on it's own though.

Reply #2 Top

Yeah I know about increasing the number of squads already (it eventually is a feature in the game) but thanks for the information

Well that´s really sad to hear I honestly thought I just missed something totally obvious or really well hidden but I´ll continue to fiddle around with the files anyways maybe some miracle will happen :P (I just wanted to maybe tone down the lategame fps-drops by having fewer squads with more fighters instead of the current system)

Thanks for the quick response zombie I really appreciate the modding community of this game :)

(If I may find my miracle I´ll let you know of course)