| Australian MSTS @ Steam4me
|
Ok, let's get started.
Click on link above and download the Setup file to your PC.
Double-click on the installer to commence installation.
The "Editor" tab contains the option to turn on line-numbering: this alone makes the editor
worthwhile as it allows you to quickly find the exact location of an MSTS error message. I also
set the tab spaces to 5 as that seems to match Kuju's ENG and WAG files best.
If you don't like the colours I've set within the highlighter, you can change each one
by clicking on the "Color" tab, selecting the appropriate component to change, then selecting
the foreground and background colours as desired.
I don't recommend setting associations inside ConTEXT as it lumps them all under the
"Type" filename of "ConTEXT document". I'll show you how to set associations shortly.
Just a quick note: v0.98.00 now has text wrapping to the window - Press Shift-Ctrl-W to activate: this is great for reading those files that have long lines with no c/returns in them.
If you've perused the screenshot above, you'll see that various keywords inside the ENG file are highlighted in specific colours; even the matched brackets are clearly visible.
Pete Willard wrote a Trainsim Highlighter for ENG and WAG files: I've expanded it to encompass ENG, WAG, SD, CVF, SMS and .CON files as well.
Download MSTS_CTXTv2_1.ZIP, (a 5k file) - this is version 2.1 (released 2 August 2005) of my highlighter. I do not recommend using the MS Highlighter on the ConTEXT webpage as it contains errors in highlighting the Comments section.
v2.1 corrects a bug in that the file panel at the left of your ConTEXT screen now shows all MS files, not just the ENG file.
Unzip the contents into the
/Program Files/ConTEXT/Highlighters folder.
Now whenever you open a .ENG, .WAG, .SD, .CVF, .SMS, .CON file using ConTEXT, this highlighter will be
utilised.
This provides you with a visual aid to check that the most likely correct keywords are in the right place.
A few keywords have been excluded from the highlighter: this is because they appear at different levels in the various MSTS files and the "incorrect" colour" adds to the confusion. These non-highlighted words include Type Position Style Direction.
It is very simple to use this function: simply place the cursor immediately to the left of the bracket you wish to check: both brackets will then be highlighted: look at the image immediately above to see how this works.
This works both in the forwards and the reverse direction.
If the matching bracket is not located on the same screen as the first bracket, the first bracket will not highlight, indicating that the matching bracket is off-screen. You can:
My version 2.0 MSTS highlighter (linked above) attempts to provide a solution to this problem.
If you've never done this before, double-clicking on any ENG file will bring up the image below.
In the blank field at the top, type in "ENGine file for MSTS" or whatever you want to appear as "Type" of file when browsing in Explorer, then select ConTEXT and click "ok". From now on, whenever you double-click on an ENG file, ConTEXT will open it for you. Repeat the process for WAG, SD, CVF, SMS and CON files.
If you've already got these files associated with another program, it's only a little trickier to get ConTEXT to open them for you.
In Explorer, (for Win98) click on View | Folder Options | File Types. Scroll down the list till you find and click on the entry for ENG files. It'll probably look like the image below.
Referring to image below, click on Edit (1), a new window opens,click on "open" (2) then click the "Edit" button (3).
Type or copy this entire next line (in maroon/yellow) exactly as shown into the into the field at (4).
| "C:\Program Files\ConTEXT\ConTEXT.exe" "%1" |
Click on "Ok", then "Close", then "Close" again.
Done.
Now you can repeat these instructions for your WAG, SD, CVF, SMS and CON files.
A last note: If you elected to "Browse" to the new program file at (4) above, be sure to add the "%1" (yes include the quotes)
after the program name or the link won't work.
If you've never done this before, double-clicking on any ENG file will bring up the image below.
Click on the button "Select Program from a list" and click "ok".
You will then see this window. Depending on your system, ConTEXT may be found as a "Recommended program", "Other program" or you may need to click on the "Browse" button to "c:\Program Files\ConTEXT". In the blank field under the list of programs, type in "ENGine file MSTS" or whatever you want to appear as "Type" of file when browsing in Explorer, then "ok".
From now on, whenever you double-click on an ENG file, ConTEXT will open it for you. Repeat the process for WAG, SD, CVF, SMS and CON files.
If you've already got these files associated with another program, it's only a little trickier to get ConTEXT to open them for you.
In Explorer, click on Tools | Folder Options | File Types. Scroll down the list till you find and click on the entry for ENG files. It'll probably look like the image below.
Click on "Change" and select ConTEXT from the list as below.
Click on "Ok", then "Close".
Done.
Now you can repeat these instructions for your WAG, SD, CVF, SMS and CON files.
Method #1
Open Explorer. Click on the heading marked Type to sort the files by suffix.
Select the files you wish to open.
Open ConTEXT (see image below).
Now drag and drop the files onto ConTEXT. All files are opened for you. You can move from file to file by clicking on the filename tab at the top (see image below)
Method #2
Open ConTEXT and using the File Panel at left, browse to the folder you require. If the File Panel is not visible, click on View | File Panel or press Ctrl+Shift+E to make it appear. Use the scroll bar to move horizontally to the Type column and click on the column header.
Select the files you wish to edit (see image below)
Drag-and-drop the files onto the workspace thus...........
Here I opened a large number (139 in fact) of .W files from a route in order to change a StaticDetailLevel from 0 to 2.
I went to the Route's World folder, clicked on TYPE to sort all the .w files together.
I opened ConTEXT with no file.
I selected the 139 .w files and drag/dropped them onto ConTEXT. See image below.
It took ConTEXT about 30-40 seconds to digest and open the files.
I selected and copied "StaticDetailLevel ( 0 )".
I pressed Ctrl-R and filled in the dialogue box as below.
Less than 5 seconds later, I had this message:
Finally I clicked on the "Save All" icon (fourth from left) and saved all my changes.
I've found it only works successfully with both files loaded into ConTEXT, even though options allow you to check a file from disk.
Open both files in ConTEXT. Click on Tools | Compare.
In the top dialogue box, check the current file radio button.
In the lower dialogue box, select "editing file" and select the other file in ConTEXT. See image below:
You can alter the colour and line numbering settings by clicking on "Settings". See image below.
The two files open in a new window: note that line differences are highlighted:
Even gaps/blank space is highlighted in a different colour:
Even in its current form, this is a very useful tool.