Create a new text document from within your selected text editor and
enter the following information.
| Config.txt entry Uneditable entries in red |
Description |
| kuid <KUID:86105:55999> |
This is the kuid number. The "86105" should have been already replaced with your user number and the 55999 should also have a default entry. Do not change this number in any way as CMP will not recognize the changes even though you are editing with a text editor. |
| username Tutorial Interior |
This is the name that will show up if any errors arise and is
TrainzObjectz. Give the interior a meaningful title but keep it
short as possible. |
| kind interior |
This tells Trainz that the kind is an interior and not a scenery
or track item. |
| category-class ZI |
This will allow the content to be sorted by the category class.
ZI is a train part interior. |
| 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 2000s |
This is the years that the item is used in. As with the region
category you can have more than one. |
| description "Tutorial on how to create a
Locomotive interior" |
This is a description about the locomotive. It can be brief or
very detailed. |
cameralist {
camera0 -0.984,0.332,0.690,0.051,-0.117
} |
This is the in cab viewing locations. You can have as many of
these as you need |
| cameradefault 0 |
This tells TRS which of the above views to use when first entering
the cab. |
mesh-table {
default {
mesh SD70MACBNSF_interior.im
auto-create 1
}
|
This is the mesh table. In this table you can 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 the setup for levers and gauges
|
speedo_needle {
kind needle
auto-create 1
mesh Needle.im
att a.needle0
limits 0, 50
angles -0.78525, 0.78525
att-parent default
} |
This is a typical setup for a speedo needle gauge. |
bplocomain_needle {
kind needle
auto-create 1
mesh Needle.im
att a.bplocomain_needle
limits 0,50
angles -0.78525, 0.78525
att-parent default
}
|
This is a typical setup for a main brake pressure needle gauge. |
throttle_lever {
kind lever
auto-create 1
mesh throttle_lever.im
att a.throttle_lever
limits 0,8
angles 0.698, -0.698
notches 0,0.125,0.25,0.375,0.5,0.625,0.75,0.875,1
notchheight 1,1,1,1,1,1,1,1,1
radius .2
att-parent default
}
|
This is a typical setup for a throttle lever. |
reverser_lever {
kind lever
auto-create 1
mesh Reverser_Lever.im
att a.reverser_lever
limits 0,2
angles 0.525, -0.525
notches 0,0.5,1
notchheight 1,2,1
radius .2
att-parent default
}
|
This is a typical setup for a reverser lever. |
trainbrake_lever {
kind lever
auto-create 1
mesh Automatic_Brake.im
att a.automatic_brake
limits 0,4
angles 0.698, -0.698
notches 0,0.18,0.22,0.26,0.29,0.3,0.34,0.38,0.42,0.45,0.49,0.53,0.57,0.61,0.65,0.91,1
notchheight 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
radius .2
att-parent default
}
|
This is a typical setup for a trainbrake lever. |
| } |
This bracket closes the entire mesh table. Leaving this out will
cause undesirable results. |
| trainz-build 2.5 |
This tells the download station which version of Trainz the item
is for which in this case is TRS2004 SP2 |
Once you have the text entered save the file to the root directory
of the locomotive. In this case the folder is called Tutorial_Interior and
name the file config.txt