I am trying to figure out how the fighter spawn function works in Thrawns Revenge 2.2.
It seems like things have changed since Corey released his video in Oct 2016 on adding fighter bays to ships. I am trying to add a couple extra squadrons to the MC80b and the Quasar, but I cannot figure out how to do it properly, as on the <SPACEBEHAVIOUR> line, there is no SPAWN_SQUADRON function. Currently that section of the XML doc for the MC80B looks like:
<Behavior> SELECTABLE, DUMMY_STARSHIP </Behavior>
<SpaceBehavior>ABILITY_COUNTDOWN, SIMPLE_SPACE_LOCOMOTOR, POWERED, SHIELDED, HIDE_WHEN_FOGGED, REVEAL, TARGETING, UNIT_AI, ASTEROID_FIELD_DAMAGE, ION_STUN_EFFECT, NEBULA, DAMAGE_TRACKING</SpaceBehavior>
If I add a SPAWN_FUNCTION and add the ships via the <STARTING_SPAWNED_UNITS_TECH_0>, they will spawn plus the original complement of fighters, plus other ships I didn't ask it to spawn.
For example, with the Quasar, I tried writing it as such and ended up with something like 4 X-Wing Sqns, 3 B-Wing Sqns, 2 Y-Wing Sqns and an A-Wing Sqn for some reason.
<Behavior> DUMMY_STARSHIP, SELECTABLE </Behavior>
<SpaceBehavior>ABILITY_COUNTDOWN, SIMPLE_SPACE_LOCOMOTOR, SPAWN_SQUADRON, TARGETING, POWERED, SHIELDED, REVEAL, HIDE_WHEN_FOGGED, UNIT_AI, ASTEROID_FIELD_DAMAGE, DAMAGE_TRACKING, ION_STUN_EFFECT, NEBULA</SpaceBehavior>
The only thing I can think of is that the reference to Y-Wing_Squadron, 1 no longer means a Y-Wing_Squadron, but possibly a generic group of fighters.
Any ideas or advice would be most welcome.