Could anyone advice me how to set up semaphores in OpenTTD? I'm trying to make one double station near Oil Refinery with two different trains going there.
-
1You do realize that you're talking to gamers who might not know programming lingo like semaphore, right? I don't know if this type of language is common in OpenTTD, but you might elicit better answers if you explain yourself some more.– MBraedleyCommented Jun 23, 2012 at 21:15
-
3@MBraedley It's not a programming concept. It's a railroad concept. :) Semaphores in this case are basically traffic lights on train tracks.– Adam Lear ♦Commented Jun 23, 2012 at 21:17
-
@AnnaLear: Ok, I know it from programming (I imagine the concepts are the same). Still, a little more detail could help.– MBraedleyCommented Jun 23, 2012 at 21:20
-
@MBraedly I'm not talking about programming :) stackoverflow's purpose is that. It's , as Anna said, a railroad concept. I want to know how to properly place them on tracks. Where, and which.– DarjCommented Jun 23, 2012 at 21:29
-
1Just a note here, you almost certainly should double the tracks here, since the distance is really very short. If you want to save money, building only a single station at the refinery would be far more efficient. In fact, I would say that with a track setup like this it is highly unlikely you'd get your money's worth out of the second station– Private PansyCommented Jun 24, 2012 at 0:58
1 Answer
Disclaimer: I usually use two-way semaphores. Never quite figured out one-way ones properly.
The absolute easiest thing to do would be to avoid semaphores and build two separate tracks, each leading to a separate slot in the double station.
However, if you want to overlap a part of the track, you pretty much have to set up semaphores at each intersection to make sure your trains don't crash into each other. The basic idea is that once a train passes through a semaphore, the semaphore turns red behind it until the train passes through another one further down the track.
You also have to make sure you set them in a way that doesn't result in a deadlock. For example, if you had three semaphores set up like this:
and a train passed through semaphore Y while your other train's heading back from the oil refinery station, you can end up in a situation where semaphor X will block both trains and they'll sit there forever (until you notice that your profits are dropping like crazy).
One way to mitigate deadlocks is to leave enough space between semaphores to fit the whole train and try to avoid chokepoints like the semaphore at X would be.
My advice for you is to start by simplifying your tracks. :) But if you'd rather not, I'd start with the following arrangement:
I think you might run into trouble at that "bottom" end of the station where you don't have a semaphore-able space to protect each station track, but it's been a while and I'm not sure if that's actually going to be a problem.