the problem during initalization is a real problem.
Can you try, if a premade map works?
Little hint:
is what you need.
It get's the number for you .
Some thoughts:
The code will maybe kill the civs, which have the ruins-settler as starting unit.
Because if the settler doesn't start on a plot with a ruin, so that you can't build a city directly after gamestart, AND you have no city, the game will consider the player as dead.
There's a need for a check, if the first city is already founded.
Can you try, if a premade map works?
CITY_RUINS is the 3rd improvement in the list, so it is numbered 2 (the first one starts at 0, remember). I think this is why there's a 2 there.
Little hint:
PHP:
if pPlot.getFeatureType() == gc.getInfoTypeForString('FEATURE_WHATEVER')
is what you need.
It get's the number for you .
Some thoughts:
The code will maybe kill the civs, which have the ruins-settler as starting unit.
Because if the settler doesn't start on a plot with a ruin, so that you can't build a city directly after gamestart, AND you have no city, the game will consider the player as dead.
There's a need for a check, if the first city is already founded.