First off, to make a train, lay down the tracks. if you want it to go through a tunnel in a hill, make the tracks first, then delete them later; it looks a lot better. Tight curves are very bad... the train will look real messed up as it goes around the curve.
Secondly, make waypoints following the track EXACTLY. Around a curve, you should have at least 3 waypoints, I usually use 7. And make sure that you are modeling a waypath; that is, make sure that you are dragging from waypoint to waypoint and not just making waypoints. Make sure that when you finish following the tracks you connect the last waypoint to the first again, making a loop.
[Screenshot ]
Next, place the train on the map, next to or on top of the waypoint path. Placing an engine will make there be cars behind it as well, so don't worry about them for now. Just place the engine.
Now, click on one of the waypoints in your waypath, and down where there are three boxes with the words 'waypoint path label' above them, type "Railroad" in the box, without the quotes.
Also, to make the train stop at a certain area for a certain period of time, Label the waypoint [waypoint name]Station. Replace [waypoint name] with anything you want. The default name for a waypoint is Waypoint [Number] (i.e. Waypoint 146).
To make the train go through a tunnel, first you should make sure there is a waypoint in the waypoint path right in front of the tunnel.
Label it [waypoint name]Tunnel (i.e. Railroad183Tunnel). This will make the train stay at the altitude it is at until you have a point not labeled with Tunnel. Make sure all waypoints underground have the word "Tunnel" at the end of their names, unless you want the train popping up from the ground!
[Screenshot ]
ADVANCED TRAINS:CHANGING THE CARS IN A TRAIN AND MAKING IT GARRISONABLE!
This is for you advanced people who want to be able to put troops in the cars of trains and make them go in the train to the enemy base 😈
Open up your favorite text editor (Notepad, Wordpad, etc.) and make a new file.