The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Michael Hauber on June 14, 2013, 12:32:34 AM

Title: 9007 Limit on number of cities generated at map start
Post by: Michael Hauber on June 14, 2013, 12:32:34 AM
After compiling 9007 from the 11.x branch I've noticed what appears to be a limit on the number of cities that can be generated.  If I ask for 64 cities I might only get 13 actually generated.  The number generated seems to go up for a larger map, and go up if the median city size is reduced, almost as if a population density cap has been placed?
Title: Re: 9007 Limit on number of cities generated at map start
Post by: MCollett on June 14, 2013, 06:49:05 AM
Quote from: Michael Hauber on June 14, 2013, 12:32:34 AM
After compiling 9007 from the 11.x branch I've noticed what appears to be a limit on the number of cities that can be generated.  If I ask for 64 cities I might only get 13 actually generated.

Yes, I noticed this too.  I found the problem went away when I turned off clustering (i.e. set the number of clusters to 0), but that may just have been coincidence.

Best wishes,
Matthew
Title: Re: 9007 Limit on number of cities generated at map start
Post by: Vonjo on June 14, 2013, 07:08:56 AM
Simutrans will not generate more cities if there is not enough empty land left on the map. As with Simutrans Experimental, cities are usually only generated near the body of water (river, sea, lake) and on the land with lower attitude. So, chances are that there is not enough water or low-land available on the map.
Title: Re: 9007 Limit on number of cities generated at map start
Post by: Michael Hauber on June 14, 2013, 08:47:38 AM
It was happening for me with clustering turned off.  But what was the problem was I was generating a map with 0 height variation, and when I put in a normal height variation I started getting plenty more cities.  On a 512x512 map with a request for 256 cities several trials gave me roughly 100 or so cities each time, which is probably more than I can sensibly manage anyway.