Notepad+ Is there ready MSTS/ORTS syntax plugins?
#1
Posted 15 February 2021 - 08:27 AM
(by the way, which can you suggest?)
I've decided to try Notepad+
I didn't have success yet with defining my own syntax to view MSTS-files, but maybe there is ready syntax somewhere?
#2
Posted 15 February 2021 - 11:59 AM
I know there's something for ConText, I think that's just a highlighter.
#3
Posted 15 February 2021 - 12:23 PM
Weter, on 15 February 2021 - 08:27 AM, said:
(by the way, which can you suggest?)
I've decided to try Notepad+
I didn't have success yet with defining my own syntax to view MSTS-files, but maybe there is ready syntax somewhere?
Hi...
I started one in this the following thread - download for my Notepad++ syntax is in there - the issue is we still need an official definitive list of ORTS variables...
http://www.elvastowe...__1#entry252855
Regards,
Scott
#4
Posted 15 February 2021 - 12:32 PM
Yes, there was MSTS highliter.
<Interesting: what distinct between syntax and highliter?>
But one day it corrupted locomotive's description block, wrote in Russian, due to changing Cyrillic symbols to other during save- so I'm afraid of saving files in ConText.
Scott, thanks.
#5
Posted 15 February 2021 - 03:37 PM
The problem with Context is that it's really simple to create a highlighter... but the simplicity of that feature means that the highlighter has issues keeping up with code context (pun intended). It has trouble with nested states and comments. So Context was never ideal.
The right way to come up with a solution is to figure out how Visual Studio Code does it and come up with a solution for that. Even Notepad++ suffers from understanding the contextual changes as seen on the nested parens format (It has an official name, I just forgot ) This is why I feel that ORTS should support more than one kind of Copnfigiration format. once that is a more common industry standard like maybe JSON and the traditional one.
Note: I've just started reading up on how to make a proper syntax-based highlighter in Visual Studio Code. Seems not so easy at this stage.
I still happily use Context.exe myself.
#6
Posted 15 February 2021 - 06:54 PM
#7
Posted 15 February 2021 - 11:32 PM
I don't recall if the free version allows you to use either escape characters or natural expressions (the Pro version has them and I just love them). If the free version allows for escape characters you can convert a multi-line block of data to a single line. I do that for the entire Tsection file, all route *.ref files, and on occasion world files too (even all of the world files for a route). They're easier to read and moving them over to excel and back again is trivial.
#8
Posted 16 February 2021 - 03:38 AM
#9
Posted 16 February 2021 - 06:41 AM
scottb613, on 15 February 2021 - 12:23 PM, said:
- the issue is we still need an official definitive list of ORTS variables...
This is about as close as you can get right now. ORParameters.
See the second sheet ('Lists_by_Type') for a bunch of lists.
Everything comes from within the OR code. Current version is as of Feb 8th.
The thing that is missing, however, is a flagging of Parameters (that don't start with "ORTS") which are not needed for an OR only file. An example is friction. There is no way to determine this without carefully inspecting the code but if anyone knows of parameters which are not needed by OR, and are only there to satisfy MSTS diehards, please let me know and I can then compile a list which I can use to update the MSTS only parameters.
#10
Posted 16 February 2021 - 06:54 AM
RR1, on 16 February 2021 - 06:41 AM, said:
See the second sheet ('Lists_by_Type') for a bunch of lists.
Everything comes from within the OR code. Current version is as of Feb 8th.
The thing that is missing, however, is a flagging of Parameters (that don't start with "ORTS") which are not needed for an OR only file. An example is friction. There is no way to determine this without carefully inspecting the code but if anyone knows of parameters which are not needed by OR, and are only there to satisfy MSTS diehards, please let me know and I can then compile a list which I can use to update the MSTS only parameters.
Hi...
Whoa - now that's an EPIC effort - good stuff - can't imagine the difficulty involved with compiling THAT list...
:sign_thanks:
Regards,
Scott