"Working" PTC System in Open Rails 3D Cabs | Demo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Strawberry Yogurt
    Senior Member

    • Aug 2011
    • 229
    • Chicago, IL

    #1

    "Working" PTC System in Open Rails 3D Cabs | Demo

    Hi all,

    I've been in and out of the hobby quite a bit the last few years, I dumped a 90% finished Genesis into the file library a year or two ago with a 3D cab and figured at some point I'd be motivated enough to return. At work, I've been exposed to Claude Code and have used it a ton the last year. There's a ton of reasons to hate AI, but in code, it's gotten quite good, good enough to spark my interest in applying it to Open Rails to see if I can make my own gameplay more interesting.

    With a manual that I was sent, I have implemented a PTC system into Open Rails with just an engine script and 3D cab components, which I'd intend to make available to anyone who wants to add such a feature to their own modern U.S. based locomotives.

    Working with Claude Code on the best way to implement this, given that display simulation isn't something Open Rails can do natively, the solution was to animate objects around the display - rolling faceted cylinders that can display textures on each of their faces. As the train moves down the line, the cylinders roll progressively depending on the locomotive's location, speed, and upcoming signal and track conditions. The soft keys work and can do a brake test, with audio cues, and there is overspeed warning and enforcement. The display will warn you if you are overspeeding, and beyond a certain threshold applies a full service brake application which you cannot override until the train is stopped and the system reset.

    It is also capable of showing you 4 miles of elevation change via the cyan line.

    I should mention - the code and the model could all have been built by hand by a more capable human than I, but Claude's ability to take in all of the Open Rails documentation and. come up with a working solution fairly quickly was a welcome surprise for adding a neat feature to a very niche hobby.

    There are some misaligned digital readouts on the display which I will sort out, and to my understanding many road's PTC systems have some differences, but for me the goal was a display that "worked" close enough to reality to run without the track monitor and add to the immersion. Thoughts, feelings, is this something people have been asking for or is this a tedious addition that adds no real function? When I test it some more I'll package it up and make it available to anyone, but sometimes I feel that modern U.S. equipment is a not a huge focus for sim users!

    Video


    Screenshot 2026-10-29 at 11.00.48 AM.png​Screenshot 2026-10-29 at 11.01.21 AM.png​
  • frliss
    1000 Post Veteran



    • Mar 2011
    • 1078
    • MP44.2 Worcester, MA
    • General

    #2
    Adding PTC to the cab view sounds like a good idea. If it ever gets added to OR, I hope it can be turned on or off easily. Some of us still like using OR as a simple, fun game that it is.

    Fred

    Flashing Rear End Device

    Comment

    • Strawberry Yogurt
      Senior Member

      • Aug 2011
      • 229
      • Chicago, IL

      #3
      Originally posted by frliss
      Adding PTC to the cab view sounds like a good idea. If it ever gets added to OR, I hope it can be turned on or off easily. Some of us still like using OR as a simple, fun game that it is.

      Fred
      The beauty of this system is that it's on a per-locomotive basis and can be easily "turned off" or disabled if a developer were to choose to include it in their locomotive. No changes required, nor updates to Open Rails, it uses the scripting functionality that's already native!

      Comment

      • frliss
        1000 Post Veteran



        • Mar 2011
        • 1078
        • MP44.2 Worcester, MA
        • General

        #4
        I am sure that you put a lot of effort into this project. I am glad the choice is optional .For my own part OR is a game and I enjoy playing it.

        Fred



        Flashing Rear End Device

        Comment

        • trainlover2923
          Senior Member


          • May 2010
          • 184
          • Lynchburg Missouri
          • MSOR

          #5
          Looks promising.......I'm always up for more realism when it comes to locomotives.
          Roburt

          Comment

          • DuctTapeGuru
            Senior Member

            • May 2010
            • 104
            • The 6ix
            • MSOR

            #6
            I'm with Fred. Leave in the option for simplicity for those of us who use OR as a game.

            Comment

            • CSRX
              13500 Post Veteran



              • Oct 2005
              • 13646
              • Lincoln, ME
              • English
              • ORTS

              #7
              Not particularly "simplicity" but, not every railroad in the United States has been forced with this nonsense. An option to use it, or to not use it, would be ideal, but this is a pretty cool concept to see for a sim. Kind of pulls ORTS ahead of Run8 with realism.
              -Shawn K-
              MEC Mountain Subdivision - Trackwork 70%, Scenery 35%
              ​

              Comment

              • DuctTapeGuru
                Senior Member

                • May 2010
                • 104
                • The 6ix
                • MSOR

                #8
                Realism is not important to me at all. I'm a total play with trains type. The use\don't use option is a good way to implenemt it, IMHO, but my choice would be to have it default to "Don't Use".

                Comment

                • michaeljones
                  New Member
                  • Oct 2026
                  • 3
                  • General

                  #9
                  The option approach seems to be the common ground here, and I think that's the sensible route. Someone who just wants to drive trains shouldn't have to wrestle with PTC logic they didn't ask for, while others can switch it on when they want that layer of realism. Defaulting to off keeps the sim approachable for newcomers, and anyone curious can enable it later. The tricky part is making sure the option is documented clearly enough that people actually find it rather than assuming the cab is broken.

                  Comment

                  • defect_detector
                    Senior Member

                    • Jul 2012
                    • 807
                    • ORTS

                    #10
                    Make sure you program it to have PTC randomly select the incorrect track for you, go active and then dump your train... It is a real fun experience...
                    MK

                    Comment

                    • frliss
                      1000 Post Veteran



                      • Mar 2011
                      • 1078
                      • MP44.2 Worcester, MA
                      • General

                      #11
                      Originally posted by defect_detector
                      Make sure you program it to have PTC randomly select the incorrect track for you, go active and then dump your train... It is a real fun experience...
                      Sounds like PTC is not so well liked in the real world.

                      Fred


                      Flashing Rear End Device

                      Comment

                      • michaeljones
                        New Member
                        • Oct 2026
                        • 3
                        • General

                        #12
                        The optional approach makes sense, but the documentation point is the one that matters most. If the toggle is buried, people will blame the cab rather than a setting they never enabled. To Fred's point, that dark humor about incorrect track selection and dumping the train does highlight why a demo should make failure states visible rather than silent, so testers can tell a scripted event from a bug. Clear labeling plus a simple log of what the system is doing would go a long way.

                        Comment

                        • Orbita
                          Senior Member

                          • Oct 2020
                          • 324
                          • Somewhere on the NYC Water Level Route surrounded by corn
                          • English, Limited French
                          • MSOR

                          #13
                          PTC has had it's share of controversies ever since it was first introduced. This is definitely an interesting mod, even if my niche is mainly transition period.
                          Last edited by Orbita; 11-01-2026, 11:37.
                          Kyle

                          NYC - Road of the Future

                          Comment

                          • Strawberry Yogurt
                            Senior Member

                            • Aug 2011
                            • 229
                            • Chicago, IL

                            #14
                            It's designed thoughtfully to be easily cut out - in my early implementation it is on by default, but one change would make it opt-in - i.e. it remains off and out of the way and you have to cut it in for it to be active.

                            From my testing so far, it feels basically a physical version of the track monitor, giving you upcoming signals and speed restrictions on the display without having the UI open. Its only feature that really interrupts you is the penalty applications (which we already have in the way of the alerter, these just trigger for overspeeds or lack of response to a signal of a less permissive state).

                            I'm not sure this is 100% realistic but it has made my gameplay just a bit more immersive, since I can run with the track monitor off and there's a bit more of a penalty for being a doofus behind the controls. Again, no need for Open Rails to add or change anything, this simply takes advantage of the scripting options already available in the sim and inclusion in the 3D cab model.
                            Last edited by Strawberry Yogurt; 11-01-2026, 16:53.

                            Comment

                            • CSXT Q-317
                              Senior Member


                              • Mar 2008
                              • 346
                              • Ohio USA
                              • ORTS

                              #15
                              I see I am not alone in this quest. Here is a project I have been toying with. Right now, it operates in a separate window. As I run multiple monitors. But it does connect to Open Rails and it does read the track data as previewed below.



                              Screenshot 2026-10-24 195009.png
                              M. Payne

                              Comment

                              Working...