System.NullReferenceException at Orts.Viewer3D.Processes.LoaderProcess.Load (Portugal79)

Bug #1929323 reported by Rui Fonseca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
Invalid
Undecided
Unassigned

Bug Description

I am using Carlo's CircuitBreaker_IT on an electric locomotive for more than a year and it always worked well.

Last week cjakeman showed me a way to start Or via bat file command code, like the one bellow, in this case an explore route:

START /B "" "C:\Jogos\OR_NewYear_MG98\RunActivity.exe" -start -explorer "C:\Jogos\Train Simulator\ROUTES\CPV_PT79\PATHS\lisboa-porto1a.pat" "C:\Jogos\Train Simulator\TRAINS\CONSISTS\CP2601+rapido1HV79.con" 12:00 1 0

What I've found out is that loading the simulation either explore route mode or timetable mode this way (bat file), the circuit breaker is immediatly closed after raising the pantograph, meaning it's working in "manual" mode. Log file file shows that the necessary libraries for the script are not loaded.

I tested this in both 98.1 and 97 NewYear_MG. It also happens when resuming a saved explore or tivetable run.

I really need OR to open correctly via bat file, otherwise I do not know how to fully control the circuit breaker without the script.

Tags: crash
Revision history for this message
Rui Fonseca (aldarion77) wrote :
Revision history for this message
Rui Fonseca (aldarion77) wrote :
description: updated
summary: - circuit breaker bug with bat file start
+ circuit breaker with bat file
Rui Fonseca (aldarion77)
description: updated
description: updated
tags: added: circuitbreaker
Revision history for this message
Rui Fonseca (aldarion77) wrote : Re: circuit breaker with bat file

Testing in current X1.3.1-358, starting with the menu.exe

Revision history for this message
Rui Fonseca (aldarion77) wrote :

starting X1.3.1-358 with the bat file:

"C:\Jogos\Open Rails\RunActivityLAA.exe" -start -explorer "C:\Jogos\Train Simulator\ROUTES\CPV_PT79\PATHS\lisboa-porto1a.pat" "C:\Jogos\Train Simulator\TRAINS\CONSISTS\CP2601+rapido1HV79.con" 12:00 1 0

Rui Fonseca (aldarion77)
description: updated
Revision history for this message
Rui Fonseca (aldarion77) wrote :

Problem solved.

bat files need to be placed in the same folder than Openrails.exe

James Ross (twpol)
summary: - circuit breaker with bat file
+ System.NullReferenceException at
+ Orts.Viewer3D.Processes.LoaderProcess.Load (Portugal79)
tags: added: crash
removed: circuitbreaker
Changed in or:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.