Buildings under bridges and viaducts April 18, 2010, 05:16:41 pm 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. Quote Selected
Re: Buildings under bridges and viaducts Reply #1 – April 18, 2010, 06:01:22 pm I entirely agree Quote Selected
Re: Buildings under bridges and viaducts Reply #2 – April 18, 2010, 07:05:37 pm Same goes for tree growing through sinkansen tracks (etc)It is possible to implement such a feature. We are looking for volunteers Quote Selected
Re: Buildings under bridges and viaducts Reply #3 – April 18, 2010, 07:34:57 pm This would indeed seem like a sensible idea - for elevated ways, too. Quote Selected
Re: Buildings under bridges and viaducts Reply #4 – April 29, 2010, 02:53:04 am 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.) Quote Selected
Re: Buildings under bridges and viaducts Reply #5 – April 29, 2010, 07:32:59 am Not currently. Maybe one should be introduced, with an ****umption that its value is height = 1 otherwise? Quote Selected
Re: Buildings under bridges and viaducts Reply #6 – April 29, 2010, 08:17:29 am An even better way to do this would be based on amount of vertical images, since then no new parameter is needed... maybe? Quote Selected
Re: Buildings under bridges and viaducts Reply #7 – April 29, 2010, 08:24:34 am It's possible for one tile building but for the others ? Quote Selected
Re: Buildings under bridges and viaducts Reply #8 – April 29, 2010, 08:26:40 am 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. Quote Selected
Re: Buildings under bridges and viaducts Reply #9 – April 29, 2010, 09:35:04 am 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. Quote Selected
Re: Buildings under bridges and viaducts Reply #10 – April 29, 2010, 10:41:46 am The heigth of a bridge could be guessed as it is for its pillars.That of buildings, from the number of piled images Quote Selected
Re: Buildings under bridges and viaducts Reply #11 – April 29, 2010, 12:44:59 pm 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. Quote Selected
Re: Buildings under bridges and viaducts Reply #12 – April 30, 2010, 12:38:47 am Quote from: Amelek – on April 29, 2010, 12:44:59 pmstill, 1x1x1 city building is higher then common bridge so it wont really work. 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.Quotesame thing happens underground - you can, for example, dig tunnels under coal mine. Now that seems rather more complicated to deal with -- one thing at a time I think.... Quote Selected