| Config.txt entry |
Description |
| kuid <KUID2:86105:9990:0> |
This is the kuid number. Replace the "86105" with
your user number and replace the 9990 with a suitable number for
your item. The recommended range for a locomotive is 1-9999. Although
the kuid range is no longer a requirement I still prefer to keep
my numbers within these ranges. The last number represents the version
number for the item. |
| username Loco EMD SD40-2 BN |
This is the name that will show up in Driver. Give the locomotive
a meaningful title but keep it short as possible. This should be
used in place of the "name" tag for TRS2004. |
| company Burlington Northern |
This is a company name for the item. |
| origin USA |
The original country the locomotive was used or created in. |
| bogey <KUID:-1:100141> |
This is the kuid number of the bogey file that will be used on
the locomotive. I have used one of the default bogey numbers you
can change the number to the bogey you want to use but it is possible
that the creator has built bogeys that cannot be interchanged. |
bogey-1-r <KUID:-1:100141>
|
This line is only needed if you have more than one type of bogey
or if the attachment point has been rotated. The -r means that the
animation is reversed. |
kuid-table {
0 <KUID:-1:100141>
} |
This tells the download station what items are required for the
locomotive to work. It can also be used for mesh replacement, texture
replacement etc |
| engine 1 |
This tells Trainz that the item is a locomotive and not a rolling
stock item. |
| mass 50000 |
This is the mass of the locomotive in kgs |
| kind traincar |
This tells Trainz that the kind is a Traincar and not a scenery
or track item. |
| category-class AL |
This will allow the content to be sorted by the category class.
AL is a Diesel and Diesel Electric locomotive. |
| category-region-0 US |
This is the region the locomotive was used in. If there is more
than one country required then you can add category-region-1 on the
next line. |
| category-era-0 1970s |
This is the years that the item is used in. As with the region
category you can have more than one. |
| enginespec <KUID:-1:42004231> |
This is the engine spec file. This file is included with Trainz
and it is the engine spec file for a GP38-2 |
| enginesound <KUID:-1:42003000> |
This is the engines sound file kuid. This is a required entry and
in this case references a default engine sound |
| hornsound <KUID:-1:42003101> |
This is the horn sound file kuid. This is a required entry and
in this case references a default horn sound |
| interior <KUID:-1:101475> |
This is the interior kuid. This is a required entry and in this
case references a default interior |
| fonts 0 |
This tells Trainz that there are no running numbers associated
with this locomotive. |
running-numbers{
}
|
This tells Trainz what the selected running numbers are. This setting
is overridden in surveyor. |
| description "Burlington Northern SD40-2 Locomotive" |
This is a description about the locomotive. It can be brief or
very detailed. |
| asset-filename BN-SD40-2 |
This is the folder that the meshes and the textures are contained
in. |
mesh-table
{
default
{
mesh BN-SD40-2_body/BN-SD40-2_body.lm
auto-create 1
}
shadow
{
mesh BN-SD40-2_shadow/BN-SD40-2_shadow.im
}
}
|
This is the mesh table. You will notice that the main mesh tag
is pointing to a lm file instead of an .im file. This is beacause
this locomotive uses the LOD system to reduce the resources required
when the locomotive is viewed from a distance.
In this table you
can also reference items such as animation and other attachments.
Animated
items can
also
be controlled via the use of a script.
This is also where you add coronas and set up the night mode
mesh etc.
|
smoke_shade 0.3
smoke_random 2.5
smoke_slowlife 6
smoke_fastlife 0.8
smoke_height 1.7
smoke_fastspeed 1.6 |
This is the settings for the smoke attachment. This method of attaching
smoke is no longer recommended and the new system is to use the "Twinkles" program
to create the effects and attach them in the same way that a mesh
object is attached. |
obsolete-table {
}
|
This setting is for previous versions that you want to obsolete. |
| trainz-build 2.2 |
This tells the download station which version of Trainz the item
is for. In this case it is for TRS2004 with SP2 installed. |