Diagonal Rail-Road crossings

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Diagonal Rail-Road crossings

Post by GoneWacko »

Hmm I think it would be great if diagonal crossings were available.
With the original TTD, you have to break your nice diagonal line when you reach a road, Which sucks because it adds TWO turns to the track.

So attached is an image I just wipped up.

I am aware that it would take two cells, but surely you can make it in such a way that it automatically builds the other cell as well? (Maybe even highlight this cell as well to make clear you're building an overpass)

Possible?
Attachments
Diagonal Overpass.jpg
Diagonal Overpass.jpg (45.54 KiB) Viewed 4123 times
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

It have to turn on ealier than the ones we have now because it takes longer for cars to cross. The current ones activates by entering trains ON TILE, which makes it a bit difficult to make a proper code for sooner activation.
Another problem is that the current ones deactivate when a train leaves the tile, which means it will deactivate when the train leaves one of the tiles
Yet another problem is that the code "knows" that a crossing is always one tile, so everywhere the code is doing something about a crossing, it looks at ONE TILE

That makes it a hard thing to do. It might be done after ealier activation is done, and AFAIK nobody is working on that at the moment
User avatar
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

Post by SirkoZ »

To make it simple for the time being - why not just implement bridges, that can cross 45° angled railway?
Kills 2 flies in one swoop. :lol:
jixor
Engineer
Engineer
Posts: 96
Joined: 16 Apr 2003 08:47
Location: Melbourne, Australia
Contact:

Post by jixor »

I would also like to see diagonal able to pass under a bridge. When you build one diagonal under a bridge it could automatically build the other part.
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

SirkoZ wrote:To make it simple for the time being - why not just implement bridges, that can cross 45° angled railway?
Kills 2 flies in one swoop. :lol:
because busses and lorries slow down, and it costs way more.
Image
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post by Wolf01 »

Bjarni wrote:It have to turn on ealier than the ones we have now because it takes longer for cars to cross. The current ones activates by entering trains ON TILE, which makes it a bit difficult to make a proper code for sooner activation.
Another problem is that the current ones deactivate when a train leaves the tile, which means it will deactivate when the train leaves one of the tiles
Yet another problem is that the code "knows" that a crossing is always one tile, so everywhere the code is doing something about a crossing, it looks at ONE TILE

That makes it a hard thing to do. It might be done after ealier activation is done, and AFAIK nobody is working on that at the moment
and to do it like semaphores? when the train pass the last semaphore before of the crossing, the barriers will be turned on

Code: Select all

    o           \   \|            o
----|------------\---\------------|-------
------------------\---\-------------------
##                 \|  \ 

    o            \  _\            o
----|-------------\---\-----------|-------
-------------------\---\------------------
######              \_  \

Railway
----
----

Signal
o
|

Road
\ \
\ \

Bariers open
\ \|
and closed
\_ \

Train
#####

the crossing is not a signal, but works inverse, it becomes "red" before the train pass it, and still "red" until the train pass another signal
Wolf01
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Post by Bjarni »

what if the signal block is 50 tiles long? Should the crossing be activated forever? Should it deactivate when the train passes the road(it is still in the signal block)

what if the train turns before the crossing? Crossing deactivates if a train leaves the tile

I guess it can be coded if any of you can think of a clever way to solve all of there problems
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 32 guests