How do you create AI trains

Yevgeniy

New member
How do you set up AI trains to run automatically across a route using portals? Kind of like the trains in Harbor Master? I have a route and I want to create AI trains to run on my route. Which portals are easy to work with and how do I use them? I want to make a few trains and just have them run from portal to portal on a loop. Thank you in advance!
 
Hi Yevgeniy,

Portals are scenery objects just like industries and stations. You place them in the Route layer, while editing the route, and you configure them in the Session, while editing the Route Layer. (It sounds confusing, I know.) There are many types of portals, ranging from one called Portal Basic, which looks like a piece of fixed track, to another one which looks like a tunnel. When placing a portal, you do not want to have the asset hang off the edge otherwise there will be derailing trains. You also want to have a long track lead to the portals, to allow for the longest trains you will run from it.

Once the Portal is placed in Surveyor, just like placing a station, you can name it. On my Gloucester Terminal Railway, which I modified from George Fisher's original, I called my two incoming portals From Boston and From Rockport. The trains then traverse the route, and exit out of the To Boston or To Rockport portals. Simple setup.

Once your portals are placed, and you are ready to run trains, edit your session.

In the session, go to the layers tab and select the Route layer.
Open up the Scenery Items tab, click on the ?, and then get the properties of the portal.
Now you can add your trains, either individual wagons and locomotives, or complete consists.
When you've added a complete train, add a driver and assign his route. This part is the same as a normal driver would have.
You can also specify a time interval between the first train and subsequent ones based on real time.

When your portal(s) are configured, you save everything. You'll be prompted to overwrite the route as well as the session. Do so as prompted.
In driver, depending upon your time interval, you'll see your trains running on the route.

I hope this helps. I was writing this from memory and I may have skipped a step.

John
 
Portal basic, no frills but it works. put some track behind the portals plus a signal on the off tracks.
Lay trackmarks along the route to guide the Ai's from portal to portal.
Use the schedule library to create a list of commands for the trains to follow. ie via TM1e, via TM2e, or TM1w, TM2w. The last command being to portal west/east off. The first being instant load 09 from jointed rail.
Edit the portals to consume or produce consists. Consume any train. Produce at say 30 min intervals.
Now make a consist of your choice, locos first then wagons. Select a driver and they get the command copy commands from schedule library-to west or east portal.
As many consist as you want from each producing portal.
Do all editing in the route layer for this.
Make sure the first signal or junction is further away from the portal than your longest consist.
 
Last edited:
From my experience the best solution is Quick Portal manager with schedule library. You can use any portal you wish, portal stay untouched, all setting you make in portal manager.
 
Last edited:
I second celje's advice. The Portal Managers are installed in the Edit Session winodw as a Rule. I actually prefer the Quick Portal Manager V2. And I would also recommend using CMTMPortal4. This is a rerail portal that can be configured to emit a derailed consist from anywhere on your route. This portal will also interface with the CMTM car destination system which you may want to impliment in the future as your route grows and you discover the fun in creating prototypical operations for your route.
 
Back
Top