KIND MOCrossing

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
m (Added sort criterion)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
Combined rail and road crossings that react to trains or script control. This allows animation, special lighting effects and attachment points for rail track and roads.
+
[[KIND MOCrossing]] provides combined rail and road crossings that react to trains or script control. This allows animation, special lighting effects and attachment points for rail track and roads.
  
This is an example level crossing consisting of script animated boom gates, and flashing lights, however, only the config.txt entries are discussed here. Some duplicate entries in the config.txt file for the corona effects are not shown to conserve space.
+
 
 +
=KIND Hierarchy=
 +
==Parent Classes==
 +
* [[KIND TrainzBaseSpec]]
 +
==Child Classes==
 +
* ''none.''
 +
 
 +
==Supported Tags==
 +
TBD.
 +
 
 +
 
 +
==Example Config.txt==
 +
The following is an example level crossing consisting of script animated boom gates, and flashing lights, however, only the config.txt entries are discussed here. Some duplicate entries in the config.txt file for the corona effects are not shown to conserve space.
  
 
Note that an animated mocrossing can be created without the use of scripts, the animation being triggered automatically by a train. Animation events may also be linked to an animation key-frame to give control over effect and script timing.
 
Note that an animated mocrossing can be created without the use of scripts, the animation being triggered automatically by a train. Animation events may also be linked to an animation key-frame to give control over effect and script timing.
 
The track and road types are specified in the attached-track and the meshes are within the mesh-table. An invisible road KUID may be useful for this type of model.
 
The track and road types are specified in the attached-track and the meshes are within the mesh-table. An invisible road KUID may be useful for this type of model.
  
Sample config.txt:
+
  kuid <KUID2:######:######:1>
 
+
  light 1
  [[TagName_Kuid|kuid]] <KUID2:######:######:1>
+
  kind mocrossing
  [[TagName_Light|light]] 1
+
  trainz-build 2.5
  [[TagName_Kind|kind]] mocrossing
+
  category-region "AU"
  [[TagName_Trainz-build|trainz-build]] 2.5
+
  category-era "1980s"
  [[TagName_Category-region|category-region]] "AU"
+
  region Australia
  [[TagName_Category-era|category-era]] "1980s"
+
  class modular_xing
  [[TagName_Region|region]] Australia
+
  script xing.gs
  [[TagName_Class|class]] modular_xing
+
  kuid-table
  [[TagName_Script|script]] xing.gs
+
  [[Kuid-table_container|kuid-table]]
+
 
  {
 
  {
 
   corona_red <KUID:-3:10112>
 
   corona_red <KUID:-3:10112>
 
   road <KUID:###:####>
 
   road <KUID:###:####>
 
  }
 
  }
  [[%22mesh-table%22_Container|mesh-table]]
+
  mesh-table
 
  {
 
  {
 
   default  
 
   default  
Line 60: Line 70:
 
   }
 
   }
 
  }
 
  }
  [[%22Attached-track%22_container|attached-track]]
+
  attached-track
 
  {
 
  {
 
   track  
 
   track  
Line 82: Line 92:
 
   }
 
   }
 
  }
 
  }
  [[%22String-table%22_container]]
+
  string-table
 
  {
 
  {
 
  }
 
  }
  [[TagName_Username|username]] QR Level Crossing
+
  username QR Level Crossing
  [[TagName_Category-class|category-class]] TR
+
  category-class TR
  [[TagName_Description|description]] "QR level crossing with animated boomgates and flashing lights."
+
  description "QR level crossing with animated boomgates and flashing lights."
  
 
==Categories==
 
==Categories==
[[Category:Asset KIND]]
+
[[Category:Asset KIND|M]]
 +
[[Category:TBD]]

Latest revision as of 15:02, 14 February 2014

KIND MOCrossing provides combined rail and road crossings that react to trains or script control. This allows animation, special lighting effects and attachment points for rail track and roads.


Contents

[edit] KIND Hierarchy

[edit] Parent Classes

[edit] Child Classes

  • none.

[edit] Supported Tags

TBD.


[edit] Example Config.txt

The following is an example level crossing consisting of script animated boom gates, and flashing lights, however, only the config.txt entries are discussed here. Some duplicate entries in the config.txt file for the corona effects are not shown to conserve space.

Note that an animated mocrossing can be created without the use of scripts, the animation being triggered automatically by a train. Animation events may also be linked to an animation key-frame to give control over effect and script timing. The track and road types are specified in the attached-track and the meshes are within the mesh-table. An invisible road KUID may be useful for this type of model.

kuid <KUID2:######:######:1>
light 1
kind mocrossing
trainz-build 2.5
category-region "AU"
category-era "1980s"
region Australia
class modular_xing
script xing.gs
kuid-table
{
  corona_red <KUID:-3:10112>
  road <KUID:###:####>
}
mesh-table
{
  default 
  {
    mesh road.im
    anim boomgates.kin
    auto-create 1
    effects 
    {
      pole1-light1 
      {
        kind corona
        att a.pole1-lamp0
        texture-kuid <KUID:-3:10112>
      }
      pole1-light2 
      {
        kind corona
        att a.pole1-lamp1
        texture-kuid <KUID:-3:10112>
      }
      boom1-light1 
      {
        kind corona
        att a.boom1-light0
        directional 0
        texture-kuid <KUID:-3:10112>
      }
      boom1-light2 
      {
        kind corona
        att a.boom1-light1
        directional 0
        texture-kuid <KUID:-3:10112>
      }
    }
  }
}
attached-track
{
  track 
  {
    track <KUID:-1:15>
    vertices 
    {
      0 a.track0a
      1 a.track0b
    }
  }
  road 
  {
    track <KUID:###:####>
    useadjoiningtracktype 0
    vertices 
    {
      0 a.road0a
      1 a.road0b
    }
  }
}
string-table
{
}
username QR Level Crossing
category-class TR
description "QR level crossing with animated boomgates and flashing lights."

[edit] Categories

Personal tools