Yes....this error again...it's become a royal pain in the ass for me, so I figured it's about time I solve this mystery...
It always seems to crop up in mods where I remove mines, and it definitely is related to the Advent with their fancy flying homing mine squadrons...
So, to keep things simple, I made a simple mod that did 3 things -- I removed the minelayer squadron from the:
- Entity manifest
- Advent carrier entity
- Advent hangar entity
Played the game, let the AI do its thing, and I quickly got the error cited above...so, I did a little more modding and removed the minelaying strikecraft ("fighter") from the entity manifest....that didn't make the problem go away either...
Anyway, I decided to move on with my mod which happens to reduce the number of squadrons on the aeria and advent hangar...low and behold, the problem went away...
To test it, I made a simple mod that removed the minelayer squadron and fighter from the entity manifest, removed the minelayer squadron from the advent carrier and hangar, and that reduced the number of squadrons on the advent carrier and hangar from 3 to 2...as of yet, the error has not cropped up yet despite playing a few games with plentiful vicious advent AIs...
So, could it be that for frigates and structures, having more squadrons than types of SC to pick from could cause this error? That makes absolutely no sense, but why else would reducing the squadrons an aeria has from 3 to 2 make a difference in this matter?