The International Simutrans Forum

Simutrans Extended => Simutrans Extended Development => Topic started by: cwlau9 on July 26, 2009, 04:51:25 PM

Title: [Bug 6.1] Creating new game
Post by: cwlau9 on July 26, 2009, 04:51:25 PM
When I creating a new game, I found there is a bug regarding to the "cities ignore height".

If I enable this settings, games cannot be created and simutrans just quit with error.

If I disable this settings, games can be created successfully with only a few cities, about 50. I have tried to create a game with more cities, say 75 - 100 cities, the game just hang and cannot be created successfully.

Please check, thank you for your effort :)
Title: Re: [Bug 6.1] Creating new game
Post by: jamespetts on July 26, 2009, 05:15:50 PM

thank you for the bug report. Unfortunately, I might not be able to look into bugs or release new versions for a time because of a serious computer failure ( that I have experienced recently.

However, in the meantime, can you let me know what the error message that you get is? As to generating maps with a greater number of cities, the more cities that you generate, the slower that map creation is, so when you write that it "hangs", it may very well be working, just very slowly. The system for detecting heights makes it slower than it was before. A sufficiently large map with very many cities can take 20-30 minutes to create, depending on the speed of your computer.

Edit: I have managed to fix my computer, and find and fix this bug: it should be resolved by the next version. In the meantime, you will need to ensure that "cities ignore height" is disabled when starting a new map.
Title: Re: [Bug 6.1] Creating new game
Post by: cwlau9 on July 30, 2009, 12:09:21 PM
Thank you for your effort.

I found some pattern on the "hang".

If the map is too small for all the cities to place with, the generation process will just hang (at least no response for about 3 0 minutes). I found it no problem when I generated the map with the same parameters in previous version (v5.1) before the introducing of height and cities. The map came out in less than 1 minute.

For example,

Map size       Number of Cities
128 x 128        32
192 x 192        50
256 x 256        75

It seems that the old generation method tries to generate as many cities as it can and gives up if it can't generate any more. However, your generation route will try to find empty places for placing new cities. Unfortunately, no empty space can be found for placing new cities and the looping for generating cities does not terminate.
Title: Re: [Bug 6.1] Creating new game
Post by: jamespetts on July 30, 2009, 01:07:48 PM
If I recall correctly (I am not in front of the code now), I think that I have fixed this, too.