Attachment points on scenery items

Discuss Scenery Creations.
Post Reply
User avatar
Marky7890
Site Admin
Posts: 1473
Joined: Sun Dec 12, 2010 1:57 pm
Trainz Version: TRS2019
Trainz Build: 90945
Author KUID: 179051
Location: Near Penryn, Cornwall
Contact:

Attachment points on scenery items

Post by Marky7890 »

Evening all,

I've ran into a problem with building my Royal Albert Bridge model. I have the main mesh as scenery item, which I would like the track and girder bridge (spline) to attach to. However I am not seeing any attachment points show up in game.


Here is my config file

Code: Select all



kuid                                    <kuid:179051:102319>
kind                                    "buildable"
light                                   1
category-class                          "BB"
category-region                         "UK"
trainz-build                            "3.5"
height-range                            -20,20

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

attached-track
{
  track0
  {
    track                               <kuid:149987:38000>
    useadjoiningtracktype               1
    
    vertices
    {
      0                                 "a.railtrack01"
      1                                 "a.railtrack02"
    }
  }
  
  girder0
  {
    track                               <kuid:149987:37000>
    useadjoiningtracktype               0
    
    vertices
    {
      0                                 "a.girder01"
      1                                 "a.girder02"
    }
  }
}
username                                "Royal Albert Bridge New"
description                             "Royal Albert Bridge"
author                                  "Marky7890"
organisation                            "British Trainz"
contact-email                           "mark@british-trainz.co.uk"
contact-website                         "http://british-trainz.co.uk"

thumbnails
{
  0
  {
    image                               "preview.jpg"
    width                               240
    height                              180
  }
}

kuid-table
{
  fma_invisible_spline                  <kuid:149987:37000>
  fma_invisible_track                   <kuid:149987:38000>
}


a.railtrack01 and a.railtrack02 are set at the deck level, a.girder01 and a.girder02 are set at ground level as both the bridge and girder are built at ground level.

Thanks,
Mark
pacerguy
Past 250!
Posts: 386
Joined: Mon May 27, 2013 6:17 pm
Trainz Version: TRS22
Trainz Build: 0
Location: Isle Of Man

Re: Attachment points on scenery items

Post by pacerguy »

try removing height-range -20,20
I made some road splines and changing that had results like that... minus made it a tunnel I think? and plus a bridge!
Image
User avatar
Marky7890
Site Admin
Posts: 1473
Joined: Sun Dec 12, 2010 1:57 pm
Trainz Version: TRS2019
Trainz Build: 90945
Author KUID: 179051
Location: Near Penryn, Cornwall
Contact:

Re: Attachment points on scenery items

Post by Marky7890 »

Not made any difference unfortunately.
User avatar
Marky7890
Site Admin
Posts: 1473
Joined: Sun Dec 12, 2010 1:57 pm
Trainz Version: TRS2019
Trainz Build: 90945
Author KUID: 179051
Location: Near Penryn, Cornwall
Contact:

Re: Attachment points on scenery items

Post by Marky7890 »

Got it working now.
User avatar
greeni
Past 750!
Posts: 808
Joined: Sun Dec 12, 2010 5:33 pm
Trainz Version: TRAINZ22PE
Trainz Build: 123799
Author KUID: 174088
Location: Wigan, Lancashire. WCML

Re: Attachment points on scenery items

Post by greeni »

How did you sort it Mark.
User avatar
Marky7890
Site Admin
Posts: 1473
Joined: Sun Dec 12, 2010 1:57 pm
Trainz Version: TRS2019
Trainz Build: 90945
Author KUID: 179051
Location: Near Penryn, Cornwall
Contact:

Re: Attachment points on scenery items

Post by Marky7890 »

Deleted it from the map then readded it, reloading the route wasn't updating it for some reason.
User avatar
james73
Past 100!
Posts: 148
Joined: Tue Dec 14, 2010 10:30 pm
Trainz Version: TRS2019
Trainz Build: 114800
Author KUID: 69518
Contact:

Re: Attachment points on scenery items

Post by james73 »

I had the same issue with the 4-track City Union Bridge I made last week. I got the model the way I wanted it to look, and it looked fine in Surveyor, so then I added track attachment points to the mesh. But they simply would not appear in Surveyor UNTIL I added a new version of the bridge into the map. Most annoying.
Image
User avatar
james73
Past 100!
Posts: 148
Joined: Tue Dec 14, 2010 10:30 pm
Trainz Version: TRS2019
Trainz Build: 114800
Author KUID: 69518
Contact:

Re: Attachment points on scenery items

Post by james73 »

I've got a new asset with this problem. :x

I'm creating a new covered footbridge set, with fixed staircases at each side and the middle. I want the bridge deck to be a spline, and snap to the appropriate position on the staircases. No problem, I've seen assets like this already in Trainz.

