News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

build_time for MON buildings

Started by Carl, November 20, 2011, 12:02:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Carl

I've discovered the following quirk when developing pak64.experimental, but I don't think it's Experimental-specific.

In the .dat file for monument (MON) buildings, one can specify a build_time. As I understand it, this represents the population which a city must reach before it can obtain a certain building.

However, this doesn't always appear to be respected upon map generation. Monuments with a build_time of 10000 will be present in cities as small as 3000 citizens when creating a new map. Is this a bug, or have I misunderstood the features here?

prissi

The counter is an internal counter, which can only go upwards. In case of lots of homeless or towns which were demolished, a great difference can occur. But this should not occur during startup. Can you cnfirm this happens in standard?

Carl

Yes, I can reproduce this in Standard. The following building, programmed as "mon", has a build_time of 10000. But on the last map I generated in Standard it appeared in a city of 3,506 citizens with no homelessness.

pak file: http://dl.dropbox.com/u/61716/nationallibrary.pak
dat file: http://dl.dropbox.com/u/61716/nationallibrary.dat