Elvas Tower: Problem with certain signals - Elvas Tower

Jump to content

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

Problem with certain signals Rate Topic: -----

#1 User is offline   mburb1981 

  • Hostler
  • Group: Status: Active Member
  • Posts: 50
  • Joined: 01-March 15
  • Gender:Male
  • Location:Michigan
  • Simulator:Open Rails
  • Country:

Posted 12 February 2020 - 06:31 AM

Attached File  OpenRailsLog.txt (41.87K)
Number of downloads: 254

A few days ago I installed Travis Ebner's CSX Darth Vader colorlight signals along the CSX trackage of my Detroit-Toledo route. I thought everything was going to be well until I decided to start a timetable train from the Toledo end of the route, when it crashed with:

"System.NullReferenceException: Object reference not set to an instance of an object."

It appears to be related to the CSX signals, as I go within 10 miles of any CSX signal on the route, this error crashes the game.

Advance thanks.

#2 User is offline   ebnertra000 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,234
  • Joined: 27-February 17
  • Gender:Male
  • Location:East-Central Minnesota
  • Simulator:OR/TSRE
  • Country:

Posted 12 February 2020 - 07:11 AM

It looks like the signal shapes are looking for signal types that aren't present in the sigcfg file, either because they're mis-named or were never added in the first place. I'll check my copy when I get home to make sure I didn't botch the names

#3 User is offline   mburb1981 

  • Hostler
  • Group: Status: Active Member
  • Posts: 50
  • Joined: 01-March 15
  • Gender:Male
  • Location:Michigan
  • Simulator:Open Rails
  • Country:

Posted 13 February 2020 - 05:54 AM

View Postebnertra000, on 12 February 2020 - 07:11 AM, said:

It looks like the signal shapes are looking for signal types that aren't present in the sigcfg file, either because they're mis-named or were never added in the first place. I'll check my copy when I get home to make sure I didn't botch the names

It's possible, but keep in mind that the version of Detroit-Toledo that is out now doesn't have the CSX tracks that I mentioned.

#4 User is offline   ebnertra000 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,234
  • Joined: 27-February 17
  • Gender:Male
  • Location:East-Central Minnesota
  • Simulator:OR/TSRE
  • Country:

Posted 13 February 2020 - 07:51 AM

No, I meant my copy of the signal system, just to make sure I didn't mis-name a bunch of signal types or something. I doubt it, since that would have crashed OR while I was still testing them, but you never know... In any case, the route is turning out to be pretty impressive

#5 User is offline   mburb1981 

  • Hostler
  • Group: Status: Active Member
  • Posts: 50
  • Joined: 01-March 15
  • Gender:Male
  • Location:Michigan
  • Simulator:Open Rails
  • Country:

Posted 13 February 2020 - 07:57 AM

View Postebnertra000, on 13 February 2020 - 07:51 AM, said:

No, I meant my copy of the signal system, just to make sure I didn't mis-name a bunch of signal types or something. I doubt it, since that would have crashed OR while I was still testing them, but you never know... In any case, the route is turning out to be pretty impressive

It looks like I don't see any misnames on my copy either...

Go ahead and check your copy anyway.

#6 User is offline   mburb1981 

  • Hostler
  • Group: Status: Active Member
  • Posts: 50
  • Joined: 01-March 15
  • Gender:Male
  • Location:Michigan
  • Simulator:Open Rails
  • Country:

Posted 15 February 2020 - 06:31 AM

I think I may have found the culprit:
Warning: SignalObject trItem=4715, trackNode=1852 has SignalHead with undefined SignalType csx_cls-20_h2a_yr.

Warning: SignalObject trItem=4718, trackNode=1852 has SignalHead with undefined SignalType csx_cls-20_h2a_yr.

Warning: SignalObject trItem=4657, trackNode=2019 has SignalHead with undefined SignalType csx_cls-20_h1a_r.

Warning: SignalObject trItem=4657, trackNode=2019 has SignalHead with undefined SignalType csx_cls-20_h3a_yr.

Warning: SignalObject trItem=4775, trackNode=2045 has SignalHead with undefined SignalType csx_cls-20_h2a_yr.

Warning: SignalObject trItem=4952, trackNode=2045 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4952, trackNode=2045 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4952, trackNode=2045 has SignalHead with undefined SignalType csx_cls-20_h2b_gr.

Warning: SignalObject trItem=4771, trackNode=2049 has SignalHead with undefined SignalType csx_cls-20_h3a_yr.

