Page 1 of 1

Multi-track Bridges

Posted: 18 Jul 2018 03:30
by Baldy's Boss
When you've got multiple tracks running in parallel,why should each track have to get its own bridge?(Whenever I take a train to Manhattan I cross from (the) Bronx on a 4-track bridge).
Whether or not we get SIGNALS on bridges,it would be nice to allow SWITCHES on bridges.

Re: Multi-track Bridges

Posted: 18 Jul 2018 04:27
by Andrew350
Technically a "multi-track bridge" is already possible via newgrf, if one creates an extra wide bridge designed to be "stacked" next to itself to create the illusion of a single bridge. I'm fairly certain there are one or two bridges released somewhere which are designed this way already, and I know I've tried a similar concept myself just for fun, so it can be done. :)

As for switches on bridges, that's a different story...

Re: Multi-track Bridges

Posted: 18 Jul 2018 06:02
by MagicBuzz
Andrew350 wrote:As for switches on bridges, that's a different story...
The bridge doesn't really exists internaly in the program : only the start tile and the end tile exists.
The bridge itself doesn't exists (like tunnels) so there is no way to put switches on.

This could be added in the far furure is the map array is updated to handle multiple levels.
But for now, it's impossible and should need a rewrite of almost all the game's core (as everything turns arround the map array).

Re: Multi-track Bridges

Posted: 18 Jul 2018 08:28
by Pyoro
Switches and signals on bridges are actually only mildly realistic anyway. By and large these are avoided for safety / to architectural stability reasons. Of course, what we call "bridge" often also is something like an elevated track in OpenTTD and a lot of other "real life" equivalents so ...

But still.

As for the optics things, yeah. Is it possible for bridges to detect whether there's a bridge next to them and change graphics accordingly? I haven't seen this done in GRFs but it kinda sounds like something that might be possible. Possibly.

Re: Multi-track Bridges

Posted: 18 Jul 2018 08:41
by planetmaker
Pyoro wrote: As for the optics things, yeah. Is it possible for bridges to detect whether there's a bridge next to them and change graphics accordingly? I haven't seen this done in GRFs but it kinda sounds like something that might be possible. Possibly.
With the current state of affairs: no, they cannot detect that.

Re: Multi-track Bridges

Posted: 18 Jul 2018 09:17
by GarryG
I been looking at the idea of a bridge to hold 2 tracks. The only way I find that it might be possible is to have 2 separate bridges but design them when side by side they look like one bridge.

A bit like I did with the wide ballast in AuzTracks.

Can only have to my knowledge 16 bridges (8 road and 8 rail, or a combination that adds to 16).

I still got some learning to do with bridges building and coding, but hope to make a set of twin bridges eventually.

Re: Multi-track Bridges

Posted: 18 Jul 2018 11:40
by acs121
MagicBuzz wrote:
Andrew350 wrote:As for switches on bridges, that's a different story...
The bridge doesn't really exists internaly in the program : only the start tile and the end tile exists.
The bridge itself doesn't exists (like tunnels) so there is no way to put switches on.

This could be added in the far furure is the map array is updated to handle multiple levels.
But for now, it's impossible and should need a rewrite of almost all the game's core (as everything turns arround the map array).
OpenTTD doesn't consider bridge tiles as "nothing", they consider both as track tiles and limited building tiles (can't place x, y, z, etc).

Re: Multi-track Bridges

Posted: 18 Jul 2018 12:19
by planetmaker
GarryG wrote: Can only have to my knowledge 16 bridges (8 road and 8 rail, or a combination that adds to 16).
Nah, there's the same, shared 13 bridge types for both road and rail.

Re: Multi-track Bridges

Posted: 18 Jul 2018 14:15
by Expresso
Wouldn't it be feasible to double that amount by distributing the bits to both ends of the bridge? Basically that one end provides the low bits and the other end provides the high end part of the number.
You could figure out which one provides which part by looking at which bridgehead has the lowest position in the map array.

Re: Multi-track Bridges

Posted: 20 Jul 2018 00:37
by Eddi
and which problem exactly is that supposed to solve?

Re: Multi-track Bridges

Posted: 20 Jul 2018 01:26
by GarryG
planetmaker wrote:Nah, there's the same, shared 13 bridge types for both road and rail.
Thanks for that info .. been trying to study the NFO coding for making bridges and that info helped.

Cheers