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.
Page 1 of 1
OR parser doesn't like FileName ( _fcu_tr-rimloco.s ) in .w file
#2
Posted 23 November 2017 - 11:53 AM
Csantucci, 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