The first AI error i see in that log is this:
warning: 00:08:40: Error running lua script: ...ta.zip\lua\sim\ai\strategic\assets\friendlyasset.lua(1198): attempt to concatenate local `returnSkill' (a nil value)
stack traceback:
...ta.zip\lua\sim\ai\strategic\assets\friendlyasset.lua(1198): in function `PickSkillUpgrade'
...ock games\demigod\dgdata.zip\lua\sim\ai\herogoap.lua(2697): in function <...ock games\demigod\dgdata.zip\lua\sim\ai\herogoap.lua:2694>
There are several of them.
Then this:
warning: 00:22:18: *AI ERROR: Could not find a valid skill
warning: 00:22:19: *AI ERROR: Could not find a valid skill
warning: 00:22:21: *AI ERROR: Could not find a valid skill
warning: 00:22:25: *AI ERROR: Could not find a valid skill
warning: 00:22:28: *AI ERROR: Could not find a valid skill
So, it looks like perhaps the AI is trying to buy a new skill when it spawns, fails, so then it crashes? Perhaps adding a return statement in the "buy new upgrade" function will work. Ill give it a go later when i have time.