@Prof. Garfield, I think I found a bug with the LUA files.
After I played my first turn, two units, which will be available later in game by technology research will be spawned once for every AI. When I play the first turn without any LUA codes, it won't occur.
I then used yout template without any changes and the bug occurs again.
So the bug could be caused by the LUA files.
I'm not sure what you mean here. Is the bug that units are being created when they are not supposed to be? Do you have legacy events that are working differently than you expect? Or, does using the Lua Events generate an error at some point even though you haven't changed the files?