I'm not asking to be able to drag bridges over existing buildings, quite the contrary.
I build a viaduct over empty land, a couple of years p****, a nearby city grows or a new industry chain starts, and I end up with skyscrapers or chimneys popping through my elevated ways. Is it possible to limit the size of the buildings that can grow under a bridge or a viaduct?
I know it's not a crucial issue, just wanted to point it out.
I entirely agree ;)
Same goes for tree growing through sinkansen tracks (etc)
It is possible to implement such a feature. We are looking for volunteers :)
This would indeed seem like a sensible idea - for elevated ways, too.
Does a building have a height recorded anywhere in the .pak?
Since I do want buildings underneath viaducts to be possible -- short buildings -- I think having access to a building height is absolutely essential in order for this to happen. If the height isn't recorded, we need to start recording it before doing anything else. (Likewise, trees would need recorded heights.)
Not currently. Maybe one should be introduced, with an ****umption that its value is height = 1 otherwise?
An even better way to do this would be based on amount of vertical images, since then no new parameter is needed... maybe?
It's possible for one tile building but for the others ?
I think you could guess the buidling's height by the content of the dat file, that must be stored in some internal structure inside Simutrans code. I mean, in the dat file, you don't specify the height, but you can guess it by the images set indexes, as VS has suggested.
That did occur to me, but some graphics that are 1x1 size would still look too large under a bridge, hence my suggestion for a new parameter. But maybe it could default to the number of vertical images.
The heigth of a bridge could be guessed as it is for its pillars.
That of buildings, from the number of piled images
still, 1x1x1 city building is higher then common bridge so it wont really work.
same thing happens underground - you can, for example, dig tunnels under coal mine.
Hmm. The default could require a one level "spacing" between the building (or tree) and the bridge -- a 1-high graphic would be registered as only fitting under bridges at least *2* high. There should still be some way to actually specify vertical thickness in the .dat files, as this is a very sloppy approximation.
Now that seems rather more complicated to deal with -- one thing at a time I think....