|
||||||||
|
|
|
#1
|
||||
|
||||
|
A forum member asked me the other day to explain how to program AI drivers to operate turntables, so I thought I would post a short illustrated tutorial:
First...download and install atilabarut's InputTable rule <kuid:131986:1012> and MoveTurntable script <kuid:131986:180156:1>. This is for TRS2006. The InputTable rule is the same as the WorkTable rule for TRS2004, however the MoveTurntable command is TRS2006 specific (see post below). Then... Willie is in the Dante yard on the Clinch when he receives orders to couple to an empty coal hopper consist and take it north to Moss Mine to be loaded. His problem is that his K5b steamer is facing south and low on coal and water. There are other ways to turn around...but let's have him use the turntable. In Surveyor, place trackmarks at each of the ends of the turntable as shown below. I've named mine Dante Turntable 1 and Dante Turntable 2. ![]() Then add the InputTable rule to the session and edit it. ![]() ![]() I've entered the line as shown above. It shows the type of input, the name of the turntable, and the number of stops the turntable has...seperated by commas and no spaces. To find the number of stops on your turntable find the turntable kuid in CMP, select it, and click on Edit in Explorer. Open the config.txt file and look for a line that looks something like this: angle 0,10,20,30,35,40,50,60,180,190,200,210,215,220,230 ,240 This lists all of the angles at which the turntable can stop. This one has 16 stops. They will be numbered from 0 (0 degrees, default position) to 15 (240 degrees in this case) in the MoveTurntable driver command. Notice that stop 8 corresponds to a 180 degree rotation. Working The Turntable Part II to follow... Zorronov
__________________
"I can eat 50 eggs." Last edited by Zorronov : November 21st, 2006 at 04:40 PM. |
|
#2
|
||||
|
||||
|
Now let's give Willy some driver commands.
First...Drive to Dante Turntable 1. ![]() Then...Wait For 30 Seconds. I find this pause prevents error messages from appearing and makes things run smoothly. I also think it is a reasonable thing to do. ![]() Next...after enabling the MoveTurntable driver command...MoveTurntable to stop 8. ![]() Then...have Willie drive to the refueling station and load. ![]() ![]() Working The Turntable Part III to follow... Zorronov
__________________
"I can eat 50 eggs." Last edited by Zorronov : November 21st, 2006 at 04:37 PM. |
|
#3
|
||||
|
||||
|
Now...let's tell Willie to couple to those empties and drive to Moss Mine.
![]() ![]() Let's do a QuickDrive and see how Willie does... Heading For Dante Turntable ![]() ![]() Arriving At The Turntable ![]() Working The Turntable Part IV to follow... Zorronov
__________________
"I can eat 50 eggs." Last edited by Zorronov : November 16th, 2006 at 06:55 PM. |
|
#4
|
||||
|
||||
|
Working The Turntable
![]() ![]() Going For Coal and Water ![]() ![]() On To Moss Mine ![]() Good Job Willie! Happy Railz! Zorronov
__________________
"I can eat 50 eggs." |
|
#5
|
||||
|
||||
|
Zorronov, I already have the WorkTable for TRS2004, but would you, or anyone else know how to use to turn a turntable, please?
|
|
#6
|
||||
|
||||
|
Quote:
Zorronov
__________________
"I can eat 50 eggs." |
|
#7
|
||||
|
||||
|
Red_rattler is right I'm afraid it asked the same question Before the forum died . it is one of those things that auran goofed on in 2004 in utc you could move the tables by clicking a button in the driver panel but they took it out in trs2004 an made it harder to work the smaller tables.
hope this answers your question?
__________________
Kester Westcott L&SWR LB&SCR, Meon Valley nut |
|
#8
|
||||
|
||||
|
Thanks for tutorial. Most helpful and appreciated.
Any more up your sleeve? ![]() |
|
#9
|
||||
|
||||
|
If you have trouble getting the loco to stop in the middle of the turntable (I did) try experimenting with the placement of your trackmarks. First, its important to have the trackmarks placed on the adjoining tracks with the blunt ends facing the turntable track. The loco will stop when it hits the blunt end of the trackmark. This will make the full length of the turntable available for the AI driver to stop the loco and gives some leeway for inertia. If the loco is hanging off either side, the MoveTurntable command will not work. Nudge the trackmark back and forth until you can consistently get the loco to stop in the middle of the turntable. In the above example, I placed Dante Turntable 1 for driving onto the turntable from the south. Dante Turntable 2 is for locos entering the turntable from the default parking position in the roundhouse. Additional trackmarks can be placed as needed.
Zorronov
__________________
"I can eat 50 eggs." |
|
#10
|
||||
|
||||
|
There is alot of good info in this here thread
|
|
#11
|
||||
|
||||
|
I've edited the first section of this tutorial to include some corrections and a discussion of how to find the number of turntable stops and where they are located for any turntable. The stops are places where tracks can be attached. Generally, they won't all have tracks connected to them. I hope this clarifies things a bit.
Happy Railz! Zorronov
__________________
"I can eat 50 eggs." |
|
#12
|
||||
|
||||
|
One more thing I should add. If you plan on commanding AI drivers to perform more complicated actions, you'll probably need a bigger turntable. With a larger turntable and roundhouse (for example, a 120 foot turntable) you can get the drivers to do things like park in the roundhouse, wait for X time, then move the turntable, drive onto it, move it again, and leave on any available track you choose. It appears that the built-in turntables in Trainz don't have enough room for more complicated automated procedures than simply turning around. I'll show some examples of tricks you can do with the larger turntables in a future post.
Happy Railz! Zorronov P.S. You may be able to automate more complicated maneuvers on the small turntables with switchers and smaller locos. I'll give it a try.
__________________
"I can eat 50 eggs." Last edited by Zorronov : November 23rd, 2006 at 12:12 AM. Reason: addendum |
|
#13
|
||||
|
||||
|
Thank You for posting this tutorial zoronov! as we lost all the old tutorials in the forum crash, we need all the ones we can get. Will be sure to bookmark this.
thanks, john
__________________
![]() |
|
#14
|
||||
|
||||
|
im still having trouble. when it gets to the trackmark its shy of the turntable itself. after moving it on the turntable it waits then i tell it to move it to position 8 and it does nothing!!!
|
|
#15
|
||||
|
||||
|
Quote:
Z
__________________
"I can eat 50 eggs." Last edited by Zorronov : November 24th, 2006 at 11:09 AM. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|