Editing the Timetable For Passenger Trains in MSTS' Activity Editor
by Yuri Sos

Overview

You've created a passenger train activity. Everything is set up and ready to go, you set the "Start Time" then you click on "Edit Timetable" in the "Player" section.

The times all say 10:00:00.

 

Establish The Timings You Wish To Use

STOP HERE for a moment ...... Here's a decision point. If you know what times you want to input, skip from here to the section below labelled "Altering the Arrival and Departure Times".

If you want to let MSTS set the times for you, press "Recalculate this" and a series of arrival and departure times appear.

So far so good....... you think.

When you try out the activity, you find that the times are just not accurate or realistic.

How can you change the times to reflect a more accurate timetable? It can be done in MSTS' Activity Editor quite easily..... but not intuitively (but you know that about MSTS by now anyway).

You can do this in two ways, either by referring to the prototypical timetable (public or employee) or by running a train over the route and measuring the running times between stations.

For this tutorial, I'm using arrival/departure times based on figures that Gary O'Connor came up with after running a consist on the Australian Central West route (v1.6):

	Town		Arrival	Departure
	
	Cullya		10:12	10:13
	Mullion Creek	10:16	10:17
	Kerrs Creek	10:31	10:32
	Warnecliff	10:43	10:44
	Euchareena	10:48	10:49
	Stuart Town	11:05	11:06
	Mumbil		11:12	11:13
	Dripstone	11:20	11:21
	Wellington	11:28	11:29
	Maryvale	11:33	11:34
	Guerie		11:45	11:46
	Wongarbon	11:52	11:53
	Eulomogo	11:59	12:00
	Dubbo		12:10

Open the activity in Activity Editor (AE). On the "Player" screen, click on "Edit Timetable" (see arrow #1 below). A timetable (initially with all starting times the same) will pop up.

If you click on "Recalculate This" (arrow 3 below), you get a series of times selected by the AE:

Don't!!!

If you try to run a train based on these times you may find that the operation is not very realistic.

 

Altering The Arrival And Departure Times

This is where the fun starts! You will be able to edit the arrival and departure times. Double-click on the "Arrive" field for the first station (Orange at 10:3:53 in this example); a pop-up box appears thus:

Type in the Departure time - yes, I said Departure Time - thus....

... and click "ok".

The timetable now shows both "Arrive" AND "Depart" times as 10:07:00, thus:

Double-click on the "Arrive" field again: you can make a second entry. Enter the arrival time (10:06:00 in this example) and click "ok". If it is earlier than the "depart" time you just edited, MSTS is programmed wisely enough to only update the arrivals column. You have now successfully edited the "Arrive" and "depart" times.

Work your way down the timetable, inserting departure, then arrival times for each station in the manner described above until you have altered all the times. When you have finished, the window should look like this:

Do NOT touch the "Relcalculate This" button. Close the window and then Save the activity.

Start MSTS, select the route, then the activity. When the activity starts, click on the "Timetable" button and you will see your edited times in the window:

In the sim, press F10 to see the timetable as you've edited it.

 

Editing the Timetable to Input An Earlier Departure Time

The problem with the technique described above is that you can only input a departure time later than the one already present in the timetable. The AE will not permit you to enter a departure time earlier than the one already present.

You can enter an earlier departure time by manually editing the .ACT file (see below), but Laurie Dickerson has described another method to be able to enter the departure times of your choice.

Sheesh, Do You Mean I Have To Open AE Just To Change Times?

No, actually you don't. You can edit the .ACT directly in a unicode-aware editor such as ConTEXT. MSTS sets the arrival and departure times in seconds past midnight, thus,

So it's a simple matter to insert your own arrival and departure times in the appropriate positions in the ACT file.

To make this process even easier, Gary O'Connor has written a tiny EXE file that quickly converts time of day to seconds or vice versa:

For example, using the activity in this tutorial, you might want to change the departure time at Cullya.

Type 10:13 into MSTS_TimeCalc and it instantly returns 36780, enabling you to find that time in the .ACT file (at line 33: the stations are not named so this is a quick way to find the time you want to change).

Say you want to change it to 10:14: simply enter 10:14 into the MSTS_TimeCalc: it returns 36840. Replace 36780 with 36840 in the ACT file, save and retry the activity.

Download Gary's MSTS_TimeCalc program here: MSTS_TimeCalc.zip - only 8.28 KB (8,480 bytes). Unzip it anywhere. Instructions are in the Comments section of the ZIP file (but it's really simple to use).

Hope this helps.