Let the A.I. Train Choose where to go?

davesnow

Crabby Old Geezer
Is there a rule whereby you can instruct an A.I. train to choose between several routes? I have a refueling area that has eight refuel points and I'd like to be able to let an A.I. Train choose which refuel point to stop at. Invaribly when I instruct my A.I. trains to go to a refuel point, there will be two trains trying to go to the same marker.

Thanks folks.

Dave
 
<kuid2:61392:7004:23> DriveToTrackmarkList v2 (SP2 and later)
<kuid2:61392:2001:6> ScheduleAtTrackMark

Place a TM on each approach track and name it something like "Refuel Point (1)" and increase the number by 1 for each of the others. Refuel Point becomes the destination and the number is the list.
Use the Schedule at TM rule to add commands to load at the fuel point on that track.
 
D. Snow,

Use the token system:
<kuid:160293:101002> - Label #
<kuid2:160293:101003:2> - Jump to Label #
<kuid2:160293:101012:1> - Skip to Label # if TM <condition> is met
refueling area that has eight refuel points and I'd like to be able to let an A.I. Train choose …

I would divide the section into 2 halves as these will be assigned as TM variables when toggled from a switch.

1. Set up a program track. Then place down an Invisible Train or a Signalman on this “track”. You will use this layout to set up and to Route paths. I base this off using in the form of an SPDT Switch or a tree diagram for automatic selection of sidings in a yard “controlled” by the “signaller”. No real need for ITs since they can B stubborn for u and the ai.

2. Add the TM’s onto this programming track. Since there are 2 halves of 8 or 2 portions of 4 sidings, you would place down 2 “programming” TM’s. Call this TM name as “Sect 1” and “Sect 2”.
• Sect 1 controls yard entry for RP 1, 2, 3 & 4.
• Sect 2 controls yard entry for RP 5, 6, 7 & 8.
They will act as “conductors” generated by the “signaller”, depending which section the signaller is controlling from. In this case, you just only need 2 poles that are “changeovers” or simply “ON-ON” switches. The ON-OFF-ON switch is used if ALL sections are taken up which is recognised by the switch set to the OFF position by the signaller.

3. Set up another programming track/layout. This layout controls which sidings the train drives into when selected from the signaller.
Again, the same procedure with the previous, lay down these TM’s and add another signaller onto this.
4. Repeat step 3 for the other portion.
5. At the Schedule Library rule create 2 entries (Section 1 & 2).

• Main Schedule
Skip to Label 1 if Sect 1 is occupied by an Invisible Train (Signaller)
CP commands - Append/Insert - Section 1
Label 1
Skip to Label 1 if Sect 2 is occupied by an Invisible Train (Signaller)
CP commands - Append/Insert - Section 2
Label 1
CP commands - Append/Insert - Main Schedule

• Section 1
Skip to Label 1 if RP 1 is occupied by an Invisible Train (Signaller).
Drive to Refuel Point 1
Jump to Label 2
Label 1
Skip to Label 1 if RP 2 is occupied by an Invisible Train (Signaller).
Drive to Refuel Point 2
Jump to Label 2
Label 1
Skip to Label 1 if RP 3 is occupied by an Invisible Train (Signaller).
Drive to Refuel Point 3
Jump to Label 2
Label 1
Skip to Label 1 if RP 4 is occupied by an Invisible Train (Signaller).
Drive to Refuel Point 4
Jump to Label 2
Label 1
CP commands - Append/Insert - Section 1
Label 2
Wait for #
Jump to Label 2

• Section 2
Skip to Label 1 if RP 5 is occupied by an Invisible Train (Signaller).
Drive to Refuel Point 5
Label 1
Skip to Label 1 if RP 6 is occupied by an Invisible Train (Signaller).
Drive to Refuel Point 6
Jump to Label 2
Label 1
Skip to Label 1 if RP 7 is occupied by an Invisible Train (Signaller).
Drive to Refuel Point 7
Jump to Label 2
Label 1
Skip to Label 1 if RP 8 is occupied by an Invisible Train (Signaller).
Drive to Refuel Point 8
Jump to Label 2
Label 1
CP commands - Append/Insert - Section 2
Label 2
Resume Schedule and onwards

Notes:
• Signaller (Sect 1 & 2) will lock out the section
• if it is switched to (Section 1), indicating that section is locked out and cannot be accessed
or
• if it is switched to (section 2), same as above
or
• if the entirety of all sections are taken up (OFF)

• Signallers controlling in:
• Sect 1 - Will lock paths: RP 1, 2, 3 & 4, if all tracks are taken
and
• Sect 2 - will lock paths: RP 5, 6, 7 & 8, if all tracks are taken

Hope this helps, good luck
regards, darrren
 
Last edited:
I use this in my shipyard, <kuid2:61392:1050:14> DriveToTrackmarkList (SP2 and later). It tells Ai to go to the first open track in the list. It is very easy to set up.
 
Back
Top