HowTo/Scenery

From TrainzOnline
< HowTo(Difference between revisions)
Jump to: navigation, search
(Created page with " == Scenery == Scenery is one of the most basic items you can make for Trainz. Every asset needs a config file. This is a config file that determines how Trainz uses the asse...")
 
m (fixed formatting of indented code sections by using non-breaking spaces)
 
(25 intermediate revisions by one user not shown)
Line 2: Line 2:
 
== Scenery ==
 
== Scenery ==
  
Scenery is one of the most basic items you can make for Trainz. Every asset needs a config file. This is a config file that determines how Trainz uses the asset you have created. Below is the config file for a basic scenery asset. This particular config file would suit a static object with no lighting
+
Scenery is one of the most basic items you can make for Trainz. Every asset needs a config file. This is a config file that determines how Trainz uses the asset you have created. Below is the config file for a basic scenery asset. This particular config file would suit a static object with no lighting. Clicking on each tag will take you to further information on that tag
  
kind                                    "scenery"
 
light                                  1
 
type                                    "custom"
 
  
obsolete-table
+
[[/kuid/]] <kuid:00000:00000>
 +
 
 +
[[/kind/]] "scenery"
 +
 
 +
[[/trainz-build/]]                            1.0
 +
 
 +
[[/light/]] 1
 +
 
 +
[[/type/]]                                    "scenery"
 +
 
 +
[[/username/]]                              "the name of the asset shown in surveyor"
 +
 
 +
[[/kuid-table/]]
 +
 
 
{
 
{
 +
 
}
 
}
kuid                                    <kuid:00000:00000>   
 
trainz-build                            0.0
 
category-region-0                      "to"
 
category-era-0                          2000
 
region                                  "Australia"
 
asset-filename                          "BP Large Tank"
 
name                                    "BP Large Tank"
 
category-class                          "BI"
 
  
description                            "Large Fuel Tank found at bulk fuel depots. BP old brand used."
+
[[/obsolete-table/]]
username                                "BP Large Tank"
+
author                                  ""
+
organisation                            ""
+
contact-email                          ""
+
contact-website                        ""
+
license                                "This object can be used without restriction. It is given free of charge and without warrenty. Don't abuse just use."
+
  
kuid-table
 
 
{
 
{
 +
 
}
 
}
 +
 +
[[/mesh-table/]]
 +
 +
{
 +
 +
}
 +
 +
[[/thumbnails/]]
 +
 +
{
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[/0/]]
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[/image/]]                              "thumbnail.jpg"
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[/width/]]                              240
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[/height/]]                              180
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image                              "0.jpg"
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width                              128
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height                              64
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;image                              "1.jpg"
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;width                              512
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;height                              512
 +
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
 +
 +
}
 +
 +
[[/category-class/]]                          "BI"
 +
 +
[[/description/]]                            "Tells the user all about your asset can be as much of a description as you like"
 +
 +
 +
The following tags are '''optional'''
 +
 +
 +
[[/category-region/]]-0                      "AU"
 +
 +
[[/category-era/]]-0                          2000s
 +
 +
[[/author/]]                                "who made the asset"
 +
 +
[[/organisation/]]                          "your organisation"
 +
 +
[[/contact-email/]]                          "your email"
 +
 +
[[/contact-website/]]                        "maybe you have a website"
 +
 +
[[/license/]]                                "can be how you want your asset distributed"

Latest revision as of 08:57, 21 February 2022

[edit] Scenery

Scenery is one of the most basic items you can make for Trainz. Every asset needs a config file. This is a config file that determines how Trainz uses the asset you have created. Below is the config file for a basic scenery asset. This particular config file would suit a static object with no lighting. Clicking on each tag will take you to further information on that tag


kuid <kuid:00000:00000>

kind "scenery"

trainz-build 1.0

light 1

type "scenery"

username "the name of the asset shown in surveyor"

kuid-table

{

}

obsolete-table

{

}

mesh-table

{

}

thumbnails

{

      0

      {

            image "thumbnail.jpg"

            width 240

            height 180

      }

      1

      {

            image "0.jpg"

            width 128

            height 64

      }

      2

      {

            image "1.jpg"

            width 512

            height 512

      }

}

category-class "BI"

description "Tells the user all about your asset can be as much of a description as you like"


The following tags are optional


category-region-0 "AU"

category-era-0 2000s

author "who made the asset"

organisation "your organisation"

contact-email "your email"

contact-website "maybe you have a website"

license "can be how you want your asset distributed"

Personal tools