I've added attachment points (a.spline01 and a.spline02) in my mesh for the staircase and added an invisible road to the config file (<kuid2:149987:37000:1>). When I'm in Surveyor and switch to Spline mode, a white circle appears at the end of the staircase. So far so good.

BUT, when I try to connect the spline to it I get this "The track types may be incompatible" error as shown. :?

Image


Do I NEED the spline/decks to attach to the staircases? No, see below. But it would be nice to have the option!

Image

Are KUID numbers important in this? I've made the staircase <kuid2:69518:28223:1> and the spline <kuid2:69518:28226:1>. Any help greatly appreciated.


Config file for the Staircase:

Code: Select all

kuid					<kuid2:69518:28223:1>
kind                                    "buildable"
light                                   1
nightmode                               "home"
username                                "FB06 Single Stairs"
description                             "..."
category-era                            "1910s;1920s;1930s;1940s;1950s;1960s;1970s;1980s:1990s:2000s:2010s"
category-class                          "BR"
category-keyword                        "..."
category-region                         "..."
trainz-build                            3.5
height-range                            -100,100


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

thumbnails
{
  0
  {
    image                               "$screenshot$.jpg"
    width                               240
    height                              180
  }
}

attached-track
{
  girder0
  {
    track                               <kuid2:149987:37000:1>
    useadjoiningtracktype               0
    vertices
    {
      0                                 "a.spline01"
      1                                 "a.spline02"
    }
  }
}

kuid-table
{
  0                                     <kuid2:149987:37000:1>
}

obsolete-table
{
}
author                                  "..."
organisation                            "..."
contact-email                           "..."
contact-website                         "..."
license                                 "..."
Image
User avatar
Nexusdj
Forum Veteran
Posts: 3098
Joined: Sun Dec 12, 2010 3:02 pm
Trainz Version: TRS22
Trainz Build: 123794
Author KUID: 45317
Location: West Midlands
Contact:

Re: Attachment points on scenery items

Post by Nexusdj »

I think category class needs to be changed to "BB" to match buildable ?

BR is scenery (non functional)

http://online.ts2009.com/mediaWiki/inde ... STRUCTURES
High visibility pixels must be worn when on or about the line !!
User avatar
james73
Past 100!
Posts: 148
Joined: Tue Dec 14, 2010 10:30 pm
Trainz Version: TRS2019
Trainz Build: 114800
Author KUID: 69518
Contact:

Re: Attachment points on scenery items

Post by james73 »

Still the same error when trying to join them. :? The spline is category-class "SS".

One other thing is the spline is not at ground level, it's level with the top of the staircase, and I put the attachment point on the staircase at ground level.
Image
User avatar
Marky7890
Site Admin
Posts: 1473
Joined: Sun Dec 12, 2010 1:57 pm
Trainz Version: TRS2019
Trainz Build: 90945
Author KUID: 179051
Location: Near Penryn, Cornwall
Contact:

Re: Attachment points on scenery items

Post by Marky7890 »

Height shouldn't matter I don't think. My Royal Albert Bridge girders are 30m above the ground so they connect with the bridge asset itself.

Mark
User avatar
james73
Past 100!
Posts: 148
Joined: Tue Dec 14, 2010 10:30 pm
Trainz Version: TRS2019
Trainz Build: 114800
Author KUID: 69518
Contact:

Re: Attachment points on scenery items

Post by james73 »

Tried it in TRS12 and it still doesn't snap to the stairs, although there is no error message displayed.

Image
Image
User avatar
SnakeLight64
Past 250!
Posts: 405
Joined: Sat Aug 11, 2012 12:47 am
Trainz Version: TRS2019/2022
Trainz Build: 0
Author KUID: 563140
Location: London
Contact:

Re: Attachment points on scenery items

Post by SnakeLight64 »

I'm going to take a wild guess, I suspect the error is to do with:

Code: Select all

useadjoiningtracktype               0
Try and change it to 1, I could be completely wrong but it's worth a shot!

What you are creating is how I'm going to be doing soon with my LU platform fences, so would be good to find a solution.

R
Image
User avatar
james73
Past 100!
Posts: 148
Joined: Tue Dec 14, 2010 10:30 pm
Trainz Version: TRS2019
Trainz Build: 114800
Author KUID: 69518
Contact:

Re: Attachment points on scenery items

Post by james73 »

Got this sorted with a suggestion on the Trainz forum. The Spline config had:
isroad 0

Changing it to:
isroad 1 (and adding carrate 0)

seemed to solve the problem. It works, so now to complete the set, then do some reskins.
Image
User avatar
SnakeLight64
Past 250!
Posts: 405
Joined: Sat Aug 11, 2012 12:47 am
Trainz Version: TRS2019/2022
Trainz Build: 0
Author KUID: 563140
Location: London
Contact:

Re: Attachment points on scenery items

Post by SnakeLight64 »

Glad you got to the bottom of it :)
Image
Post Reply