Hi Wrench,
We tested the new version of the script with my team, you did a great job, there is just one line that causes problems, in line 363 of the script "if allgroups and allgroups ["units"] [1] ["coalition"] == _G [unit1 .. 'coastring'] then ".
If you delete a group, the script stops, we change the command so that the script does not of interrogation on a "Array nil".
I do not know if you understand because I use google translate, but I will send you in MP the version of the script that we corrected for you to look at.
Have a good day