News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

[r7122] Town Hall partially engulfed by neighbouring city

Started by dree12, April 13, 2014, 04:31:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dree12

Over the years, the southern city of Hillmouth has expanded its borders northward, so that they overlap with Newmouth's borders.


Newmouth's Town Hall is partially in the zone of overlap:


The northmost two squares of this Town Hall display the correct city screen:


However, the southmost two squares are displaying Hillmouth's city screen instead:


Since this is Newmouth's Town Hall, the expected behaviour would be that any square of the Town Hall displays Newmouth's city screen. However, Hillmouth's expanding borders seem to have engulfed part of the Town Hall.

prissi


dree12

Why is this not considered a bug? If it is intended behaviour, that seems strange... Maybe it is too difficult to fix?

Ters

Can this in theory cause Hillmouth to completely lose its city hall, by all the city hall's tiles being assigned to Newmouth?

IgorEliezer

#4
I sometimes think that Simutrans should have municipality boundaries. Even if a city spreads beyond the boundary, the "off-limits" buildings would be then part of another municipality.

Ters

The problem seems to be that boundaries in Simutrans are rectangles. I don't see how municipalities are going to help. Cities do grow and their limits will follow in time, until some point. The exact detail probably vary with time and place. (Norway used to have municipalites that were cities and municpalities that were not. The former used to devour the latter as they grew, piece by piece or whole. Now there is no formal concept of cities, just municipalites, of which just a few are "fully" urban.)

ӔO

how difficult would it be to merge cities that have grown into each other?
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

Dwachs

Technically, the townhall still belongs to its original city. Clicking on it does open the wrong window.

@AEO: merging is simple. It is more difficult to decide when to merge.
Parsley, sage, rosemary, and maggikraut.

ӔO

I would consider, maybe, 40% overlap of borders, or higher, to be a candidate for merging.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

prissi

Ok, bringing up the wrong screen is a bug, overlapping cities not. (A similar problem happens with the industry connect tool, which only works on the upper tiles.)

Back to topic: we can try to to enforce non-overlapping city limits. That way a rural area between two cities would be found.

Ters

I don't think cities normally merge when growing into each other. Altough one city tends to be the main city in the metropolitan area, I don't have the impression that it has any juristiction over the other cities. Nor does it seem right that there must be rural area between them.

If a town hall does have a distinct link to the city/town it belongs to, then one can perhaps code something that makes sure its building tiles belong to its city. One could perhaps even go as far as to associate building tiles with the closest town hall, among the town halls of overlapping town boundaries. (I haven't tried looking at the code for this.)

Dwachs

@dree12: the bug in the first post should be fixed in nightly r7147. thanks for the report.
Parsley, sage, rosemary, and maggikraut.