Announcement

Collapse
No announcement yet.

Crossing Specific Bridges on Monon Route Results in CTD-ArgumentOutOfRangeException

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Crossing Specific Bridges on Monon Route Results in CTD-ArgumentOutOfRangeException

    Hesitated posting this until today. Been trying to find out how to fix this for weeks but no luck.

    Final Monon Route v17, running on the latest version of OR Testing (as well as a number of its preceding versions), CTDs with an Argument Out of Range Exception when the locomotive begins crossing specific bridges on the route.


    Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)
    at Orts.Viewer3D.TrackSoundSource.UpdateTType(Boolean stateChange) in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\RunActivity\Viewer3D\Soun d.cs:line 303
    at Orts.Viewer3D.TrackSoundSource.Update() in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\RunActivity\Viewer3D\Soun d.cs:line 334
    at Orts.Viewer3D.Processes.SoundProcess.Sound() in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\RunActivity\Viewer3D\Proc esses\SoundProcess.cs:line 132
    at Orts.Viewer3D.Processes.SoundProcess.DoSound() in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\RunActivity\Viewer3D\Proc esses\SoundProcess.cs:line 116
    at Orts.Viewer3D.Processes.SoundProcess.SoundThread() in C:\Jenkins\jobs\Open Rails Testing\workspace\Source\RunActivity\Viewer3D\Proc esses\SoundProcess.cs:line 100
    at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
    at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()



    One bridge is just past the Delphi Station heading NE toward Monon.
    Another is the Paisley Trestle, just south of the Paisley Siding at Cedar Lake, when heading south from Chicago.
    Yet another is the bridge over Wabash River, heading north, just north of Lafayette.

    These are the only three I know of, but the CTD is reproducible 100% of the time as soon as the locomotive touches any of these bridges.

    I've looked into TSRE but can find nothing amiss at these locations, though my ability with the route builder is very limited.

    Already reinstalled Monon twice, carefully following the specific instructions each time.

    I'm working on a Timetable for this route but the issue is making things pointless.

    any assistance would be greatly appreciated.

    Log included.

    Thanks.

    EDIT: Ok apparently the log file didn't attach...? ugh...
    EDIT 2: Fixed, I guess. Don't see it here but the paperclip is on the title on the forum thread page.
    EDIT 3: Nvm found it...

    OpenRailsLog.zip
    Last edited by Kuckoo; 10-05-2021, 03:16 PM.
    "My dog got loose once, what I did was show him his leash & he came running back, thinking it was time for a walk - stupid dog."

    #2
    Have you been able to locate the .sms file alluded to in this line,
    Warning: File Sound\indust_m.sms missing from G:\Programs\Games\Open Rails\OR - MSTS\Content\ROUTES\MONON-2?
    That's the first big gotcha I see.
    It's available with the Monson, FYN, GM&OSS, PRR East and LIRR. Probably more but that's where it shows up on my confuser.
    I would have guessed a bridge .sms given that it happens around bridges.

    Randy

    Comment


      #3
      Hi Randy & Kuckoo,
      If it's of any interest, files indust_m.sms, indust_h.sms and indust_s.sms are all supplied within a default MSTS installation.
      As the route was designed for MSTS, it's possible that other files may be missing if it's used in an OR-Only installation.

      Cheers,
      Ged

      Comment


        #4
        Thanks for replying.

        I copied all the contents from the default MSTS SOUND folder, including the .sms files you mentioned, to the OR ...Content/Sound and Route Sound folders, without overwriting was was already there. Ran a quick activity over the trouble spots. The CTDs still occur exactly as before.
        "My dog got loose once, what I did was show him his leash & he came running back, thinking it was time for a walk - stupid dog."

        Comment


          #5
          This crash usually occurs if in the .ws file a sound region number has been entered which is not present in the ttype.dat file.
          To explain this more clearly: with TSRE5, go with the camera where you have the bridge, and check which sound region number has been entered for the bridge (sound regions define which sound is played when the train passes over a specific track section). Then check if this number is present in the ttype.dat file. If this occurs on a widely used route, as the MONON one is, there might be a route installation problem from your side.
          Indicating the coordinates (Tile X and Y number and X and Z coordinates) of the bridge could enable someone to have a check on his installation of the route.
          sigpic

          Comment


            #6
            Hi Kuckoo,
            On my recent successful installation of this fine route I also have errors for track node pins and platforms incomplete, so they're normal I think. I'm not experiencing all the other missing sound files which are shown in your log. When I look at the trestle bridge (lat 41.349 lon -87.4357) I can see yellow sound marker posts for frogs, Monon_Mitchell and wooden bridge. The frogs and Monon_Mitchell sms appear in the ssource file and the sound folder. The wooden bridge sms doesn't but DOES appear in the ttype dat file. None of them are in my default MSTS sound folder. Not sure if that helps but thats how my installation looks and appears to run correctly. I've just tried a run over the bridge for the first time and no new errors have shown up in my log.

            Nick.
            Last edited by niknak; 10-06-2021, 05:56 AM.
            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


              #7
              I should of added that on this route there are two additional ttype dat files in the Docs folder, linked to the change of era batch files.
              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


                #8
                Hi Nick,
                The wooden bridge sms doesn't but DOES appear in the ttype dat file.

                That's a little odd!! I don't have that file in my installation and none of the supplied ttype.dat files call it. Are you sure you're not confusing it with this entry?
                TrackType ( "Wooden Bridge" "USATrack9In.sms" "USATrack9Ex.sms" )

                Cheers,
                Ged

                Comment


                  #9
                  Well its one of two things Ged... Either I was just testing you, in which case you've passed, or I was indeed confusing the little yellow square marked wooden bridge shown in TSRE with a yellow sms sound marker. I'll leave it up to you as to which it is...
                  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


                    #10
                    Hi Nick,
                    Sorry, but I'm not into TSRE (yet!) so can't answer that, but maybe it shows the name (ie "Wooden Bridge") from the ttype.dat file and not the actual name of the .sms file, bearing in mind that different .sms files are called, depending on whether the view being used is inside or outside the vehicle.

                    My OR log of the route only shows 4 Track node warnings, one sigscr file warning and 5 information messages. I'm sure that if the route did use a file called wooden bridge.sms and it was missing, there would be a report in the log.

                    Cheers,
                    Ged
                    Last edited by slipperman; 10-06-2021, 08:23 AM.

                    Comment


                      #11
                      Attempting one more clean, virgin re-install.

                      I don't know if this is what is causing the fault, but one thing I noticed is that I have XTracks and Newroads, but not ScaleRail. I recall having difficulty and being unsuccessful registering to 3dTrainSim's forum in the past, in order to download the file. Just tried again this morning with new information but with no success. Pressing [Create Account] after filling out the required lines doesn't do anything (the page gets "stuck"), I never get a verification email. Trying again to create the new account then results in a notification of the account already existing, but attempting to login does not work. I don't know if the lack of ScaleRail is casing the fault, but I've gotten frustrated with it and have given up on that effort entirely. Monon was installed and ran anyway, with the faults indicated in this thread.

                      Thank you for your replies. Will post when the re-install is complete.
                      "My dog got loose once, what I did was show him his leash & he came running back, thinking it was time for a walk - stupid dog."

                      Comment


                        #12
                        Originally posted by Kuckoo View Post
                        Attempting one more clean, virgin re-install.

                        I don't know if this is what is causing the fault, but one thing I noticed is that I have XTracks and Newroads, but not ScaleRail. I recall having difficulty and being unsuccessful registering to 3dTrainSim's forum in the past, in order to download the file. Just tried again this morning with new information but with no success. Pressing [Create Account] after filling out the required lines doesn't do anything (the page gets "stuck"), I never get a verification email. Trying again to create the new account then results in a notification of the account already existing, but attempting to login does not work. I don't know if the lack of ScaleRail is casing the fault, but I've gotten frustrated with it and have given up on that effort entirely. Monon was installed and ran anyway, with the faults indicated in this thread.

                        Thank you for your replies. Will post when the re-install is complete.
                        Monon needs ScaleROADS not ScaleRail.

                        3dTrains forum > Members list sorted by Join date shows "Kuckoo Joined today at 8:19am CST with member status of "Validating"
                        Charles

                        Comment


                          #13
                          Who knows how much easier life would be if I didn't get in my own way...

                          Thank you.

                          Anyway, reinstalled in a fresh, new directory and ran exploration paths over the trouble areas. Trains successfully crossed the bridges and went on their merry way.

                          I don't recall doing anything to the previous installation to cause this issue but things seem to be OK now. My non-payware OR install was turning into an untidy mod-soup mess, however. I deleted it completely this time and started a fresh new one, now with the benefit of hindsight in keeping things better organized. That apparently solved the issue, though I'm not counting chickens yet.

                          Sorry I wasted everyone's time.

                          Thanks.
                          "My dog got loose once, what I did was show him his leash & he came running back, thinking it was time for a walk - stupid dog."

                          Comment


                            #14
                            Hi Kuckoo,
                            Sorry I wasted everyone's time.

                            There's no need to apologise The Forum's here to help those needing it and I'm sure that most of us learn something from the problems experienced by others!!

                            Cheers,
                            Ged

                            Comment


                              #15
                              I agree completely, Plus it always gives me a buzz when I can help, or at least try to help others

                              Nick
                              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

                              Working...
                              X