Forcing AI drivers to wait at signal?

Apogee10

New member
Has anyone developed a clever way to force AI drivers to wait at a signal while another train occupies the track ahead. I'm tired of watching the AI driver back all over the route trying to find path to his next destination.

Earl
 
Define the route with a series of 'Drive via TM' (or 'Navigate via TM') commands. Make sure there is no convenient route between the defined trackmarks and the AI will obediently wait for the green light..

Andy :)
 
Thanks Andy and Carl

I have successfully used both of your suggestions. Would it be possible to develop a Rule that allows us to set up options. For example, if a driver approaches a signaled junction that signals that the track ahead is occupied then the driver can select an option from the Rule: (1) Wait until the track ahead is signaled clear, (2) Select Route B, (3) Select Route C, etc. The priority of the options would be their order in the Rule. Based on the many rules that are available it seems simple to write such a rule. If I knew how to code I would try it.

Earl

This is crude but the logic might go something like this. Once the train enters the influence(radius) of a signal then

If Green then operate as normal
If Yellow then operate as normal
If Red then (1) Wait until track clears for x minutes (If track doesn't clear)
(2) Select Route B (If Route B is not clear)
(3) Select Route C (Route C could be a siding where the train waits for a trigger or event)
 
Last edited:
Yes, they are different, but 'Navigate' is only available 09 and up and there is no indication in the OP which version is being used. 06 and down 'Drive to' has very much the same functionality as 'Navigate to' has in later versions.

Andy
 
This is what it I meant

Originally posted by Accipter777


I make HEAVY use of "Control Trackmark" and "Free Trackmark" to eliminate cornfield meets.

<West East>
___________________________<TM2>_______(sig)___<TM 3___A___
__B___TM1>______(sig)____/ ............. \____________________

Train "A" traveling East to west commands would be:

Drive Via Trackmark "TM3"
Control Trackmark "TM2"
Drive Via Trackmark "TM2"
Release Trackamrk "TM2"
Drive to (or Via) . . . Wherever . . .

Train "B" Traveling West to east commands would be:

Drive Via Trackmark "TM1"
Control Trackmark "TM2"
Drive Via Trackmark "TM2"
Release Trackmark "TM2"
Drive to (or Via) . . . Wherever . . .

that way no train may pass "TM2" unless that trackmark is NOT controlled OR
a train is not occupying the track between the junctions that the trackmark is in. I use this system and have NEVER has a cornfield meet.
__________________
This Message was posted on 100% recycled material.
 
Last edited:
I make HEAVY use of "Control Trackmark" and "Free Trackmark" to eliminate cornfield meets.

<West East>
___________________________<TM2>_______(sig)___<TM 3___A___
__B___TM1>______(sig)____/ ............. \____________________

Train "A" traveling East to west commands would be:

Drive Via Trackmark "TM3"
Control Trackmark "TM2"
Drive Via Trackmark "TM2"
Release Trackamrk "TM2"
Drive to (or Via) . . . Wherever . . .

Train "B" Traveling West to east commands would be:

Drive Via Trackmark "TM1"
Control Trackmark "TM2"
Drive Via Trackmark "TM2"
Release Trackmark "TM2"
Drive to (or Via) . . . Wherever . . .

that way no train may pass "TM2" unless that trackmark is NOT controlled OR
a train is not occupying the track between the junctions that the trackmark is in. I use this system and have NEVER has a cornfield meet.
__________________
This Message was posted on 100% recycled material.


I posted this messege earlier. how is it that this username is in place of mine?
 
Ok I am confused. Are you saying that fran1 and Accipiter777 are one in the same? Or is Accipiter777 postings showing up with fran1 as the sender?
 
What i'm saying is, i'm confused . . . I posted that exact message last night. i'm wondering how that username got on my post, and why theres a link to my profile in his post earlier.

" Or is Accipiter777 postings showing up with fran1 as the sender? "


exactly!

fran1 edited that post to show i originaly posted that. thank you fran1, i'm just confused as to where that original post went. (do i hear the theme to the twilight zone)

Senior moment. I posted that in another thread, fran1 was quoting me only it did not work, se he cut n pasted. i never posted it in this one!
 
Last edited:
Acipiter777, I just noticed you are from Reading. I use to have some relatives from there. They either moved or passed away. I have not been there for some years. My grandfather lived in Shamokin and worked on the reading in the repair yard somewhere around Shamokin. Carl
 
yeah...lol, i saw your down the road a bit from me. hey, stop sending your snow up here!

btw, i use ControlTrackAtTrackMark,<kuid2:131986:1023:1>
and FreeTrackAtTrackMark,<kuid2:131986:1024:1>
heavily on my routes. EVERY track with two way traffic must gain control in this manor. I of course try NOT to have two way traffic, but sometimes....
 
Last edited:
TRS2006 Using AI Trainz
Is there a STOP signal that simply stops any train the encounters the stop sign ? I do not want to enable many hard to understand rules. I just want to stop all my individual trains when they come up to a sign or signal on each yard track, several hundered feet from a yard throat exit.
 
Last edited:
Back
Top