HowTo/General information for Configuration Files
General information on Configuration Files
A configuration file has to be created for each asset you create. It is a plain text file. It is always called "config.txt" and is placed in the same directory as the other files for the asset. Because it is plain text it must NOT be created using a word processor. Use an application like Notepad or Notepad++. There is also a application called AssetX which can assist in the creation of the configuration file
The config file contains the instructions on how Trainz uses the asset. Without a valid config file your asset will not be shown within Trainz
The config file may contain several containers to associate parts of the text with certain information pertaining to the container heading. An example of the is show below
mesh-table {
default { mesh "amesh.im" auto-create 1 }
}
Each container start with a curly bracket and close with a curly bracket. So in this example there is an inner container called "default" which contains two instructions and the outer one is called "mesh-table"
There are certain mandatory lines that must be in every config file. These include :-
- kuid
- kind
- username
- trainz-build
- mesh-table
- thumbnails
- kuid-table
There are also many that are required for different types of assists and many that are optional.