May be a dumb question

johnnetzlof

New member
But I can't figure out what to search for, so...

Whats it called when the object's track or road is replaced by whatever track or road you hook up to it?

Like an industry has a strip of track with it, which is that dark brown colored track, until you connect, say, Yard1t to it, and it converts. Whats that called?

I know there's a couple road to track crossings that do that for both track and road, and I was also wodnering if there's any road intersections that do? Thanks guys.
 
That is controlled in the config file of the object. If the keyword useadjoiningtracktype is equal to 1, which in this case means yes, then when any track is attached, the track of the object changes to that of the joining track. If the value was 0, i.e. no, then it would not change.

A good question. Now you too can use this feature
 
To continue with the dumb questions, can this tag be added to any asset that uses track and it work???
I'm asking because I've DLed a couple of assets that have track attached to them but the track doesn't change when attaching different track to it.
 
Last edited:
Yes. Roads can work the same way.

Also, if the useadjoiningtracktype line is not in the config file, Trainz defaults to a 1 (it will change to whatever is attached to it).

Ben
 
I checked a couple Config files of some crossings I wanted to us elast night (xing1 US boom) and It does not contain the useadjoiningtracktype line but it also does not change the track type when I use it?

How do I go about adding the line then?
 
In the config file, you would add this:

Code:
attached-track
{
	track_1
	{
		track <kuid:-10:137>
		useadjoiningtracktype 1
		vertices
		{
			0 "a.track0a"
			1 "a.track0b"
		}
	}
	track_2
	{
		track <kuid:-10:137>
		useadjoiningtracktype 1
		vertices
		{
			0 "a.track1a"
			1 "a.track1b"
			
		}
	}
}
Now if the object doesn't have any track, nothing will happen. The track kuid to start with could be anything, in this case -10:137 is invisible track. The attachment points have to exist in the object and be correctly aligned.
 
Mocrossings do not necessarily have to have an attached-track section in the config file. They must if there are more then 2 vertices per track. All of my movealble bridges are done as mocrossings. Some do not have an attached-track section and some do. Generally the more complex the item the more likely it is to have one.

Ben
 
Back
Top