KIND Industry
From TrainzOnline
(Difference between revisions)
m |
|||
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. | [[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. | ||
− | ==KIND Hierarchy== | + | == KIND Hierarchy == |
− | ===Parent Classes=== | + | === Parent Classes === |
* [[KIND Buildable]] | * [[KIND Buildable]] | ||
− | ===Child Classes=== | + | === Child Classes === |
* ''none.'' | * ''none.'' | ||
− | ==Supported Tags== | + | == Supported Tags == |
− | Each industry asset supports the following tags | + | Each industry asset supports the following tags. |
− | + | processes | |
+ | { | ||
+ | } | ||
− | == | + | ==== processes ==== |
− | + | :Type: [[Processes_container|Processes container]] | |
+ | :Desc: The input and output settings of the industry. You can specify the amount of input and output for each queue referenced product as well as the duration (or rate) in seconds for that process to take place. All queues and processes are linked through the industry assets script file. | ||
− | + | == 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. | ||
− | + | processes | |
− | + | { | |
− | + | coal_production | |
− | ==Categories== | + | { |
+ | 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]] | [[Category:Asset KIND]] | ||
[[Category:TBD]] | [[Category:TBD]] |
Revision as of 22:45, 12 February 2013
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.
Contents |
KIND Hierarchy
Parent Classes
Child Classes
- none.
Supported Tags
Each industry asset supports the following tags.
processes { }
processes
- Type: Processes container
- Desc: The input and output settings of the industry. You can specify the amount of input and output for each queue referenced product as well as the duration (or rate) in seconds for that process to take place. All queues and processes are linked through the industry assets script file.
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.
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> } } }