Elvas Tower: ORNYMG - Mullan 'NullReference Exception' UPDATE - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ORNYMG - Mullan 'NullReference Exception' UPDATE Rate Topic: -----

#1 User is offline   Sierra Ry. 28 

  • Apprentice
  • Group: Posts: Dispatcher
  • Posts: 24
  • Joined: 22-October 19
  • Gender:Male
  • Location:Georgia, United States of America
  • Simulator:Open Rails - MSTS
  • Country:

Posted 12 March 2026 - 01:35 AM

So, same title as my post in the main thread.

I'll paste what I put there here, because even after unblocking *all* files in the directory that it wasn't able to pick up for whatever reason it's still throwing a NullReference Exception for something I can't find. This might be the result of Microsoft's doing with all the junk updates and I can't backdate to Windows 10...

Log attached below, same for the information.

BUILD: ORNYMG WE-Rev. 170.
ROUTE: TS Mullan Pass (Testing every other route I have installed works).
CONSIST: Custom-made consist (107-car manifest; mostly using supplied TS engines and stock as well as 1 reskinned Dash 9 from Trainsim.com, alongside a FEW NAVS freight cars).
PATH: Any (Not applicable for error; occurs regardless).
ACTIVITY: Explore in Activity Mode (It does also do this for the activities, and I don't think it's a problem with the paths).

Steps:

1. Open the application with any consist loaded and any path selected.
2. Press 'Start', and it hits with a System.NullReferenceException immediately on start. (Refer to provided Log File).

Attached File  OpenRailsLog.txt (15.15K)
Number of downloads: 6

#2 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,724
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 12 March 2026 - 03:30 PM

This is the line causing the crash, and the following one:
Sun_RiseTime = viewer.ENVFile.SkySatellites[0].RiseTime;
Sun_SetTime  = viewer.ENVFile.SkySatellites[0].SetTime;

I assume Mullan Pass has a missing or incomplete EnvFile. Compare the Mullan Pass EnvFiles with those of a working route, and check whether something within the world_sky_satellites block (or the whole block) is missing.

#3 User is offline   Sierra Ry. 28 

  • Apprentice
  • Group: Posts: Dispatcher
  • Posts: 24
  • Joined: 22-October 19
  • Gender:Male
  • Location:Georgia, United States of America
  • Simulator:Open Rails - MSTS
  • Country:

Posted 13 March 2026 - 01:50 AM

View PostCsantucci, on 12 March 2026 - 03:30 PM, said:

This is the line causing the crash, and the following one:
Sun_RiseTime = viewer.ENVFile.SkySatellites[0].RiseTime;
Sun_SetTime  = viewer.ENVFile.SkySatellites[0].SetTime;

I assume Mullan Pass has a missing or incomplete EnvFile. Compare the Mullan Pass EnvFiles with those of a working route, and check whether something within the world_sky_satellites block (or the whole block) is missing.


Just checked one each from Mullan and Ruel, and Ruel has the 'world_sky_satellites' section whilst Mullan doesn't.

Would fixing it just require editing the .ENVs for each type to have that section included?

#4 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,724
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 13 March 2026 - 06:54 AM

Yes, it should be so. Pay attention with brackets

#5 User is offline   Sierra Ry. 28 

  • Apprentice
  • Group: Posts: Dispatcher
  • Posts: 24
  • Joined: 22-October 19
  • Gender:Male
  • Location:Georgia, United States of America
  • Simulator:Open Rails - MSTS
  • Country:

Posted 13 March 2026 - 08:17 AM

View PostCsantucci, on 13 March 2026 - 06:54 AM, said:

Yes, it should be so. Pay attention with brackets



I noticed as well that whilst Shasta doesn't have that it can run perfectly fine. Is there some sort of special exception that route has to not requiring this that Mullan doesn't?

EDIT: Placing another set of .ENV files in has managed to work, no issues with it loading (I borrowed the ones from the Ruel Sub to see if those would work).
Not sure if my installer for Mullan is outdated (I don't think they do updates to the installers?) but this solution will work fine.. as a temporary.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users