The International Simutrans Forum

 

Author Topic: extremely large cities  (Read 2144 times)

0 Members and 1 Guest are viewing this topic.

Offline ojii

  • *
  • Posts: 149
  • Languages: EN, DE, JA
extremely large cities
« on: July 06, 2013, 06:06:53 AM »
Running e684a47722e4f5b40b0216094a6b427fd299519d with pak128.Britain-ex 0.8.3 (on OSX) I get very odd behaviour when creating a new map.


The settings are all the default, except for "Use timeline year" which I turned on to 1899.


Creating a map in that environment takes a very very long time, particularly the "creating cities part". This time varies a lot, sometimes it's just a few minutes, sometimes it's seemingly stuck and after 10 minutes there's still no map. Once the map finally loads, the reason for it becomes apparent, it creates absolutely massive cities way beyond the "Median Citizens per City" number of 1600.


Screenshot of a very "fast" load (~1minute) but still with a, in my opinion, grossly disproportioned city:


http://uploads.ojii.ch/simutrans/1.png


I'd assume this isn't expected behaviour, so is this a config mistake on my end (maybe turn "big cities" to 0?), or a bug?




EDIT:


Started a new game with "big cities = 0", all other options as above (Median Citizens = 1600), I still get 8 cities over 10'000 citizens (seems a bit far away from the median), with the top one at 40'000 citizens. City creation seems to go a bit crazy on my system..
« Last Edit: July 06, 2013, 06:12:05 AM by ojii »

Offline Junna

  • Devotee
  • *
  • Posts: 1081
Re: extremely large cities
« Reply #1 on: July 06, 2013, 06:31:03 AM »
I can confirm that - even on the start-up default little island that is created - the program loads very slowly during the "creating cities" part occasionally. Sometimes it loads very briskly, but at other times makes no progress for a 2-3 minutes. Usually this seems to be when the cities are larger. Neroden's been working on the city code recently though, so it is in a state of flux, I guess.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18583
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: extremely large cities
« Reply #2 on: July 10, 2013, 10:51:34 PM »
The generation of cities in Simutrans-Experimental is designed to follow Zipf's law, which does, in fact, mandate a very great disparity between the largest and most other cities.

Offline MCollett

  • *
  • Posts: 214
  • Languages: en
Re: extremely large cities
« Reply #3 on: July 14, 2013, 05:09:16 AM »
The generation of cities in Simutrans-Experimental is designed to follow Zipf's law, which does, in fact, mandate a very great disparity between the largest and most other cities.

More quantitatively, if you have N cities with a median population of p, the largest one should have a population of around N*p/2, and the next-largest around half that size.  So if you have 100 cities with a median of 1600, the largest should be about 80000, and the next largest about 40000.

Best wishes,
Matthew