Spline asset coming up invisible

AMTRAKwannabe

Norfolk & Western Lives
*Moderators: if this is in the wrong place feel free to move it.
I am trying to make a series of splines and static objects so people can recreate the Alameda Corridor Trench or make your own version in 1, 2, 3, or 4 track version. My problem is that it won't show up in surveyor or driver. I am new to content creation and know people say making splines is hard but I figured it would be easier to have this project as splines for greater user customization. Are there any special requirements for making a spline and is there a newer way of setting up the config than I am?

Code:
kuid                                    <kuid:734390:101100>
username                                "Rail trench - 1 track"
kind                                    "track"
type                                    "retaining"
length                                  5
istrack                                 0
isroad                                  1
carrate                                 0
width                                   1
bendy                                   1
light                                   1
author                                  "Justin R. Cartwright"
description                             "Wikipedia:
The project is notable for its 'Mid-Corridor Trench', a below-ground, triple-tracked rail line that is 10 miles (16 km) long, 33 feet (10 m) deep, and 50 feet (15 m) wide,[2] shared by the BNSF Railway and Union Pacific Railroad[1] via trackage rights. The Alameda Corridor allows trains to bypass 90 miles (140 km) of early 20th-century branch lines and the Santa Fe's historic Harbor Subdivision along a high-speed grade-separated corridor (mainly built on the alignment of a former Southern Pacific Railroad line), avoiding more than 200 at-grade railroad crossings where cars and trucks previously had to wait for long freight trains to pass.[3] Many of those same rail lines were inadequately protected with little more than 'wigwag' crossing signals dating from the original construction of the lines. One important use of the corridor is to carry cargo containers to and from the ports. The corridor has a maximum speed of 40 miles per hour (64 km/h)."
contact-email                           "censored"
organisation                            "TheVARailFan Productions"
category-era                            "2000s;2010s"
category-region                         "US"
trainz-build                            2.4
category-class                          "SF"


thumbnails
{
  0
  {
    image                               "map1.tga"
    width                               0
    height                              0
  }
}


asset-filename                          "rail trench _ 1 track"

Any help would be greatly appreciated,
Justin
 
Having a good look at your config, I can see where you're going wrong. What's missing is the mesh-table.

mesh-table
{
default
{
mesh "rail trench _ 1 track.im"
auto-create 1
}
}


Just make sure that both text and the actual .im match otherwise it will come up as faulty on committing. This section is best placed before thethumbnail call.

If you're planning on uploading to the DLS, your config should look more like this:-


description ""
username ""
trainz-build 3.5
kind "track"
category-class "SF"
category-era "2010s"
category-region "UK"
author ""
organisation ""
contact-email ""
contact-website ""
license ""

mesh-table
{
default
{
mesh "xxx.im"
}

preview-mesh
{
mesh "xxx.im"
auto-create 1
}
}

track
{
mesh-length 150
(your length)
track-lod-tree
{
mesh "default"
}
}
istrack 0
isroad 0

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


Hope this helps.
 
Last edited:
Thanks for helping me with organizing the config. Didn't help with the spline though, here is the current config:
Code:
username                                "Rail trench - 1 track"
description                             "This is a single track trench based off the design of the Alameda Trench.
Wikipedia:
The project is notable for its 'Mid-Corridor Trench', a below-ground, triple-tracked rail line that is 10 miles (16 km) long, 33 feet (10 m) deep, and 50 feet (15 m) wide, shared by the BNSF Railway and Union Pacific Railroad via trackage rights. The Alameda Corridor allows trains to bypass 90 miles (140 km) of early 20th-century branch lines and the Santa Fe's historic Harbor Subdivision along a high-speed grade-separated corridor (mainly built on the alignment of a former Southern Pacific Railroad line), avoiding more than 200 at-grade railroad crossings where cars and trucks previously had to wait for long freight trains to pass. Many of those same rail lines were inadequately protected with little more than 'wigwag' crossing signals dating from the original construction of the lines. One important use of the corridor is to carry cargo containers to and from the ports. The corridor has a maximum speed of 40 miles per hour (64 km/h)."
kind                                    "track"
istrack                                 0
author                                  "Justin R. Cartwright"
contact-email                           "censored"
organisation                            "TheVARailFan Productions"
category-era                            "2000s;2010s"
category-region                         "US"
category-class                          "SF"
trainz-build                            3.4


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


track
{
  mesh-length                           7
  
  track-lod-tree
  {
    mesh                                "mesh.im"
  }
}


thumbnails
{
  0
  {
    image                               "map1.tga"
    width                               240
    height                              180
  }
}
kuid                                    <kuid:734390:101100>
 
Just checking the basics; do your meshes all start at Y=0 and extend in the negative Y direction? Meshes for splines need to be made like that. And is your mesh length correct - you mention both 5 and 7 metres for the same asset.
 
Last edited:
The two I'm working on right now start at Y=0 and end at Y=(-23[feet])[7 meters]. It was at 5 meters then I realized 23ft is 7 meters.

EDIT: Here is the asset folder:
IlIm53y.png


And here is the gmax render:
mBQPfTy.png
 
Last edited:
I'm at a loss to explain it, but can you temporarily configure it as a kind scenery asset and see if it shows up in Trainz. That will at least prove the mesh and texture are OK.
 
Config error in track-lod-tree.

Change to
Code:
track
{
  mesh-length                           7
  
  track-lod-tree
  {
    mesh                                "default"
  }
}
 
Back
Top