Elvas Tower: Proposed new signal function : OPP_SIG_ID_TRAINPATH - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Proposed new signal function : OPP_SIG_ID_TRAINPATH Rate Topic: -----

#1 User is offline   roeter 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,426
  • Joined: 25-October 11
  • Gender:Male
  • Country:

Posted 16 November 2023 - 04:10 AM

Signal script definition contains a function OPP_SIG_ID, which returns the ident of the first signal of the requested type in opposite direction to the direction of the train.
This function searches for the signal through the path backwards as set through the actual setting of the switches. However, if these switches are set to the path of another train in that area, the signal as found may not always be the correct signal which is being searched, as that signal is in the other train's path and may not be in the path of the train for which the search is done.
To avoid this error, a new signal function is proposed : OPP_SIG_ID_TRAINPATH. This will search for the required signal using the actual train's path, disregarding the actual setting of any switches in this path.

Regards,
Rob Roeterdink

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users