Trainz Discussion Forums
Register Planet Auran Profile Code of Conduct Serial Number Website Helpdesk Trainz Download Station

Go Back   Trainz Discussion Forums > Mainline - Trainz Discussion > Surveyors, Operators & Engineers
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 16th, 2006, 06:37 PM
Zorronov's Avatar
Zorronov Zorronov is offline
Rail Bum
 
Join Date: Nov 2006
Location: United States of America, California
Posts: 705
Default Working The Turntable Tutorial

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.
Reply With Quote
  #2  
Old November 16th, 2006, 06:46 PM
Zorronov's Avatar
Zorronov Zorronov is offline
Rail Bum
 
Join Date: Nov 2006
Location: United States of America, California
Posts: 705
Default Working The Turntable Part II

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.
Reply With Quote
  #3  
Old November 16th, 2006, 06:53 PM
Zorronov's Avatar
Zorronov Zorronov is offline
Rail Bum
 
Join Date: Nov 2006
Location: United States of America, California
Posts: 705
Default Working The Turntable III

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.
Reply With Quote
  #4  
Old November 16th, 2006, 07:04 PM
Zorronov's Avatar
Zorronov Zorronov is offline
Rail Bum
 
Join Date: Nov 2006
Location: United States of America, California
Posts: 705
Default Working The Turntable Part IV

Working The Turntable





Going For Coal and Water





On To Moss Mine



Good Job Willie!

Happy Railz!
Zorronov
__________________
"I can eat 50 eggs."
Reply With Quote
  #5  
Old November 16th, 2006, 07:52 PM
Red_Rattler's Avatar
Red_Rattler Red_Rattler is offline
TRS2004, Join 09 May 2003
 
Join Date: Nov 2006
Posts: 967
Default

Zorronov, I already have the WorkTable for TRS2004, but would you, or anyone else know how to use to turn a turntable, please?
Reply With Quote
  #6  
Old November 16th, 2006, 09:51 PM
Zorronov's Avatar
Zorronov Zorronov is offline
Rail Bum
 
Join Date: Nov 2006
Location: United States of America, California
Posts: 705
Default

Quote:
Originally Posted by Red_Rattler View Post
Zorronov, I already have the WorkTable for TRS2004, but would you, or anyone else know how to use to turn a turntable, please?
I'm sorry Red_Rattler but it seems that the MoveTurntable driver command only works in TRS2006. Maybe someone else knows how to do this in TRS2004.

Zorronov
__________________
"I can eat 50 eggs."
Reply With Quote
  #7  
Old November 20th, 2006, 02:55 AM
kester's Avatar
kester kester is offline
Trainz Veteran
 
Join Date: Nov 2006
Location: United Kingdom, Hampshire
Posts: 154
Default

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
Reply With Quote
  #8  
Old November 20th, 2006, 06:28 AM
ess1's Avatar
ess1 ess1 is offline
Trainz Veteran
 
Join Date: Nov 2006
Location: United Kingdom, Shropshire, Newport
Posts: 462
Default

Thanks for tutorial. Most helpful and appreciated.
Any more up your sleeve?
Reply With Quote
  #9  
Old November 21st, 2006, 12:34 AM
Zorronov's Avatar
Zorronov Zorronov is offline
Rail Bum
 
Join Date: Nov 2006
Location: United States of America, California
Posts: 705
Default Placement Of Trackmarks

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."
Reply With Quote
  #10  
Old November 21st, 2006, 12:32 PM
dwinn440's Avatar
dwinn440 dwinn440 is offline
Retired US Navy
 
Join Date: Nov 2006
Location: United States of America, North Carolina, Wilson
Posts: 14
Send a message via Yahoo to dwinn440
Smile Good Stuff

There is alot of good info in this here thread
Reply With Quote
  #11  
Old November 21st, 2006, 04:34 PM
Zorronov's Avatar
Zorronov Zorronov is offline
Rail Bum
 
Join Date: Nov 2006
Location: United States of America, California
Posts: 705
Default

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."
Reply With Quote
  #12  
Old November 22nd, 2006, 11:42 PM
Zorronov's Avatar
Zorronov Zorronov is offline
Rail Bum
 
Join Date: Nov 2006
Location: United States of America, California
Posts: 705
Default Turntable Size and Advanced Turntable Tricks

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
Reply With Quote
  #13  
Old November 23rd, 2006, 12:44 AM
trainzmainiac2006's Avatar
trainzmainiac2006 trainzmainiac2006 is offline
T.C.S. Chairman
 
Join Date: Nov 2006
Location: United States of America
Posts: 459
Send a message via Yahoo to trainzmainiac2006
Default

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
__________________


Reply With Quote
  #14  
Old November 24th, 2006, 10:42 AM
titaniclover's Avatar
titaniclover titaniclover is offline
TS2009 SP2; Build 40040
 
Join Date: Nov 2006
Location: United States of America, NY, Moravia
Posts: 2,698
Send a message via AIM to titaniclover Send a message via Yahoo to titaniclover Send a message via Skype™ to titaniclover
Default

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!!!
__________________


Click the signature, nothing is stopping you.
Reply With Quote
  #15  
Old November 24th, 2006, 11:05 AM
Zorronov's Avatar
Zorronov Zorronov is offline
Rail Bum
 
Join Date: Nov 2006
Location: United States of America, California
Posts: 705
Default

Quote:
Originally Posted by titaniclover View Post
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!!!
You need to move the trackmarks. I had to move mine off the turntable onto the adjacent tracks in order to get the loco and tender in the above pics completely on the turntable consistently. Also, try rotating the trackmarks. The loco's final proximity to the trackmark depends on inertia. A loco that is moving at 20 mph will end up closer to it than one moving at 2 mph, hence maneuver's originating in the roundhouse will need a larger turntable to be successful. If any part of the loco is hanging off, either the MoveTurntable command won't work at all, or if it does, you'll witness a rather interesting derailment. Hope this helps.

Z
__________________
"I can eat 50 eggs."

Last edited by Zorronov : November 24th, 2006 at 11:09 AM.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:45 PM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.