Author Topic: Train signals with timers  (Read 1121 times)

0 Members and 1 Guest are viewing this topic.

Offline tubanonymous

Train signals with timers
« on: March 09, 2016, 11:15:54 PM »
How difficult would it be to attach the timer used for road signals to a train signal. Could you make a standard block signal that held red based on a time schedule?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8685
  • Total likes: 294
  • Helpful: 228
  • Languages: De,EN,JP
Re: Train signals with timers
« Reply #1 on: March 10, 2016, 08:55:18 PM »
What road signal has a timer? OR are you referring to the traffic lights?

Doing that would not too difficult, but any signal acting like this will reduce throughput. And an intervall of maximum 128 ticks (rather arbitary length) will not make you schedules. DId have experimental real schedules?

Online jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15142
  • Total likes: 354
  • Helpful: 155
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Train signals with timers
« Reply #2 on: March 12, 2016, 12:05:46 PM »
Simutrans-Experimental is in the process of implementing time interval signalling for railways, but this may or may not be what you are after.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Offline tubanonymous

Re: Train signals with timers
« Reply #3 on: March 13, 2016, 02:55:13 AM »
prissi: Yes, I meant lights

jamespetts: Do you have a link, or mind describing what the new experimental will include?

Online jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15142
  • Total likes: 354
  • Helpful: 155
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Train signals with timers
« Reply #4 on: March 13, 2016, 09:54:50 AM »
The best link that I can give at present is a link to the sources on Github, which is here. This is rather work in progress (it is difficult to find good information on time interval signalling), but it is an implementation of the means of railway signalling whereby a "danger" signal is given if a train has passed in the last 5 minutes, a "caution" signal is given if a train has passed in the last 10 minutes but not in the last 5 minutes, and a "clear" signal is given otherwise. This dated from the time before there was any means of communicating between different signals whether the train had passed the next signal ahead (i.e. circa 1830s until it began to be replaced by absolute block between about the 1860s and 1880s).

The system worked a little differently at junctions, and it is that part of the code that is currently incomplete and not working, although I do have an idea of how to implement it properly (but it is stuck behind a queue of other incomplete tasks that I am slowly ploughing through).

I am also considering adding an intermediate "time interval with telegraph" system that will allow for time interval working on single track lines, as happened in reality during the transitional phase (1850s-1880s).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.