problems with Fantasii V2 activity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johnnyboy99
    Senior Member


    • Nov 2014
    • 373
    • General

    #1

    problems with Fantasii V2 activity

    I've tried playing the Southbound Manifest Activity for Fantasii V2 and i've run into problems with it. More specifically, whenever in autopilot mode, at a certain point of the activity when I reach certain crossings, it crashes the game as it reports a Null Reference Exception regarding the some crossings. I tried going manual and went a bit further, but as I wait at the red signal it still gives off the error. How do I fix this?
  • c44d9w
    Member
    • May 2010
    • 58

    #2
    The log file (OpenRailsLog.txt, on the desktop) should have some information on what could be the problem.

    Comment

    • johnnyboy99
      Senior Member


      • Nov 2014
      • 373
      • General

      #3
      I would but I overwrote it after playing another activity. I know it involved one of the crossings somewhere before Ivanhoe

      Comment

      • derekmorton
        5500 Post Veteran



        • Nov 1999
        • 5699
        • Eltham, Victoria, Australia.
        • ORTS

        #4
        Run it again

        Comment

        • johnnyboy99
          Senior Member


          • Nov 2014
          • 373
          • General

          #5
          you didn't have the same problem with the activity?

          Comment

          • johnnyboy99
            Senior Member


            • Nov 2014
            • 373
            • General

            #6
            more specifically the error had something to do with AI horn triggers at a certain crossing

            Comment

            • johnnyboy99
              Senior Member


              • Nov 2014
              • 373
              • General

              #7

              Error: System.NullReferenceException: Object reference not set to an instance of an object.
              at Orts.Simulation.AIs.AILevelCrossingSingleHorn.<Exe cute>d__1.MoveNext() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AITrain.cs:line 6802
              at Orts.Simulation.AIs.AuxActionHornItem.HandleAction (Train thisTrain, Int32 presentTime, Single elapsedClockSeconds, AI_MOVEMENT_STATE movementState) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AIAuxAction.cs:line 2003
              at Orts.Simulation.AIs.AuxActionHornItem.ProcessActio n(Train thisTrain, Int32 presentTime, Single elapsedClockSeconds, AI_MOVEMENT_STATE movementState) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AIAuxAction.cs:line 2036
              at Orts.Simulation.AIs.AuxActionsContainer.ProcessGen Action(AITrain thisTrain, Int32 presentTime, Single elapsedClockSeconds, AI_MOVEMENT_STATE movementState) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AIAuxAction.cs:line 340
              at Orts.Simulation.AIs.AITrain.AIUpdate(Single elapsedClockSeconds, Double clockTime, Boolean preUpdate) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AITrain.cs:line 741
              at Orts.Simulation.AIs.AI.AIUpdate(Single elapsedClockSeconds, Boolean preUpdate) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \AIs\AI.cs:line 676
              at Orts.Simulation.Simulator.Update(Single elapsedClockSeconds) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation \Simulator.cs:line 874
              at Orts.Viewer3D.Viewer.Update(RenderFrame frame, Single elapsedRealTime) in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Viewe r.cs:line 746
              at Orts.Viewer3D.Processes.UpdaterProcess.Update() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\UpdaterProcess.cs:line 128
              at Orts.Viewer3D.Processes.UpdaterProcess.DoUpdate() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\UpdaterProcess.cs:line 108
              at Orts.Viewer3D.Processes.UpdaterProcess.UpdaterThre ad() in C:\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\UpdaterProcess.cs:line 74
              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()


              Information: Game.PopState()

              here it is

              Comment

              • derekmorton
                5500 Post Veteran



                • Nov 1999
                • 5699
                • Eltham, Victoria, Australia.
                • ORTS

                #8
                If you want help, attach the log file.

                Comment

                • johnnyboy99
                  Senior Member


                  • Nov 2014
                  • 373
                  • General

                  #9
                  it says the log file is too big to upload

                  Comment

                  • slipperman
                    3500 Post Veteran



                    • May 2010
                    • 3787
                    • Worksop, UK
                    • MSOR

                    #10
                    Then zip it up, dear Liza, dear Liza, zip it up !!

                    Comment

                    • johnnyboy99
                      Senior Member


                      • Nov 2014
                      • 373
                      • General

                      #11
                      OpenRailsLog.zip here it is

                      Comment

                      • johnnyboy99
                        Senior Member


                        • Nov 2014
                        • 373
                        • General

                        #12
                        whoops meant to post this in the screenshots thread
                        anyway I think I need to edit the .tit file because there might be an error there
                        Last edited by johnnyboy99; 08-16-2025, 19:43. Reason: meant to post this in the screenshots thread

                        Comment

                        • c44d9w
                          Member
                          • May 2010
                          • 58

                          #13
                          This is the code that causes the exception:
                          Code:
                                  public override IEnumerator<int> Execute(MSTSLocomotive locomotive, int? durationS)
                                  {
                                      if (!durationS.HasValue)
                                      {
                                          // Sound the horn for a pseudorandom period of seconds between 2 and 5.
                                          durationS = (DateTime.Now.Millisecond % 10) / 3 + 2;
                                      }
                          
                                      locomotive.ManualHorn = true;       <--- exception thrown here
                                      yield return durationS.Value;
                          
                                      locomotive.ManualHorn = false;
                          
                                      if (locomotive.DoesHornTriggerBell)
                                      {
                                          yield return 30 - durationS.Value;
                                          locomotive.BellState = MSTSLocomotive.SoundState.Stopped;
                                      }
                                  }
                          This implies that the field "locomotive" is null. That seems rather strange.

                          But then, the log file also contains the following warning, implying that there is a train with no locomotive.
                          Warning: Train Fv2_SB Manifest Trf 07 (23) has no locomotive!

                          Comment

                          • johnnyboy99
                            Senior Member


                            • Nov 2014
                            • 373
                            • General

                            #14
                            oh, I forgot to swap that out with a freeware Genesis

                            Comment

                            Working...