I have a pile of "scripts" in unit.txt. (Terminology question: what is a "script"? Is unit.txt a script, or is it a set of scripts, i.e., each {} block is a scrip?)
I'm certain I have a mistake that touched off the exception, but I'm not sure where to look. Until your response I wasn't even sure if it was a unit.txt issue. I will search that file to see if anything obvious is out of whack.
Apologies for not getting back sooner. I just use 'scripts' for each file, and 'events' for the events within the file, e.g. the blocks within {}, but there is no right or wrong, and essentially your file is not empty which is good to know.
If you have a crash save from the above please send it over and I'll be happy to take a look.