Elvas Tower: OR parser doesn't like FileName ( _fcu_tr-rimloco.s ) in .w file - Elvas Tower

Jump to content

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

OR parser doesn't like FileName ( _fcu_tr-rimloco.s ) in .w file Rate Topic: -----

#1 User is offline   Csantucci 

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

Posted 28 September 2017 - 10:47 PM

The OR parser does not like in the .w file (and I suppose also in other files) filenames starting with an underscore. To get the filename accepted the line has to be edited as follows: ( "_fcu_tr-rimloco.s" ). As MSTS instead accepts such filenames, there are routes where objects with such filenames are not shown in OR.

#2 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 23 November 2017 - 11:53 AM

View PostCsantucci, on 28 September 2017 - 10:47 PM, said:

The OR parser does not like in the .w file (and I suppose also in other files) filenames starting with an underscore. To get the filename accepted the line has to be edited as follows: ( "_fcu_tr-rimloco.s" ). As MSTS instead accepts such filenames, there are routes where objects with such filenames are not shown in OR.

Cool. I guess this is probably code that checks for _Block (...) things to ignore triggering on unquoted strings.

If you can add a test to the test suite in Source/Tests/Orts.Parsers.Msts/StfReader.cs that tries to parse strings (maybe the BlockStringFormats function?) that'd be great.

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