Spline 

File location: ...\Trainz\world\custom\splines\

Splines are a useful way of making things like fences and roads in Trainz.

Typical directory structure for custom splines should be:

World
custom
splines
Custom_spline
Config.TXT
Custom_spline.IM
x.TGA
y.BMP
*.tecture.TXT
Custom_spline (Optional secondary spline)
Custom_spline.IM
x.TGA
y.BMP
*.tecture.TXT

Track

File location: ...\Trainz\world\custom\track\

Track folder is used for rails, bridges and tunnels.

Track Rails

Typical Directory Structure for custom Track Rails should be:

World
custom
track
Custom_track
Config.TXT
Custom_track.IM
x.TGA
y.BMP
*.tecture.TXT
Custom_track_tex (For in game track derived from chunky mesh)
custom_track_tex.TGA
custom_track_tex.tecture.TXT

This is used for creating rails.

Config.TXT File Example for Rails

kuid <KUID:###:#####>
kind track
region Britain
type Rails
rgb 255,200,0
length 4
istrack 1
width 4
chunky_mesh mstand_tex
chunky_info 0, 2, 1.2, 0.2, 0.85, 0.3, 0.7
kuid-table {
           0 <KUID:###:#####>
           1 <KUID:###:#####>
}
obsolete-table {
}

username ""
description ""
trainz-build 1.3
category-class TR
category-region-0 UK
category-era-0

TAGS DESCRIPTIONS
type surveyor type
region surveyor region
rgb color used for display in mini map
length length of track piece
istrack sets whether the track is a rail for trains or not. 1 is for rail track, 0 is not rail.
width width of track in meters
chunky_mesh name of texture to apply to rail
chunky_info these values (in meters) define the shape of the mesh created for the track. See drawing below:

Track - Double

File location: ...\Trainz\world\custom\track\

This kind can also be configured to create splines that can be used for placing two or more tracks using the trackoffsets tag.

Config.TXT File Example for Double Track

kuid <KUID:###:#####>
kind bridge
type Rails
region Australia
length 20
bridgetrack <KUID:-1:100396>
trackoffsets -2.5,2.5
height 0
rgb 255,200,0
istrack 1
kuid-table {
            0 <KUID:###:#####>
            1 <KUID:###:#####>
}
obsolete-table {
}

username ""
description ""
trainz-build 1.3
category-class TB
category-region-0 UK
category-era-0

TAGS DESCRIPTIONS
type surveyor type -- bridge, tunnel or rail.
region surveyor region
length length in meters of each bridge piece
bridgetrack KUID for the type of rail used on bridge
trackoffsets distance in meters the rail s are attached to the center of the bridge spline. Any number of tracks can be attached to the spline, only splines with the same track offsets can be connected together
height 0 is used for double tracks
rgb color used for display in mini map
istrack 1 = is a rail bridge

Track - Roads

File location: ...\Trainz\world\custom\track\

Typical Directory Structure for custom Track Road should be:

World
custom
track
Custom_road
Config.TXT
Custom_road.IM
x.TGA
y.BMP
*.tecture.TXT

This is used for creating roads.

Config.TXT File Example for Roads

kuid <KUID:###:#####>
kind track
region Australia
length 5
grounded 0.4
istrack 0
width 7.9
bendy 1
isroad 1
carrate 55
uncached_alphas 1
obsolete-table {
}
username
""
description ""
trainz-build 1.3
category-class SR
category-region-0 AU
category-era-0

TAGS DESCRIPTIONS
length length of track segment in meters
grounded height in meters for the road to be offset from terrain
istrack 0 = is not train tracks
width width of track mesh in meters
bendy switches how track is bent on corners, set as 1 allows the mesh to be deformed as the spline is bend around corners
isroad specifies track is a road with cars, set to 1 for cars to appear on road
carrate Defines traffic density on road (minimum seconds between each car generated). 0 = No traffic. Number must be greater than 3
uncached_ alphas this is used in certain situations to improve alpha sorting. This should only be set to 1 for tracks that use an alpha texture and are always placed fat near the ground (and are not used on bridges or turntables)

Spline Bridge

File location: ...\Trainz\world\custom\splines\
or: ...\Trainz\world\custom\track\

Typical Directory Structure for custom Track Bridge should be:

 

