Roland Johansen
Deity
There are lots of threads about barbarian spawning and how to avoid it. Avoiding the spawning of barbarian cities works similar, just remove the fog of war and they won't spawn. However, I'm interested in the more detailed mechanics of barbarian city spawning/founding. Does anyone know how it works? Has anyone looked into the code of the game to see how it works?
Below are some questions to which I would like to see some answers. Any information that extends my knowledge on the issue would be appreciated, even if it is just a confirmation of some of my suspicions.
-From game experience, it seems that a barbarian city cannot spawn as long as the centre city tile or any of the 8 adjacent tiles are visible to some civilisation. Is this correct?
-It seems that the barbarian city spawning/founding code is different from the city founding code of a real civilisation. A normal civilisation tries to keep its cities at a certain distance of other already founded cities (plot-distance 4 or 5 is optimal). The barbarians seem to spawn their cities in a way as to greedily grab as many good tiles (like resources). This of course means that their cities tend to not fit very well in the settling pattern that the human player or AI tries to create. Does anyone know how the barbarian AI picks its settling spots?
-It seems that barbarians first appear at a certain date but remain somewhat passive and won't enter cultural borders or attack cities (first animal barbarians, then warriors and archers). The type of military unit available to the barbarian civilisation is related to what is available to the various civilisations in the world. Somewhat later, they will start to attack cities and a little later barbarian cities will start to spawn. Each of these events also occurs earlier on the higher difficulty levels than on the lower difficulty levels. What are the triggers for each of these events? I know one of them is related to the average number of cities per player on that continent, but I don't recall the details.
-I regularly find barbarian cities on the continent which I started on or on the continents that the AI civilisations started on, but barbarian cities seem to be rare on islands which are discovered later. It could be a coincidence, but maybe there is some prerequisite for the spawning of barbarian cities which is related to the presence of a real civilisation or the size of the land. Does such a condition exist?
Thanks in advance to anyone who can help me answer some of these questions.
Below are some questions to which I would like to see some answers. Any information that extends my knowledge on the issue would be appreciated, even if it is just a confirmation of some of my suspicions.
-From game experience, it seems that a barbarian city cannot spawn as long as the centre city tile or any of the 8 adjacent tiles are visible to some civilisation. Is this correct?
-It seems that the barbarian city spawning/founding code is different from the city founding code of a real civilisation. A normal civilisation tries to keep its cities at a certain distance of other already founded cities (plot-distance 4 or 5 is optimal). The barbarians seem to spawn their cities in a way as to greedily grab as many good tiles (like resources). This of course means that their cities tend to not fit very well in the settling pattern that the human player or AI tries to create. Does anyone know how the barbarian AI picks its settling spots?
-It seems that barbarians first appear at a certain date but remain somewhat passive and won't enter cultural borders or attack cities (first animal barbarians, then warriors and archers). The type of military unit available to the barbarian civilisation is related to what is available to the various civilisations in the world. Somewhat later, they will start to attack cities and a little later barbarian cities will start to spawn. Each of these events also occurs earlier on the higher difficulty levels than on the lower difficulty levels. What are the triggers for each of these events? I know one of them is related to the average number of cities per player on that continent, but I don't recall the details.
-I regularly find barbarian cities on the continent which I started on or on the continents that the AI civilisations started on, but barbarian cities seem to be rare on islands which are discovered later. It could be a coincidence, but maybe there is some prerequisite for the spawning of barbarian cities which is related to the presence of a real civilisation or the size of the land. Does such a condition exist?
Thanks in advance to anyone who can help me answer some of these questions.
