Within your ai (petra) javascript code you have on line 140 a typeError, saying
I'm using the latest 0 A.D. version (Ken Wood, bless him) for Linux [Mint]..
See attachment for more info.
For some reason the key and i variable combination results in a non-existing object from this 2d array.
Kind regards,
Melroy van den Berg