8 Mar 2010

Config example, KIND: Scenery


Here is an example of a simple scenery config. You will need this if you want to import into Trainz objects. Every new content has to have a *.txt file, named “config” in which you have to specify some information about that object. Below is the code and the breakdown:


kuid                                                            kuid:xxxx:yyyyy - your kuid
kind                                                            "scenery"
region                                                        "your country"
type                                                            "the category in Trainz"
light                                                            1
description                                              "your description"
mesh-table {
    default {
        mesh                                                  "*.im file"
        auto-create                                     1
        effects {
            }
    }
}
asset-filename                                     "*.im file"
category-region-0                               "your region"
category-class                                       "BC"
category-era-0                                      "1980s"
category-era-1                                      "1990s"
category-era-2                                      "2000s"
username                                               "the name of the object in Trainz"
author                                                      "your name"
organisation                                          "your team"
contact-email                                       "your email"
contact-website                                  "your site"
license                                                     "your license"
kuid-table {
}
Breakdown:

kuid - This is a unique identifier. In the first part you have to write the user id that Auran has given you, and in the second part you have to write a number of your choice, but not the same as another object with the same user id.

light - Sets lighting to be used for the object to be ambient or directional. 0 sets ambient lighting and object is lit by general light value (uniform colouring), 1 sets directional light which is affected by the position of the sun (shows shadows on the object surfaces).

mesh - This is where you tell Trainz the name of the *.im file. You have to write it with the .im extension.

asset-filename - Refers to the *.im file, written without the im extension. 

category-region - Sets the region in which you can find you object. It must be written only the short name of the country. Example: Romania –RO. You can also assign more regions by numbering this field.

This is a simple config file, check out the blog for more tips&tricks.




No comments:

Post a Comment