"Sen City Road Switcher" changing speed

Hi guys, I hope you are having a good weekend. What do I need to change in the config file to change the speed from 30mph to 60mph?

Regards

Harry



script "RoadSwitch"
class "RoadSwitch"
region "SEN CITY"
light 1
type "Street Kit"
category-region-0 "AU"
category-region-1 "US"
category-era-0 "1950s"
category-era-1 "1960s"
category-era-2 "1970s"
category-era-3 "1980s"
category-era-4 "1990s"
category-era-5 "2000s"
category-class "BT"
trainz-build 2.4
height-range -0.4,100
snapmode 0
dighole 0,0
surveyor-only 1


attached-track
{
track0
{
track <kuid:52519:37998>

vertices
{
0 "a.itrack0a"
1 "a.itrack0b"
2 "a.road0a"
}
}

track1
{
track <kuid:52519:37998>

vertices
{
0 "a.itrack0a"
1 "a.road0b"
}
}

track2
{
track <kuid:52519:37998>

vertices
{
0 "a.otrack0a"
1 "a.otrack0b"
}
}
}


obsolete-table
{
}
keyframes 0,1
looping 0
frame-rate 30


mesh-table
{
default
{
mesh "base/base.im"
auto-create 1
}

turntable
{
mesh "platform/platform.im"
anim "platform/anim.kin"
}
}
description "This is a Road Point or switcher, (turnout) for ordinary traffic roads for TRS 2006. So traffic can now turn right as well as left! Updated for TS 2010!


IT IS MANUAL OPERATION ONLY IN TRS 2004.


It can be placed in a TRS 2004 map to allow for future upgrade of that map but TRS 2006 or above is required for correct operation. Then you may either use my Traffic light assets to control the switching, (eg KUID 766565:500002), or just let it switch on the in-built Timer.


See the Properties Dialogue Box for instructions."
category-keyword "Sen City Street Kit Road Switcher"
asset-filename "Sen City Road Switcher"


thumbnails
{
0
{
image "screen.jpg"
width 240
height 180
}
}
kind "turntable"
username "HC Sen City Road Switcher"
author "Boat"
organisation
contact-email "boat@boatztrainz.co.uk"
contact-website "www.boatztrainz.co.uk"
license "May be used for personal use only. May be modified and re-issued on the Auran DLS as FreeWare but please credit the author.
May not be sold for financial gain in any way without the author's permission.
Item is used at final user's own risk and on the understanding that the author will not be held responsible for any damage to software or hardware, howsoever caused.
"


kuid-table
{
0 <kuid:52519:37998>
}
kuid <kuid:808067:101213>
 
Good morning Harry.

All you need to do is add the following to the config file:

attached-track
{
track0
{
track <kuid:52519:37998>
useadjoiningtracktype 1

vertices
{
0 "a.itrack0a"
1 "a.itrack0b"
2 "a.road0a"
}
}

track1
{
track <kuid:52519:37998>
useadjoiningtracktype 1

vertices
{
0 "a.itrack0a"
1 "a.road0b"
}
}

track2
{
track <kuid:52519:37998>
useadjoiningtracktype 1

vertices
{
0 "a.otrack0a"
1 "a.otrack0b"
}
}
}

I just tested this on my clone of Sen City Road Switcher and it works like I want it to. Not only does it match the road speed, but it also picks up the road type and mesh image.
 
Hi Chili46 and thank you for our support.

It works really well so thank you for your work.

After doing some tests I found that if you feed 30mph through it first, then change the feed to say 60mph it still runs at 30mph. And if you feed 60mph into it first, then it will stay at 60mph when you feed 30mph into it.

Regards

Harry
 
Back
Top