Skip to main content
Topic: Better density for small cities on map generation (Read 18214 times) previous topic - next topic

Re: Better density for small cities on map generation

Reply #35
@James

The ring-by-ring approach is not without problem. Unlike fields, there may be holes in a ring due to inapplicability of house rules or road rules. A reasonable criteria to determine whether to expand search to the next ring is to see if an exhaustive search in the current ring fails. However, even an exhaustive search is not really exhaustive : rules are only checked if they first p**** the chance test (based on their respective chance factor), meaning that some tiles may have applicable rules which are not applied. This leads to premature expansion of search to the next ring, thus losing much of the benefit of this approach.


@Prissi

gb = buildings[buildings.at_weight(simrand(buildings.get_sum_weight()))];

I have tried this approach already, but it ends up with a few very high-level buildings here and there near the centre, and there are some level-one or two buildings at the city centre even for very large cities (as they never have the chance to renovate just because of their low level).

EDIT: But the main point is, if the user feel that the current system produces unnatural towns. In a short test, I had some troubles to spy out the differences for normal standard values.

I don't know if you mean you have tested the original code or my patch. If it is the latter, I want to emphasize once again that the major purpose of my patch is to better enforce renovation_percentage, and while it is not difficult to do, I have not yet included any code in the above patch which deals with the difference between large cities and small towns.