World\
custom\
splines\ (or track\)
Custom_bridge\
Config.TXT
Custom_bridge.IM
x.TGA
y.BMP
*.texture.TXT
Custom_bridge_start\ (Optional initiator file)
Custom_bridge_start.IM
x.TGA
y.BMP
*.texture.TXT
Custom_bridge_start (Optional shadow file)
Custom_bridge_end\ (Optional terminator file)
Custom_bridge_end.IM
x.TGA
y.BMP
*.texture.TXT
Custom_bridge_end (Optional shadow file)
Custom_bridge_shadow\(Optional shadow file)
Custom_bridge_shadow.IM
black.TGA
black.texture.TXT

This kind is used for creating road and rail bridge.

Config.TXT File Example for a Bridge

kuid <KUID:###:#####>
kind bridge
type Bridges
region Britain
length 20
bridgetrack <KUID:-1:100395>
trackoffsets -2.5,2.5
height -8
rgb 200,100,0
casts_shadows 1
istrack 1
initiator dark_stone_arch_2t_start
terminator dark_stone_arch_2t_end
endlength 40
kuid-table {
            0 <KUID:###:#####>
            1 <KUID:###:#####>
}
obsolete-table {
}

username ""
description ""
trainz-build 1.3
category-class TB
category-region-0 UK
category-era-0

TAGS DESCRIPTIONS
type surveyor type - bridge, tunnel or rail
region surveyor region
length length in meters of each bridge piece
bridgetrack KUID for the type of rail or road used on bridge
trackoffsets distance in meters the rail s are attached to the center of the bridge spline. Any number of tracks can be attached to the spline, only splines with the same track offsets can be connected together
height height from the track level to the base of the bridge supports, should be negative for bridges.
rgb color used for display in mini map
casts_shadows defines whether or not the shadows are cast . 1 = shadows on, 0 = shadows off. If shadows are on there needs to be a bridge_ shadow.IM model in a subfolder for the bridge and the initiator and terminator segments (if they are used)
istrack 1 = is a rail bridge, 0 = road bridge
initiator name of model to use at start of bridge, placed in subfolder with same name
terminator name of model to use at end of bridge, placed in subfolder with same name
endlength length in meters of the initiator and terminator models

Spline Tunnel

File location: ...\Trainz\world\custom\splines\
or: ...\Trainz\world\custom\track\

Typical Directory Structure for custom Track Tunnel should be:

World\
custom\
splines\ (or track\)
Custom_tunnel\
Config.TXT
Custom_tunnel.IM
x.TGA
y.BMP
*.texture.TXT
Custom_tunnel\
Custom_tunnel_start.IM
x.TGA
y.BMP
*.texture.TXT
Custom_tunnel_end\
Custom_bridge_end.IM
x.TGA
y.BMP
*.texture.TXT

This kind is used for creating road and rail tunnels.

Config.TXT File Example for a Tunnel

kuid <KUID:###:#####>
kind bridge
type Tunnels
region Australia
length 20
bridgetrack <KUID:###:#####>
trackoffsets -4.5, 4.5
height 8
rgb 180, 180, 180
istrack 1
initiator oz_tunnel_start
terminator oz_tunnel_end
endlength 20
kuid-table {
            0 <KUID:###:#####>
            1 <KUID:###:#####>
}
obsolete-table {

}
username
""
description ""
trainz-build 1.3
category-class TB
category-region-0 AU
category-era-0

TAGS DESCRIPTIONS
type surveyor type -- bridge, tunnel or rail
region surveyor region
length length in meters of each bridge piece
bridgetrack KUID for the type of rail or road used on bridge
trackoffsets distance in meters the rail s are attached to the center of the bridge spline. Any number of tracks can be attached to the spline, only splines with the same track offsets can be connected together
height the height value for tunnels should be positive and greater than the height of the ceiling of the tunnel, but less than the height of the tunnel entrance structure
rgb color used for display in mini map
istrack 1 = is a rail bridge, 0 = road bridge
initiator name of model to use at start of bridge, placed in subfolder with same name
terminator name of model to use at end of bridge, placed in subfolder with same name
endlength length in meters of the initiator and terminator models

 

Content Creation Guide Table of Content

Paint Shed Guide