Routing AI Trains

jeff1959

Active member
When building a session, I want some AI trains running through freights. I am using the Central Portal Control to set things up. There's 16 trackmarks that each AI train needs to navigate via. Is there a way to copy and paste the directions from one train to another? It's rather tedious to set up 3 different trains for each of two portals. There HAS to be a shortcut to do this.

Thanks.
 
Hi jeff1959,

I have not checked to see if the schedules work in the latest build but in earlier versions I used to make up a schedule instead of programing the driver directly. There can be quite a few schedules stored for each route and they can be named so you know what each one does. Then when starting a session you tell your driver to 'drive schedule' (name) and off he goes or you can use the 'copy commands from' schedule (name).

Cheers,
Bill69
 
Phil,
I have the passing sidings, signals, and trackmarks all set up like you have suggested. I am just trying to route multiple trains in a session, without having to click "navigate via trackmark>SB>Tm for all the trackmarks for each train. Seeing that I can save consists, to create my trains, I should be able to save driver command.
 
When building a session, I want some AI trains running through freights. I am using the Central Portal Control to set things up. There's 16 trackmarks that each AI train needs to navigate via. Is there a way to copy and paste the directions from one train to another? It's rather tedious to set up 3 different trains for each of two portals. There HAS to be a shortcut to do this.

Thanks.

Hi jeff1959,

I have not checked to see if the schedules work in the latest build but in earlier versions I used to make up a schedule instead of programing the driver directly. There can be quite a few schedules stored for each route and they can be named so you know what each one does. Then when starting a session you tell your driver to 'drive schedule' (name) and off he goes or you can use the 'copy commands from' schedule (name).

Cheers,
Bill69

On the DLS, there's a rule called schedule library and a driver command called "copy commands from". Search for Username "Brummfondel", under TRS2004 on the DLS

They work by the user using the schedule library to outline a large number of defined series of commands that are saved within the schedule library.

For example, you have a route that runs North - South between to (or more) portals. You can setup a schedule that has the train running from one portal in the South to a portal in the North. Instead though of defining this path for each and every train that's emitted for the portal, you define a schedule that's saved within the Schedule library and use the copy commands from driver command menu to apply the schedule to all appropriate drivers.

To setup:

1. Add the schedule library to the list of rules for your session.

2. Edit the schedule library. You may find its easier to keep track of different schedules by naming them appropriately and using the group ability to sort them into groups based on their directions. i.e. Northbound, Southbound, Eastbound, Westbound, etc.

3. Setup your desired schedule for the path that the trains will take in the schedule library.

4. In the Central Portal control rule, where you can assign commands to the drivers of consists, use the driver command "copy commands from" to insert from library the appropriate schedule for the appropriate train.

5. sit back and watch.

Let us know in this thread how you get on.
 
Jeff --

Track mark naming:

Name in sequences x(01) through to x(99) where x = alphanumeric. The brackets are important. In your case, perhaps use a(01) through a(16).

From the DLS, install and add the rule:

" "DriveToTrackmarkList", kuid kuid2:61392:1050:3"

Then see this video at 2:40:

 
I'm confused. My AI train changed a switch to take the main, and missed the trackmark on the siding. It then backed up to clear the switch. Then went to the siding. It did the same at the next siding/ trackmark. I checked the order of the tm's. What the heck is going on?
 
Hi Jeff

Try adding a Priority Marker to the siding and setting it to priority 1 or 3 (track and consists are priority 2 by default). Download the driver command "Priorityz" from the DLS and add this as the first command in your driver schedule for the freight trains. Set "Priorityz" to either 1 or 3 to match the priority that you have set on your priority marker. The train will then always try to use track with the same priority whenever possible.

If you still have problems you can always use one of the Path Rules which allow you to set the paths that you want the train to take. It can take time to set the paths up in either of the rules but it takes the decision making away from the AI which, in my opinion, is always a good thing.

Regards

Brian
 
thanks for all the good suggestions. I will give them a try and report back. however I am considering double tracking the main and that does change a lot of things.
 
I wonder if the direction of the trackmark makes a difference. Say you want a North Bound train to enter a signing, the trackmark should face the way the train is traveling.

Rob
 
Back
Top