Good news - I've tested an identical file, one saying
and the other saying
They both compile fine, but the first doesn't generate any output, while the second does. Absolutely nothing changed other than that; same file, and I didn't even close the KotOR tool text editor between compiles.
I think this pins it down; for some reason, scripts with "Main()" compile, but NWnsscomp doesn't generate any output.
Qui-Gon, do your results match this?