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?
problems with Fantasii V2 activity
Collapse
X
-
Tags: None
-
I would but I overwrote it after playing another activity. I know it involved one of the crossings somewhere before IvanhoeComment
-
-
-
Comment
-
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 isComment
-
-
-
-
-
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
Comment
-
This is the code that causes the exception:
This implies that the field "locomotive" is null. That seems rather strange.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; } }
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
-







Comment