PDA

View Full Version : Sticky Vertices



chris2001trainz2010
July 23rd, 2014, 01:50 PM
Hello, all. Chris here.

I would like to know what part of the config file makes vertices "stick" together, such as when connecting two pieces of Fixed Track. If anyone knows what i mean, i could use some help with this.

Sincerely,

deneban
July 23rd, 2014, 02:36 PM
The "attached track" container

e.g,:

attached-track
{
track0
{
track <kuid:-1:15>

vertices
{
0 "a.track0a"
1 "a.track0c"
2 "a.track0e"
}
}
}

chris2001trainz2010
July 23rd, 2014, 02:45 PM
thanks! (10)

EDIT: I REALLY need to start testing this stuff out first. That method gives me an error saying that the third vertex ("a.track0e") was not found. I guess i should also be more specific: I am trying to make pencil42's Watertank (<kuid2:124060:28046:3>) stick to a piece of fixed track by olegkhim on my DL&W layout. Did i miss something?

BuilderBob
July 23rd, 2014, 06:42 PM
thanks! (10)

EDIT: I REALLY need to start testing this stuff out first. That method gives me an error saying that the third vertex ("a.track0e") was not found. I guess i should also be more specific: I am trying to make pencil42's Watertank (<kuid2:124060:28046:3>) stick to a piece of fixed track by olegkhim on my DL&W layout. Did i miss something?

The vertices referenced in the vertices container are attachment points in the mesh. If the attachment points don't exist in the mesh then you can add them using Attachment Maker: http://online.ts2009.com/mediaWiki/index.php/Trainz_Tools_by_PEV

deneban
July 23rd, 2014, 07:08 PM
@Chris - Please look at the examples and instructions of attached track/ fixed track:

http://online.ts2009.com/mediaWiki/index.php/%22attached-track%22_Container

http://online.ts2009.com/mediaWiki/index.php/CCG/Kind:_FixedTrack