First, you need a XML Editor. I am using the completely free Notepad++. Download it here: http://sourceforge.net/projects/notepad-plus/files/. Find the XML files for an installed custom map on your computer here: Documents/My Games/Sid Meiers Railroads!/UserMaps folder.
Before editing anything, make sure you have the original map accessible should you make a mistake. Don't edit your only copy. Make a backup first if needed.
When editing XML files be very careful not to accidentally overwrite any of the symbols: <, >, / etc.. These changes involve replacing an old value with a new one. You don't need to know how to use the symbols, just leave them intact. If some are missing, the map probably wont load anymore.
Info about identifying the XML files to edit:
There is some variation amongst maps in how the XML files are setup. Some use Globals such as the simple RRT_Trains.XML, others use locals such as RRT_Trains_[Name of the Map].XML. It doesn't matter which type the map uses for this tutorial, just make sure to edit the file that has the keyword we want as part of the name. In this example the keyword is "Trains".
If one or more of the files are missing, no problem. The map is using the game's default files without changes. Choose the file with the right keyword from the attached Original XML Files zip, put it in the map folder, and edit that.
If you have the file and open it only to find that it is missing the information we want to change, you have a stub file. These are the trickiest to do. You must find the correct stub for the section that would normally contain this information, then insert a new line.
In a stub file each item will still have a section. In our example, this is the section for the Grasshopper engine. Each engine a map uses will have its own section.
Stub file (Trains XML File):
Code: Select all
<Train> <szName>TAG_NAME_GRASSHOPPER</szName> </Train>
Here's the same section but with the Maintenance Cost line added. This is the default (500) multiplied by 3.5 to implement stabilized maintenance costs in Option 8:
Code: Select all
<Train> <szName>TAG_NAME_GRASSHOPPER</szName> <MaintenanceCost>1750</MaintenanceCost> </Train>
Searching in Notepad++:
Press Ctrl+F, to bring up the find box.
Enter your query. For option 2, this is: <fPassengerAndMailModifier>.
Now select "Find all in current Document".
This will display a pane at the bottom of the screen with all the results.
Double clicking on a result will take you there in the document
Please note that the search results pane doesn't update as the values are changed. Don't worry about this.