Giving priority to trains when entering a junction

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
User avatar
Sir A. Boey
Transport Coordinator
Transport Coordinator
Posts: 299
Joined: 17 Nov 2006 17:40
Location: Everywhere and nowhere

Giving priority to trains when entering a junction

Post by Sir A. Boey »

Hello,

I'm wondering if you couldn't give a priority to a certain line or a certain group of trains when they enter a junction with an other group of trains or a different line.

I'm aware that there are a lot of players who combine their cargo on one train and that this might be a problem to how one might code such a patch.

My first thought was to give (for example) a passenger train priority to a train with coal or a line which is used more often than the other line in the junction.

This could solve a big queue in the mainline (when using junctions)
In my attachment you can see a massive junction with a lot of lines,
I've been testing this junction with 160 Maglev's and in the 15 years that it has run there never was a queue but there could be a better flow on the most used line (if there would be one-which is not the case in my test game). If you could give a priority to one line then you could have a better flow of that line.
Attachments
GIGA JUNCTION 6.png
Higher view with lake in the middle
(112.06 KiB) Downloaded 401 times
GIGA JUNCTION 5.png
The junctions in the middle are working perfectly no queues what so ever but I would like too give a certain line priority ove an other one
(211.64 KiB) Downloaded 539 times
Last edited by Sir A. Boey on 13 Jul 2007 10:14, edited 1 time in total.
Image
_____________# If you believe in it, you can achieve it" # ____________
__________________# Check out My Closed Platform #___________________
User avatar
Sir A. Boey
Transport Coordinator
Transport Coordinator
Posts: 299
Joined: 17 Nov 2006 17:40
Location: Everywhere and nowhere

Post by Sir A. Boey »

The newer version of the junction because in the first screenshot I've had some queues then modivied it and never had any queues anymore.
Attachments
Utd Transport Ltd. _ Pre-Fab, 18th Jan 2041.png
(204.27 KiB) Downloaded 404 times
Image
_____________# If you believe in it, you can achieve it" # ____________
__________________# Check out My Closed Platform #___________________
User avatar
JGR
Tycoon
Tycoon
Posts: 2559
Joined: 08 Aug 2005 13:46
Location: Ipswich

Post by JGR »

You may wish to investigate #openttdcoop, or look around in General OpenTTD for some of the priority layout type discussions...
I'm sure if you do a forum search for priority you'll get some ideas.
Most schemes use presignals and/or bits of track between signal blocks, for purely signal propagation purposes...

JGR

PS.
This is the TTDP section, that is in OTTD screenshot, which uses various features not in the Patch.
To be honest, most of the enormous multi-level junctions happen in the openttd section, so in general you are better off posting it there.
Don't duplicate your post however, but next time it would be better in OTTD section.
(A mod might move it still...)
User avatar
Sir A. Boey
Transport Coordinator
Transport Coordinator
Posts: 299
Joined: 17 Nov 2006 17:40
Location: Everywhere and nowhere

Post by Sir A. Boey »

oeps wrong section sorry
Image
_____________# If you believe in it, you can achieve it" # ____________
__________________# Check out My Closed Platform #___________________
Stevie D
Engineer
Engineer
Posts: 24
Joined: 17 Jul 2007 21:33

Re: Giving priority to trains when entering a junction

Post by Stevie D »

Sir A. Boey wrote:I'm wondering if you couldn't give a priority to a certain line or a certain group of trains when they enter a junction with an other group of trains or a different line.
It's quite easy to give priority to trains on one line over another, by using presignals.

See the piccy showing the freight train on the mainline holding the signals at red for the passenger train on the branch line.
priority-junction.png
priority-junction.png (33.53 KiB) Viewed 5265 times
Put a one-way pre-signal entrance on the line that you want to give way. Put a normal one-way signal on the exit from the junction. Now - and here's the clever bit (and it wasn't me that thought of it) - put a two-way presignal exit on the line that you want to have priority.

This means that a train on the branch line will look for a green exit signal from the block. If the exit signal is green (regardless of the fact that the train can't go that way and will leave past a different signal), it gets a green light ... but if the exit signal is red (ie, there is a mainline train approaching), the branch line train will be held at red until the main line is clear.
User avatar
Sir A. Boey
Transport Coordinator
Transport Coordinator
Posts: 299
Joined: 17 Nov 2006 17:40
Location: Everywhere and nowhere

Re: Giving priority to trains when entering a junction

Post by Sir A. Boey »

What a fabulous Idea :!: :!: :!: :!: :!: :!: :!: :shock: :shock: :shock:

That's the solution to my question ty very very very much, I never tought
about this solution :!: :!: :!: :!: :!: :!: :!:

Thanks
Image
_____________# If you believe in it, you can achieve it" # ____________
__________________# Check out My Closed Platform #___________________
User avatar
aahz77
Transport Coordinator
Transport Coordinator
Posts: 274
Joined: 16 Aug 2006 10:15
Location: Hamburg, Germany

Re: Giving priority to trains when entering a junction

Post by aahz77 »

If you didn't know this neat little trick, you may want to have a look at a very good signalling guide.
One after one, by the star-dogged Moon,
Too quick for groan or sigh,
Each turned his face with a ghastly pang,
And cursed me with his eye.

-- Samuel T. Coleridge, The Rime of the Ancient Mariner
User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Re: Giving priority to trains when entering a junction

Post by Raichase »

aahz77 wrote:If you didn't know this neat little trick, you may want to have a look at a very good signalling guide.
Haha, beat me to it. I too can second Uwes fabulous signalling guide - no matter how good at TT you consider yourself, you can always learn something new there :D.

Good luck (if you still want your thread moved to OTTD section, drop us a line).
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club
User avatar
Sir A. Boey
Transport Coordinator
Transport Coordinator
Posts: 299
Joined: 17 Nov 2006 17:40
Location: Everywhere and nowhere

Re: Giving priority to trains when entering a junction

Post by Sir A. Boey »

Iff that's possible please do so because I want as many pointers
as I can to make a very succesfull network with special junctions and signals

thanks the tutural seems quite interesting
Image
_____________# If you believe in it, you can achieve it" # ____________
__________________# Check out My Closed Platform #___________________
User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Re: Giving priority to trains when entering a junction

Post by Raichase »

Moved for you :)).

I think you'll find the OTTD folks just as helpful, and probably more knowledgable!

Good luck :D
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 23 guests