Open Rails Issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CNW 5099
    Senior Member
    • Jul 2006
    • 196
    • .

    #1

    Open Rails Issue

    Wanted to run a pretty sraightforward activity and it won't load in OR. Funny enough it will in MSTS, but after getting used to framerates in the hundreds, who wants to go back to the teens? Especially since the train is prett long, about 130 cars or so. Here is the text from the OR log.

    runactivity.exe : Error : 0 : System.NullReferenceException: Object reference not set to an instance of an object.
    at ORTS.TrainCar.SetupWheels()
    at ORTS.MSTSWagonViewer..ctor(Viewer3D viewer, MSTSWagon car)
    at ORTS.MSTSWagon.GetViewer(Viewer3D viewer)
    at ORTS.TrainDrawer.Load(RenderProcess renderProcess)
    at ORTS.Viewer3D.Load(RenderProcess renderProcess)
    at ORTS.RenderProcess.Initialize()
    at Microsoft.Xna.Framework.Game.Run()
    at ORTS.Viewer3D.Run()
    at ORTS.Program.Start(IEnumerable`1 settings, String[] args)
  • twpol
    Senior Member
    • Oct 2009
    • 434
    • United Kingdom

    #2
    Could you name the route and activity, or at least include the full log?
    James Ross
    Open Rails Management Team
    sigpic

    Comment

    • CNW 5099
      Senior Member
      • Jul 2006
      • 196
      • .

      #3
      Cajon Pass 4 - Eastbound Introductory Intermodal Default

      ATSF Seligman Sub - Westbound Intermodal

      There's a couple of consists I used that OR does not seem to like. Both are pretty long intermodal trains that use the spine and/or the maxi-stack cars. Though they seem to work normally in MSTS. Here's the rest of the log.....



      BUILD = 0.0.3911.24215 2010.09.16. 14:27

      Starting Activity = C:\Program Files (x86)\Microsoft Games\Train Simulator\ROUTES\atsf_seligman\ACTIVITIES\2-wb_intermodal.act

      ------------ ---------- ------------ ----------
      Loading TRK TRP TDB DAT ACT CON


      runactivity.exe : Warning : 0 : Ignoring extra world_water_layer in C:\Program Files (x86)\Microsoft Games\Train Simulator\ROUTES\atsf_seligman\ENVFILES\SummerClea r.env:line 302
      at ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
      at System.Diagnostics.TraceInternal.TraceEvent(TraceE ventType eventType, Int32 id, String format, Object[] args)
      at System.Diagnostics.Trace.TraceWarning(String format, Object[] args)
      at MSTS.ENVFile..ctor(String filePath)
      at ORTS.Viewer3D.ReadENVFile()
      at ORTS.Viewer3D.Initialize()
      at ORTS.Program.Start(IEnumerable`1 settings, String[] args)
      at ORTS.Program.Main(String[] args)

      CSSTTTTTTTTTWWWW S(repeats) S(repeats) S$WSSSSSSSSSSSSSSSSSSSSSc:\program files (x86)\microsoft games\train simulator\routes\atsf_seligman\textures\


      runactivity.exe : Error : 0 : System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\program files (x86)\microsoft games\train simulator\routes\atsf_seligman\textures\'.
      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
      at MSTS.ACEFile.Texture2DFromFile(GraphicsDevice GraphicsDevice, String filename)
      at ORTS.SharedTextureManager.Get(GraphicsDevice device, String path)

      S(repeats) SSSSSSSSSSS$WWWSSSSS$WSSSSSSCSCSCCSSCSCSCSCS

      runactivity.exe : Error : 0 : System.NullReferenceException: Object reference not set to an instance of an object.
      at ORTS.TrainCar.SetupWheels()
      at ORTS.MSTSWagonViewer..ctor(Viewer3D viewer, MSTSWagon car)
      at ORTS.MSTSWagon.GetViewer(Viewer3D viewer)
      at ORTS.TrainDrawer.Load(RenderProcess renderProcess)
      at ORTS.Viewer3D.Load(RenderProcess renderProcess)
      at ORTS.RenderProcess.Initialize()
      at Microsoft.Xna.Framework.Game.Run()
      at ORTS.Viewer3D.Run()
      at ORTS.Program.Start(IEnumerable`1 settings, String[] args)

      Comment

      • CNW 5099
        Senior Member
        • Jul 2006
        • 196
        • .

        #4
        SVN V = 360
        BUILD = 0.0.3911.24215 2010.09.16. 14:27

        Starting Activity = C:\Program Files (x86)\Microsoft Games\Train Simulator\ROUTES\CajonPass4\ACTIVITIES\BNSF-Eatsbound-Default.act

        ------------ ---------- ------------ ----------
        Loading TRK TRP TDB DAT

        runactivity.exe : Error : 0 : Duplicate SectionIndex of 40000 in C:\Program Files (x86)\Microsoft Games\Train Simulator\ROUTES\CajonPass4\TSECTION.DAT:line 9027
        at ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
        at System.Diagnostics.TraceInternal.TraceEvent(TraceE ventType eventType, Int32 id, String format, Object[] args)
        at System.Diagnostics.Trace.TraceError(String format, Object[] args)
        at MSTS.STFException.ReportError(STFReader reader, String message)
        at MSTS.TrackSections.AddSection(STFReader f, TrackSection section)
        at MSTS.TrackSections.AddRouteTrackSections(STFReader f)
        at MSTS.TSectionDatFile.AddRouteTSectionDatFile(Strin g pathNameExt)
        at ORTS.Simulator..ctor(String activityPath)
        at ORTS.Program.Start(IEnumerable`1 settings, String[] args)
        at ORTS.Program.Main(String[] args)



        runactivity.exe : Error : 0 : Duplicate SectionIndex of 40002 in C:\Program Files (x86)\Microsoft Games\Train Simulator\ROUTES\CajonPass4\TSECTION.DAT:line 9030
        at ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
        at System.Diagnostics.TraceInternal.TraceEvent(TraceE ventType eventType, Int32 id, String format, Object[] args)
        at System.Diagnostics.Trace.TraceError(String format, Object[] args)
        at MSTS.STFException.ReportError(STFReader reader, String message)
        at MSTS.TrackSections.AddSection(STFReader f, TrackSection section)
        at MSTS.TrackSections.AddRouteTrackSections(STFReader f)
        at MSTS.TSectionDatFile.AddRouteTSectionDatFile(Strin g pathNameExt)
        at ORTS.Simulator..ctor(String activityPath)
        at ORTS.Program.Start(IEnumerable`1 settings, String[] args)
        at ORTS.Program.Main(String[] args)



        runactivity.exe : Error : 0 : Duplicate SectionIndex of 40000 in C:\Program Files (x86)\Microsoft Games\Train Simulator\ROUTES\CajonPass4\TSECTION.DAT:line 9039
        at ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
        at System.Diagnostics.TraceInternal.TraceEvent(TraceE ventType eventType, Int32 id, String format, Object[] args)
        at System.Diagnostics.Trace.TraceError(String format, Object[] args)
        at MSTS.STFException.ReportError(STFReader reader, String message)
        at MSTS.TrackSections.AddSection(STFReader f, TrackSection section)
        at MSTS.TrackSections.AddRouteTrackSections(STFReader f)
        at MSTS.TSectionDatFile.AddRouteTSectionDatFile(Strin g pathNameExt)
        at ORTS.Simulator..ctor(String activityPath)
        at ORTS.Program.Start(IEnumerable`1 settings, String[] args)
        at ORTS.Program.Main(String[] args)

        Comment

        • twpol
          Senior Member
          • Oct 2009
          • 434
          • United Kingdom

          #5
          Thanks; the log suggests OR is choking on the wheel arrangement of one of the wagons. I've put it on the bug list for investigation.
          James Ross
          Open Rails Management Team
          sigpic

          Comment

          • CNW 5099
            Senior Member
            • Jul 2006
            • 196
            • .

            #6
            I viewed the consist in MSTS doing a runby with the 4 cam and sure enough the spine cars are set up incorrectly. Which is odd because I set them up according to the included con file packaged with them. BCDEA. The wheels also seem to overlap over the coupling sections as well. I like the fact that OR will not start with an incorrect arrangement of wheels.

            Comment

            • kraus
              1000 Post Veteran

              • Jan 2001
              • 1086
              • Madison, Wisconsin
              • General

              #7
              Would you have the name of file in the library for these spine cars?

              Comment

              • CNW 5099
                Senior Member
                • Jul 2006
                • 196
                • .

                #8
                I believe they are the TTAX spine cars. I'm going to look at my consists and see if I actually set them up correctly. I've been doing the MSTS thing for 10 years now and I've ALWAYS had trouble putting together the spine and maxi sets.

                Comment

                • CNW 5099
                  Senior Member
                  • Jul 2006
                  • 196
                  • .

                  #9
                  Yep, I screwed up. I guess the set is AEDCB.

                  Comment

                  • CNW 5099
                    Senior Member
                    • Jul 2006
                    • 196
                    • .

                    #10
                    Yep, it was the Spine cars. Re-did them and the activity loads perfectly.

                    Comment

                    • twpol
                      Senior Member
                      • Oct 2009
                      • 434
                      • United Kingdom

                      #11
                      That's great to hear! I'll still investigate what goes wrong in OR, either so it can survive (but probably look odd) or provide a better error message when it fails.
                      James Ross
                      Open Rails Management Team
                      sigpic

                      Comment

                      Working...