saarworres
Chieftain
Hello
First:
I'm german, and I use my english not as often as I should.
So the mass of my english skills are based on my school grammar long time ago.
Ok let' go on with the important stuff.
I want to use the terra map without the restrictions of the player starting positions (starting positions all over the world instead of all player starts on the biggest landmass). Because the editing the scale of the Continent or Custom continent in the XML-Files generate mostly a very weird worlds (great lakes and very large areas of something i would call fjords. Mostly it looks like a rotten pangea.
So you cannot sure that the coastline you have found is a coastline to open water or to a fjord or megalake. Apart from the lucky times you starts on one of the many small peninsulas in the fjord area) .
I had the Idea that the terra map with some upscale seems to fit all the things i want. Only the starting positions are an barrier.
Therefore I take a closer look at the terra.py file in the publicmaps folder and have some questions.
Main question:
The following lines seems to be the function to control the starting positions of the civ's. At least, to me it seems to be so.
I have some experience with different other scripting languages but not with python.
But if I'm right, the following line is the key-sentence:
the meaning of these lines seems the following to me:
Take the supposed starting position and check if the position is on the biggest landmass.
If not generate a new position and check again. If it does, go on with the check of distance between the Civ starting-positions.
So it should be enough to change the return to true in every case and the positions are random???
As simple as ist seems to be??
And so on:
I had edited my CIV4WorldInfo.xml to gain the gigantic map avaiable. But the values I've added seem to contradict the values hardcoded in the py-File. Which of these values had the priority?
The py-values first instead the xml-values? Or the opposite? Or will the values be reckoned?
My thoughts go to the first variant but I'm not sure. At least, do I need an new line in the py-file for the gigantic-world-size entry's in the other files? Or is this equal? In fact it seems to me that in this case the vals of the xml-files will be the important for the game and the missfits the prerequisite of an terra-map seed.
If anyone could answer one of these questions it will help me a lot. Thanks.
First:
I'm german, and I use my english not as often as I should.

So the mass of my english skills are based on my school grammar long time ago.

Ok let' go on with the important stuff.
I want to use the terra map without the restrictions of the player starting positions (starting positions all over the world instead of all player starts on the biggest landmass). Because the editing the scale of the Continent or Custom continent in the XML-Files generate mostly a very weird worlds (great lakes and very large areas of something i would call fjords. Mostly it looks like a rotten pangea.

So you cannot sure that the coastline you have found is a coastline to open water or to a fjord or megalake. Apart from the lucky times you starts on one of the many small peninsulas in the fjord area) .
I had the Idea that the terra map with some upscale seems to fit all the things i want. Only the starting positions are an barrier.
Therefore I take a closer look at the terra.py file in the publicmaps folder and have some questions.
Main question:
The following lines seems to be the function to control the starting positions of the civ's. At least, to me it seems to be so.
Code:
def findStartingPlot(argsList):
[playerID] = argsList
def isValid(playerID, x, y):
map = CyMap()
pPlot = map.plot(x, y)
if (pPlot.getArea() != map.findBiggestArea(False).getID()):
return False
return True
return CvMapGeneratorUtil.findStartingPlot(playerID, isValid)
But if I'm right, the following line is the key-sentence:
Code:
if (pPlot.getArea() != map.findBiggestArea(False).getID()):
return False
return True
return CvMapGeneratorUtil.findStartingPlot(playerID, isValid)
Take the supposed starting position and check if the position is on the biggest landmass.
If not generate a new position and check again. If it does, go on with the check of distance between the Civ starting-positions.
So it should be enough to change the return to true in every case and the positions are random???
As simple as ist seems to be??
And so on:
I had edited my CIV4WorldInfo.xml to gain the gigantic map avaiable. But the values I've added seem to contradict the values hardcoded in the py-File. Which of these values had the priority?
The py-values first instead the xml-values? Or the opposite? Or will the values be reckoned?
My thoughts go to the first variant but I'm not sure. At least, do I need an new line in the py-file for the gigantic-world-size entry's in the other files? Or is this equal? In fact it seems to me that in this case the vals of the xml-files will be the important for the game and the missfits the prerequisite of an terra-map seed.
If anyone could answer one of these questions it will help me a lot. Thanks.