The International Simutrans Forum

Development => Bug Reports => Topic started by: richardk on April 13, 2014, 12:41:58 PM

Title: problems with bridges
Post by: richardk on April 13, 2014, 12:41:58 PM
I have 2 problems with bridges, so I'm posting them together  just in case they're related in some way.

1. I can't upgrade a track the goes under a bridge. So if the existing track is 145km and I try to upgrade to 200km the crossing bridge blocks the upgrade. The only way to do it is to delete the bridge, do the upgrade, then recreate the bridge.  This used to work but I'm not sure when it changed.

2. I can't add a tram track to a road bridge that crosses a valley, as in this screen shot. It won't add the tram track to the centre span. This also used to work. This only effect bridges in valleys so maybe has something to do with the end sections?

I tried this on the latest nightly builds, I'm running [r7136] and pak.britian [r1410] on linux 64.





Title: Re: problems with bridges
Post by: prissi on April 13, 2014, 02:45:47 PM
I could upgrade tracks. Using control, I could also downgrade them. Bridge or bridge does not matter at all. Same for trams, dragging as well as clicking works fine. It works with any pak I tried.
Title: Re: problems with bridges
Post by: Vladki on April 13, 2014, 05:17:49 PM
The screenshot looks like the bridge is on half slopes. Isn't there some limit that a track cannot pass under too low bridge?
Title: Re: problems with bridges
Post by: prissi on April 13, 2014, 08:34:34 PM
Indeed, it seems the waybuilder does not allow for going under a low bridge (which should be at least configurable). Although then it should consequently forbid to built such bridges in the first place.

I will add a new flag to allow/disallow low bridges. Also the height field code seems broken, as the slopes should not depend on the conversion factor. Hmm, your observation has uncovered quite some inconsistencies. THanks.
Title: Re: problems with bridges
Post by: Vladki on April 13, 2014, 09:36:43 PM
I think that low bridges over empty tiles should be allowed. Only bridges over ways should be at least full height.

Is there something similar to forbid building bridges over/through high buildings and vice versa?
Title: Re: problems with bridges
Post by: prissi on April 13, 2014, 09:38:25 PM
I agree. But it was not checked during building of the bridges, only check when building under the bridges. It was also checked wrongly, i.e. this setting must be saved with the game.
Title: Re: problems with bridges
Post by: kierongreen on April 13, 2014, 09:55:32 PM
QuoteI think that low bridges over empty tiles should be allowed. Only bridges over ways should be at least full height.
This is the intention. Any way with a maximum speed greater than 0 (i.e. apart from non navigable rivers) should not be able to be built under low bridges, and likewise bridges shouldn't be able to be built over such ways, when height conversion factor 2 is being used.
Title: Re: problems with bridges
Post by: prissi on April 14, 2014, 11:42:08 AM
Problem with heigh conversion factor is, that these can be altered later while loading a new game. So these two informations need to be independent, which I did. (Although the checks does not check for zero speed of ways yet.)
Title: Re: problems with bridges
Post by: Ters on April 14, 2014, 12:46:15 PM
Ideally, I think it should be possible to build a half-height bridge over a navigable river. That should mask out all ribis for that river tile. That could possibly be a bit nasty in multiplayer games, though.
Title: Re: problems with bridges
Post by: Vladki on April 28, 2014, 06:38:25 PM
Hmmm would it be possible to have a half height bridge that would open to let ships pass through? Kind of a mix between bridge and crossing.


Sent using recycled electrons.

Title: Re: problems with bridges
Post by: Ters on April 28, 2014, 07:24:40 PM
I believe it's possible, but nothing like it exists in Simutrans. It would take a serious bit of coding, so I wouldn't hold my breath.
Title: Re: problems with bridges
Post by: greenling on May 10, 2014, 12:06:14 PM
Hello All
Its those problem be fix it? ???