KIND Industry: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
m 1 revision
Pcas1986 (talk | contribs)
m Added sort criterion
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[KIND Industry]] provides the basis for interactive industry objects such as a factory, docks, or passenger station. Industry assets provide queues for loading and unloading product, and automated functionality for processing product.
{{ORP-top}}
==Industry data types==
'''KIND Industry''' provides the basis for interactive assets such as factories, grain silos and passenger stations, or any other activity that involves loading to, or unloading from, a train. Industries use processes and queues to manage the loading and unloading activity.


==KIND Hierarchy==
== KIND Hierarchy ==
===Parent Classes===
=== Parent Classes ===
* [[KIND Buildable]]
* [[KIND SceneryWithTrack]] —Industries without track attached nor interactive behaviour are just [[buildings]], a [[scenery]] categorized asset. When made into a dynamic programmable interactive industry, the parent type is SceneryWithTrack.
===Child Classes===
* ''none.''


==Supported Tags==
=== Child Classes ===
Each industry asset supports the following tags. Each tag is shown here with its default value.
* '''[[KIND Product]]''' — without this type, which includes passengers, there would be no reason for carrying anything, nor need of railways.


''TBD''
===Sister Class===
* '''[[KIND Traincar]]''' — On a railroad simulation, industries need rolling stock to move product and feedstock into and out of the plant. Both rolling stock and industries are thereby tied by the daughter level {{wp|data type}} [[KIND Product]], for it is difficult to unclog the pipes emptying a tank car when it is filled with Coal chunks, and fuel oil and acids spill off the odd flat car.


==Example Config.txt==
== Supported Tags ==
Sample [[config.txt file]] for an industry asset, with the Standard Tags excluded for brevity:
[[KIND Industry]] supports all of the [[KIND SceneryWithTrack]] tags, and adds the following tags.


''TBD''
====processes====


==Downloads==
:Type: [["processes-element" container|Process element container]]
''Attach sample files here?''
:Desc: Contains one or more process elements. Each process element provides information about the process, including duration, start status, and the input and output queues associated with that process.


==Categories==
 
[[Category:Asset KIND]]
== Example Config.txt ==
Below is a sample [[config.txt file]] for an industry asset, with the standard tags excluded for brevity. This particular example is for a simple coal mine which takes in diesel fuel and outputs coal.
 
;Tags of the [[TrainzBaseSpec]] would be included here in a [[config.txt file]], then {{...}}
  processes
  {
    coal_production
    {
      start-enabled                      1
      duration                            30
     
      inputs
      {
        0
        {
          amount                          6465
          queue                          "diesel_in"
        }
      }
     
      outputs
      {
        0
        {
          amount                          22620
          queue                          "coal_out"
        }
      }
    }
  }
 
  queues
  {
    coal_out
    {
      size                                1357500
      product-kuid                        <kuid:44179:60013>
      initial-count                      543000
     
      allowed-products
      {
        0                                <kuid:44179:60013>
      }
    }
   
    diesel_in
    {
      size                                310400
      product-kuid                        <kuid:-3:10011>
      initial-count                      155200
     
      allowed-products
      {
        0                                <kuid:-3:10011>
      }
    }
  }
 
== Categories ==
[[Category:Asset KIND|I]]
{{ORP-bot|Industry,KIND}}

Latest revision as of 04:55, 14 February 2014

Industry data types

KIND Industry provides the basis for interactive assets such as factories, grain silos and passenger stations, or any other activity that involves loading to, or unloading from, a train. Industries use processes and queues to manage the loading and unloading activity.

KIND Hierarchy

Parent Classes

  • KIND SceneryWithTrack —Industries without track attached nor interactive behaviour are just buildings, a scenery categorized asset. When made into a dynamic programmable interactive industry, the parent type is SceneryWithTrack.

Child Classes

  • KIND Product — without this type, which includes passengers, there would be no reason for carrying anything, nor need of railways.

Sister Class

  • KIND Traincar — On a railroad simulation, industries need rolling stock to move product and feedstock into and out of the plant. Both rolling stock and industries are thereby tied by the daughter level data type KIND Product, for it is difficult to unclog the pipes emptying a tank car when it is filled with Coal chunks, and fuel oil and acids spill off the odd flat car.

Supported Tags

KIND Industry supports all of the KIND SceneryWithTrack tags, and adds the following tags.

processes

Type: Process element container
Desc: Contains one or more process elements. Each process element provides information about the process, including duration, start status, and the input and output queues associated with that process.


Example Config.txt

Below is a sample config.txt file for an industry asset, with the standard tags excluded for brevity. This particular example is for a simple coal mine which takes in diesel fuel and outputs coal.

Tags of the TrainzBaseSpec would be included here in a config.txt file, then …
 processes
 {
   coal_production
   {
     start-enabled                       1
     duration                            30
     
     inputs
     {
       0
       {
         amount                          6465
         queue                           "diesel_in"
       }
     }
     
     outputs
     {
       0
       {
         amount                          22620
         queue                           "coal_out"
       }
     }
   }
 }
 
 queues
 {
   coal_out
   {
     size                                1357500
     product-kuid                        <kuid:44179:60013>
     initial-count                       543000
     
     allowed-products
     {
       0                                 <kuid:44179:60013>
     }
   }
   
   diesel_in
   {
     size                                310400
     product-kuid                        <kuid:-3:10011>
     initial-count                       155200
     
     allowed-products
     {
       0                                 <kuid:-3:10011>
     }
   }
 }
 

Categories