Genma Saotome, on 26 April 2021 - 08:17 PM, said:
Something to consider: Drop the need to run those files thru train.exe and the effort to fix the slop might be less than what will be required to fully implement .json
There are certainly some uncommon elements to the STF format, such as the variety of ways of ignoring sections/commenting ("Skip", "Info", "Comment" blocks and any block name starting with "_" are skipped, and "//" is an inline comment which counts parentheses to work correctly).
However, the problem with creating a better version of STF just for Open Rails is that we still have to read all the existing content created for MSTS, so we'd still have two formats to read - like we do with JSON and STF - but this time we'd have to manually implement both of them. Implementing a parser is a lot of hard work, and you couldn't use the same parser for both without a toggle for which features to use - and a single parser with a toggle is still two parsers when it comes to correctness, testing, and bug fixes (this is the same reason each new game option is resisted).
This is why JSON is a better choice - we are offloading all the hard work of designing, specifying, and implementing the format (syntax, tokeniser/serialiser/deserialiser, etc.) and only working on the bits specific to Open Rails. It will save us a huge amount of time in the long run.
cjakeman, on 27 April 2021 - 05:35 AM, said:
I have therefore removed them from the submission for the official Open Rails and conversion is no longer prompted for.
Thanks.