AI train speed limit setting

Nozomi329

New member
Hello, I'm wondering about how to set different speed limit for different trains:

I have a track speed limit of 200km/h, a locomotive speed limit of 160km/h, and a coach car speed limit of 120km/h.
In reality this train will be running at no more than 120km/h, and if I'm driving it I'm responsible for controlling the speed, but I couldn't figure out how to do this in Trainz when AI is taking control of the train.

Currently my solution is to create a separate enginespec that limits the locomotive speed to 120km/h and use it when hauling the 120km/h train, and switch to other speed if needed when hauling other trains.

I've tried to create an enginespec for the coach car and apply it in game, but it didn't work. I don't know if it just don't work that way or I didn't set the enginespec correctly.

Besides, is it possible to set different track speed limit for a single speed sign? I know in the US passenger trains and freight trains can have different speed limits on the same track, but did anyone implement this into Trainz?

Thank you.
 
There is a much simpler solution in the form of a driver speed limit command.

See http://online.ts2009.com/mediaWiki/index.php/Driver_Commands_List#Set_Max_Speed_To_.28km.2Fh.29

Simply add the command, set to the speed in km/h that you want, at the start of the AI command list. The AI will still obey lower speed limit track signs but will not exceed the speed set in the command until it is cancelled or altered.

There is a similar command for mph at http://online.ts2009.com/mediaWiki/index.php/Driver_Commands_List#Set_Max_Speed_To

There was a variable speed sign that allowed two different speeds to be shown - one for expresses and the other for freight - but I am so far unable to locate it on the DLS
 
Last edited:
See also the MaxPermittedSpeed rule (built-in). Adding this rule to your session will limit the speed for any consists which have been configured with a maximum speed.
 
There is a line you can add to a wagon that limits that wagon to a max speed. When a train has one of these wagon it will run at the lowest speed in the consist. So you have wagons with speeds set at 50, 20, 40 and 60 the train will run max 20. remove the 20 ones and it will increase to 40.
 
Back
Top