Creating Tunnels And Transfers in MSTS
by Chris Jennings

Overview

So you want to make tunnels for your route. It was tricky with a lack of help at first, but after months of researching the editor and its functions, many people have found out how to make holes (the most important step in making a tunnel) thus leading the way to making tunnels (and subways if you're more advenced using with the editor).

So for those who are just starting out making tunnels, read this - and good luck.

 

The Process

First things first, create a hill (If you have your terrain already setup using DEM data or just by playing around with the terrain altering tools, then just find a place where you want your tunnel).

This is a simple hill we made for our Tunnel tutor

Press the "Alter Terrain Height" button (or F9), move the crosshair to the area where you want the tunnel to begin and press "V" on your keyboard: this will make the area transparent.

Next find an area where you want the other side of the tunnel and make it transparent.

Note: If you can't make terrain transparent by pressing V, make sure you don't have any terrain selected.

By pressing the V key, we made a hole in the hill

Once you have your holes ready, you can start adding track between the holes; it's best if you turn off camera collisions by pressing "/" (FORWARD SLASH) key and using wireframe mode by pressing "W".

Note: When in the "Object Selector" menu finding tunnel based tracks, look at the file names carefully for clues as to its shape:

  • TUN means a square tunnel
  • RNDTUN means a nice round tunnel.

When making the route for this tutorial I didn't copy any track based shapes from other route to the test map folder, so there may be some more tunnel shapes included with the offical MSTS routes.

The track that goes inside the hill it's sticking out but we'll deal with that soon

Now that we have our track running through the holes, we need to cover the rest of the transparent gap. To do this, we need to use a few "Transfers" to cover the gaps.

Press "More" in the floating "Placement" bar, this will bring you into the "Object Selector" menu, select "transfers" from the "Object class" pulldown menu and find a transfer that matches the texture you're using for the tunnel.

Object Selector, this where you choose the objects you want to add to your route

Place the transfer on the route as you would place a piece of track: move the trasfer over the gap (it should hog the ground when moving along the terrain so you don't have to do anything like adjusting the height or rotating like you would normal objects or tracks). You can adjust the size of the transfer by right clicking on it when selected then selecting the "Transfer" tab.

First we'll put our first transfer on the lower right on the gap

You may need more then one transfer to cover most of the big gaps; don't forget the apply transfers to the other side of the tunnel.

Note: If you want to make transfers, please scroll down to "How To Make Transfers".

then we add another one on top

We have now covered the majority of the hole, but there will be some small gaps left and the tunnel track is sticking out of the hole.

then add one more on the lower left

It's very simple to cover the tiny gaps and excess tunnel track by inserting any tunnel object in front of the hole and there you have it - a perfect tunnel.

Now we add an object to cover up the tiny gaps & the remaining track thats sticking out of the hill

 

How To Make Transfers

If you're making route from scratch (without copying any shapes from the official routes), you'll won't have an extensive library of objects, including transfers, for objects you have to make your own and/or copy some from the official routes, but making transfers are easy, all you need is to copy some texture files and edit one file.

Find the directory where your route is (C:\Program Files\MicrosoftGames\Train Simulator\Routes\Myroute)

Go to the TERRTEX directory, there should be some ACE files: find a ace file you want to use for a transfer (we'll use "TERRAIN.ACE") and copy it to your TEXTURE directory.

Find the myroute.REF file in your route's directory: open it with ConTEXT or similr Unicode-aware editor and scroll down to find the word TRANFERS.

We need to enter some simple code to make a transfer, enter the following code at right

When entering this code, try not to alter other codes on the file, the code should fit between other object codes as shown below. Using ConTEXT, you should be able to see the highlighted brackets.

In the "Filename" brackets, enter the file name (with extension) of the texture file you moved to the TEXTURE directory a few moments ago, In the "Description" brackets, just give it a name like "Terrain Transfer" (with quotes, or no spaces if you don't use quotes) or what ever you want.

After adding the code, save the file, run MSTS Route Editor and your new transfer should be ready to use.

Hope this helps.