Warning: SignalObject trItem=4950, trackNode=2049 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4950, trackNode=2049 has SignalHead with undefined SignalType csx_cls-20_h2b_yr.

Warning: SignalObject trItem=4950, trackNode=2049 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4950, trackNode=2049 has SignalHead with undefined SignalType csx_cls-20_h2b_yr.

Warning: SignalObject trItem=4643, trackNode=2050 has SignalHead with undefined SignalType csx_cls-20_h3a_yr.

Warning: SignalObject trItem=4764, trackNode=2051 has SignalHead with undefined SignalType csx_cls-20_h3a_yr.

Warning: SignalObject trItem=4656, trackNode=2059 has SignalHead with undefined SignalType csx_cls-20_h2a_yr.

Warning: SignalObject trItem=4796, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h2a_yr.

Warning: SignalObject trItem=4807, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4807, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h2b_yr.

Warning: SignalObject trItem=4807, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4829, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4829, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4851, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4851, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4869, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4869, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4889, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4889, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4911, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4911, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4917, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4917, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4917, trackNode=2060 has SignalHead with undefined SignalType csx_cls-20_h2b_yr.

Warning: SignalObject trItem=4792, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h3a_yr.

Warning: SignalObject trItem=4809, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4809, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4809, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h2b_yr.

Warning: SignalObject trItem=4831, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4831, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4849, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4849, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4871, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4871, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4891, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4891, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4909, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4909, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4919, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4919, trackNode=2063 has SignalHead with undefined SignalType csx_cls-20_h1b_gyr.

Warning: SignalObject trItem=4685, trackNode=2070 has SignalHead with undefined SignalType csx_cls-20_h1a_r.

Warning: SignalObject trItem=4685, trackNode=2070 has SignalHead with undefined SignalType csx_cls-20_h1a_r.

Warning: SignalObject trItem=4683, trackNode=2072 has SignalHead with undefined SignalType csx_cls-20_h2a_yr.

Warning: SignalObject trItem=4682, trackNode=2073 has SignalHead with undefined SignalType csx_cls-20_h1a_r.

Warning: SignalObject trItem=4682, trackNode=2073 has SignalHead with undefined SignalType csx_cls-20_h1a_r.


The strange part is that all of these signal types are listed in the sigcfg file.

#7 User is offline   ebnertra000 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,234
  • Joined: 27-February 17
  • Gender:Male
  • Location:East-Central Minnesota
  • Simulator:OR/TSRE
  • Country:

Posted 15 February 2020 - 07:18 AM

I took a more complete look at the log file, and it looks like you've got a ton of duplicate signal types and shapes, and that the counts are also way off. I think this problem would be fixed by a thorough cleaning of the sigcfg file. It should be something you could handle, but if you're not comfortable with it, I can do it. I should probably make a minor patch to the scripts, anyway, so timetables will work better.

#8 User is offline   mburb1981 

  • Hostler
  • Group: Status: Active Member
  • Posts: 50
  • Joined: 01-March 15
  • Gender:Male
  • Location:Michigan
  • Simulator:Open Rails
  • Country:

Posted 15 February 2020 - 08:02 AM

View Postebnertra000, on 15 February 2020 - 07:18 AM, said:

I took a more complete look at the log file, and it looks like you've got a ton of duplicate signal types and shapes, and that the counts are also way off. I think this problem would be fixed by a thorough cleaning of the sigcfg file. It should be something you could handle, but if you're not comfortable with it, I can do it. I should probably make a minor patch to the scripts, anyway, so timetables will work better.


Here's the attached sigcfg file with duplicate types and shapes removed, for you to try to fix the counts.
https://drive.google...iew?usp=sharing

#9 User is offline   mburb1981 

  • Hostler
  • Group: Status: Active Member
  • Posts: 50
  • Joined: 01-March 15
  • Gender:Male
  • Location:Michigan
  • Simulator:Open Rails
  • Country:

Posted 16 February 2020 - 10:43 AM

I decided to open the sigcfg file in Notepad+ and indeed I miscalculated the number of signal types. After adjusting the signal type number, the route is loading perfectly once again!

Thanks for the help Travis.

#10 User is offline   ebnertra000 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,234
  • Joined: 27-February 17
  • Gender:Male
  • Location:East-Central Minnesota
  • Simulator:OR/TSRE
  • Country:

Posted 16 February 2020 - 11:48 AM

I think I got to 250 or so and saw one of the C&O sets again. I'm certainly glad I don't have that many systems in any of my routes...

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