Trainz Simulator 2009-Slow AI

cookiebinks

New member
Hey,

I just finished a new route on Trainz and I am trying to program an AI train to pass by the player's train on a section of double track that has a 70 mph speed limit. At the end of the section of track is a junction that shortens to one lane of track, and a little further down the track is a 20 mph speed sign. The junction by default is set so trains coming into the double section will enter on the right side of the track (USA). There are two signals on the stretch of track that the AI train is passing on and since the switch is set for the opposite side of the AI train, the signal at the junction is red, and the one before it, yellow, so the AI train proceeds at half speed. The only problem is that when the AI train switches the junction and the signal turns green, it still only proceeds at half speed! :( Does anyone know why it is doing this and how I could fix it? It's driving me crazy!
 
I don't have TS2009, but if it's anything like TS2010 you need a long clear path for the AI to hit track speed. The AI engineers in TS2010 are cautious, if they're on a 70mph section and see a red signal a mile ahead, they will slow down in anticipation. Likewise they show common sense about speed restrictions, slowing down to 35 or less if there's a 20mph restriction ahead, and will be doing 20 when they pass the sign. Going the other way they are in a 20mph zone and pass a 70mph sign, they won't speed up until the last car of the train passes the sign, which is also realistic.

Biggest stumbling block I've seen are switches - even if all of them are set for the right route, an AI train sees a bunch of switch points between him and the next signal he gets cautious and wants to slow down. Clear track with no switches, 70mph sign, a green interval signal every half a mile for the next five miles, then they'll hit 70.
 
With regard to Speed restrictions, ccertainly in 2010 there is problem. The AI is in, say a 20mph, proceeds into a 70mph and the next one is a 30 mph quite a way down the line the AI will only speed up to 30mph. I started a post on the subject and after testing concluded it was a programming error. With signals the AI should. in theory, respond to the signals as follows. Next signal green either line speed or max speed of the train (in Trainz the locomotive). Next signal yellow, half line speed. The AI will usually slow down to half speed before it passes the yellow signal which may be on the cautious side (no pun intended) but is acceptable in the real, as well as the Trainz world. Anything other than that is not acceptable. So slowing down when the next signal is green is certainly incorrect. Maybe a little reprogamming is called for?. Of course there could be another reason. See my earlier comments on speed restrictions. You can get round the signal issue by adding more signals but that in itself can cause more problems. Firstly by giving your layout an unrealistic feeling and 2ndly when you are driving a train yourself the signals are not placed at the correct braking distances which increases te liklihood of a SPAD (or far worse!) This may or may not help you to devise a work round
 
Back
Top