Yeah appears to be line 1513 that fails, it's trying to get the details of the template aircraft but even though line 1507 seems to work ok as you don't get the error from 1509 in the log something has changed so that when the code tries to get the group for the template aircraft and then use it to get the name which is then passed to the mist function to get the template aircraft details like skin etc the getName part fails. So I think the getGroup is not returning anything. Possibly the update altered how getGroup works with late activation units (which is what the template aircraft is).
I notice that you seem to be using the beta, is it possible for you to try it on the latest release version? If so give it a go and advise what happens.
function gcicap.spawnFighterGroup(side, name, size, airbase, spawn_mode, task, zone, cold)
1506 local template_unit_name = gcicap[task].template_prefix..side..math.random(1, gcicap.template_count)
1507 local template_unit = Unit.getByName(template_unit_name)
1508 if not template_unit then
1509 gcicap.log:error("Can't find template unit $1. This should never happen.\
1510 Somehow the template unit got deleted.", template_unit_name)
1511 return nil
1512 end
1513 local template_group = mist.getGroupData(template_unit:getGroup():getName())
1514 local template_unit_data = template_group.units[1]
1515 local airbase_pos = airbase:getPoint()
1516 local group_data = {}
1517 local unit_data = {}
1518 local onboard_num = template_unit_data.onboard_num - 1
<edit>
I'm seeing other people report problems with getGroup so looks like you are waiting for a hotfix.
Last edited by Stonehouse; 12/18/16 11:12 PM.