ORTS AI Auto American Horn Blow at Crossings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scottb613
    2500 Post Veteran


    • Apr 2003
    • 2848
    • Downeast Maine (soon)
    • ORTS

    #1

    ORTS AI Auto American Horn Blow at Crossings

    Hi Folks,

    Great new feature in Monogame 86 - thanks to Carlos - one line in your activity file an all AI trains will initiate horn blow at all crossings with an American style.

    - inserting line
    ORTSAIHornAtCrossings ( 2 )

    in .act files after line
    NextActivityObjectUID ( xxxx )


    Video Example



    Regards,
    Scott
    <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models
  • geepster775
    2500 Post Veteran


    • Sep 2006
    • 2846
    • .
    • General

    #2
    Hoping next up will be a fix for the 'overzealous dispatcher' problem.

    If the player train was not waiting to make a crossover move, and instead continued to use the track it was on, the signal would have come in with the rear 8 cars of the AI freight still in the interlocking plant. Cringe-worthy. Some routes can have really long interlockings.




    Needs to behave more like this




    On dark territory, or when dealing with MOW on signaled track, the delay should be even longer as the track must be released by the MOW person via radio communication with the dispatcher, and (in no signal territory) a new track warrant issued for continued movement by the player.



    Signal should not come in the moment the track inspector clears the switch. The track inspector in the hyrail needs to verbally clear his hold of the track via radio conversation with the dispatcher before dispatcher can clear the signal for the waiting freight.
    My Open Rails videos https://www.youtube.com/@lakecities3663/videos

    Comment

    • trainmanaustin
      Senior Member
      • Oct 2004
      • 126
      • Helena, MT

      #3
      That is a heck of an improvement. Last blast of the horn was a little long but beggers cant be choosers.

      Sent from my SM-G988U using Tapatalk

      Comment

      • csantucci
        Senior Member
        • Nov 1999
        • 856
        • Torino, Italy.

        #4
        To trainmanaustin: there is a reason for the length of the last blast. The position of the train when the the blast sequence, which has a fixed duration, starts, is determined by the speed of the AI train, its max allowed speed and the duration of such sequence. If however the AI train accelerates or decelerates significantly from the moment the sequence starts, there is either the risk that the train passes the crossing when the last blast hasn't started, or that it passes it when the last blast has already terminated. Using a long blast significantly reduces this risk. A solution would be to adapt the length of the last blast considering the position of the train when such blast is initiated, but this requires further work.
        To geepster: I see your point, however it must be considered that not all railways in the world work this way. So maybe a sort of a general delay parameter should be provided either in the activity or in the route file to consider that case. It must also be taken into account that there also other cases where signals are at stop, e.g. when a train precedes another train. In such case I don't think there is a so long delay from the moment the preceding train has cleared the section ahead of the following train; so distinctions must be made, which might complicate coding.
        sigpic

        Comment

        • niknak
          1000 Post Veteran


          • Nov 1999
          • 1254
          • UK.
          • MSOR

          #5
          I'd been putting off installing MonoGame for a while but the AI crossing horn sequence was what finally swayed me. Many thanks csantucci
          Regards,

          Nick

          ( ' boffin0_reprised ' on TikTok )




          Cyberpower Desktop with AMD Ryzen 5 CPU /. 16GB RAM /. ATI AMD Radeon RX6700 12GB graphics /. Windows 11 Home 64bit /. RailDriver /. Partridge in a pear tree....​

          Comment

          • flanker
            Senior Member
            • Mar 2005
            • 204
            • Germany
            • General

            #6
            Hi geepster,

            nice videos. One question. Where can i find this flat-cars with the trucks?
            I hope, the Community can understand my posts.

            Michael

            Comment

            • uli2
              Senior Member
              • Jan 2008
              • 503
              • Berlin/Germany
              • MSOR

              #7
              Hi Michael,

              The flat cars with trucks come with the "UP Feather River 1984" add-on by TrainSimulations https://www.trainsimulations.net/up-feather-river-1984 .

              Uli

              Comment

              • flanker
                Senior Member
                • Mar 2005
                • 204
                • Germany
                • General

                #8
                Ulrich, thanks. I have this pack, but not installed.
                I hope, the Community can understand my posts.

                Michael

                Comment

                • csantucci
                  Senior Member
                  • Nov 1999
                  • 856
                  • Torino, Italy.

                  #9
                  Originally posted by geepster775
                  Hoping next up will be a fix for the 'overzealous dispatcher' problem.
                  ...
                  Geepster,
                  there is something that you can do to partially mitigate this issue. The point where the train passing the switch clears it is determined by the ClearanceDist ( 35 ) parameter (in meters) of the TrackShape of the switch within the Global tsection.dat.
                  You can increase such value for the switches of your interest, without modifying the Global tsection.dat, acting as described in paragraph 15.8 of the OR manual.
                  Last edited by csantucci; 01-04-2021, 08:59.
                  sigpic

                  Comment

                  Working...