Container

From TrainzOnline
Revision as of 23:08, 24 April 2024 by Ek.skirl (Talk | contribs)

Jump to: navigation, search

Contents

Container objects

Container types

There are ten container types used in the aCTS: 10ftsc, 10fthc, 20ftsc, 20fthc, 40ftsc, 40fthc, 45ftsc, 45fthc and 53ftsc, 53fthc. An aCTS usable container is predefined with its origin at the geometrical middle of the bottom face.

A container knows its container stack and its position in it. A container is able to report its parameter soups, including a yet not used virtual list of content to transport within it.

Container from other asset builder

So the container assets of other asset builders need possibly a variant with config setted position and rotation. Additionally the scale may be needed to set for fitting the technical dimensions. All containers that don't fit the technical dimensions and the logical origin position and rotation have a config extensions sub soup with the name "acts.delta-251489" and tags for correcting the assets values to the aCTS fitting ones (accuracy 0.1 mm and 0.1 °), looking like follows:

 acts.delta-251489 {
   px.delta    0.0
   py.delta    0.0
   pz.delta    0.0
   rx.delta    0.0
   ry.delta    0.0
   rz.delta    0.0
 }

Unfortunately the scale of the mesh may not be corrected by some factor to fit the aCTS dimensions. So for containers with other dimensions one may see a small gap between stacked containers or they run optical into each other.

Asset files

config.txt

XY is the KUID part, LL the length and HH the height for the container type.

X   1 for 10ft, 2 for 20ft, 3 for 40ft, 4 for 45ft and 5 for 53ft
Y   1 for standard height, 2 for heigh cube height
LL  the fitting length as 10, 20, 40, 45, 53
hh  the fitting height as sc, hc
HH  the fitting height as SC, HC

 kuid               <Kuid2:215489:11002XY:1>
 username           "aCTS CONTAINER LLft HH Scenery Utility V0.1"
 kind               "Scenery"
 category-class     "BU"
 description        "aCTS CONTAINER LLft HH Scenery Utility V0.1"
 
 trainz-build       4.6
 
 surveyor-only      0
 
 script             "acts_container.gs"
 class              "acts_container"
 
 kuid-table 
 {
   skinskuid        <kuid2:215489:1100200:1>
   scriptinclude    <kuid2:215489:110000:1>
 }
 
 script-include-table 
 {
   scriptinclude    <kuid2:215489:110000:1>
 }
 
 mesh-table-lod-transition-distances    1000
 mesh-detail-level-count                1
 
 mesh-table
 {
   contLLft-lod0
   {
     mesh                   "acts_cont_LLfthh.trainzmesh"
     auto-create            1
     lod-level              0
     effects 
     {
       skincolor 
       {
         kind       "texture-replacement"
         texture    "acts_container_allinone.texture"
       }
       namev 
       {
         kind       "name"
         name       "GOIDV"
         att        "a.namev"
         font       "swiss"
         fontsize   0.3
         fontcolor  1.0,1.0,1.0
       }
       nameh 
       {
         kind       "name"
         name       "GOIDH"
         att        "a.nameh"
         font       "swiss"
         fontsize   0.3
         fontcolor  1.0,1.0,1.0
       }
     }
   }
 }
 
 thumbnails
 {
   0
   {
     image          "acts_cont_LLfthh_thumb.jpg"
     width          240
     height         180
   }
 }
 

acts_container.gs

 XXX
 YYY
 ZZZ

acts_container_script.gs

 XXX
 YYY
 ZZZ

File is located in dispatcher library.

acts_container_globals.gs

 XXX
 YYY
 ZZZ

File is located in dispatcher library.

Personal tools