HowTo/WagonX - Technical Reference
From TrainzOnline
< HowTo(Difference between revisions)
(Draft version - checking for links,etc.) |
(Corrected some broken links) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
= Document Structure = | = Document Structure = | ||
<table width=1200> | <table width=1200> | ||
Line 71: | Line 68: | ||
<!--start of ACS table--> | <!--start of ACS table--> | ||
<table width=1200> | <table width=1200> | ||
− | For help on creating the acs extensions and setting up the acs mesh-table objects, see [[HowTo/ | + | For help on creating the acs extensions and setting up the acs mesh-table objects, see [[HowTo/WagonX_-_Browser_Properties_Examples_and_Basic_Tutorials#Naming_ACS_mesh-table_attachments|Naming ACS mesh-table attachments]]. |
<br> | <br> | ||
Each tag is shown here with sample values. There are no default values. | Each tag is shown here with sample values. There are no default values. | ||
Line 96: | Line 93: | ||
<table width=1200> | <table width=1200> | ||
<!--Note for page author - is this for proper industries such as cargo or is it used for passengers at stations as well?--> | <!--Note for page author - is this for proper industries such as cargo or is it used for passengers at stations as well?--> | ||
− | The misc container currently contains times, in seconds, for industry loading and unloading. Usually, these times are used to enable animations to run before or after loading/unloading | + | The misc container currently contains times, in seconds, for industry loading and unloading. Usually, these times are used to enable animations to run before or after loading/unloading. |
Each available tag is shown here with sample values. There are no defaults. | Each available tag is shown here with sample values. There are no defaults. | ||
Line 125: | Line 122: | ||
The Marker-Lights container is used to show or hide light meshes that are identied by entries in the config mesh-table. | The Marker-Lights container is used to show or hide light meshes that are identied by entries in the config mesh-table. | ||
− | Each tag is shown here with sample values. There are no defaults. | + | Each tag is shown here with sample values. There are no defaults. |
<tr><td> | <tr><td> | ||
marker-lights | marker-lights | ||
Line 167: | Line 164: | ||
:If set to 1, the lamps will only be visible at night, otherwise they will be displayed 24/7. | :If set to 1, the lamps will only be visible at night, otherwise they will be displayed 24/7. | ||
*<b>Front/back head/tail containers</b> | *<b>Front/back head/tail containers</b> | ||
− | :These containers identify the mesh to use for the front, back, head, and tail lamps. These meshes must be in the config mesh-table | + | :These containers identify the mesh to use for the front, back, head, and tail lamps. These meshes must be in the config mesh-table. |
</td></tr></table> | </td></tr></table> | ||
<!--end of Marker-Lights table--> | <!--end of Marker-Lights table--> | ||
Line 545: | Line 542: | ||
::::*For fx-replacement-type corona, the values are the names of the corona effects to be replaced by the specified [[HowTo/WagonX - Technical Reference#asset]]. | ::::*For fx-replacement-type corona, the values are the names of the corona effects to be replaced by the specified [[HowTo/WagonX - Technical Reference#asset]]. | ||
::::*For fx-replacement-type animation, the values are the names of the animation effects to be replaced by the specified [[HowTo/WagonX - Technical Reference#asset]]. | ::::*For fx-replacement-type animation, the values are the names of the animation effects to be replaced by the specified [[HowTo/WagonX - Technical Reference#asset]]. | ||
− | ::::*For fx-replacement-type name, the values are the names that will replace the current name of the specified name effect | + | ::::*For fx-replacement-type name, the values are the names that will replace the current name of the specified name effect. |
<!--end values tag--> | <!--end values tag--> | ||
</td></tr></table> | </td></tr></table> |
Revision as of 15:01, 21 February 2024
Document Structure
The WagonX Tutorial set is written over several pages. This page is a base reference for using WagonX config containers, their properties and the values for those properties. Other pages in the series are listed below: |
- HowTo/Use the WagonX Library
- HowTo/WagonX - Browser Properties Examples and Basic Tutorials
- HowTo/WagonX - Traincar Tutorial
- HowTo/WagonX - Locomotive Tutorial
The WagonX Reference
This page contains details of the WagonX extension container and sub-containers. Practical examples of usage can be found in the tutorials listed above. |
Restricted Characters
The characters in the list below cannot be used for some property tag values as they are used by the script to parse or identify values such as list items and other information. They can be used in name and description tags. Use of these characters in tag values is identified in the properties descriptions that follow. Tutorial sections give examples of use. See also display-values. |
|
General Layout
WagonX config tags are defined in the extensions container along with other extensions such as ACS Lib. The general layout of the extensions container that also includes ACS Lib might look like this: |
extensions { max_permitted_speed-60850 "50mph" active-coupling-standard-60850 { ... } wagon-x { ... } } |
WagonX Properties
There are currently three standard or "top level" WagonX containers that define properties for Marker Lights, a variation of ACSLib and Misc (miscellaneous). In addition to the standard containers, you can define zero or more additonal property containers that are identified by integer value names starting from 0. Each of these containers are defined below. |
ACS
acs { animated 1 use-jbv-animation 1 duration 1.0 }
|
Misc
misc { begin-load-time 5.0 begin-unload-time 5.0 end-load-time 1.0 end-unload-time 1.0 }
|
Marker-Lights
marker-lights { enabled 1 car-minimum-count 1 require-locomotive 1 night-only 0 front { head { mesh "null" } tail { mesh "lamp-front-red" } } back { head { mesh "lamp-back-white" } tail { mesh "lamp-back-red" } } }
|
Browser-Properties
|
browser-properties { 0 { enabled 1 property-visibility 1 name "Skin: " property-id "p_skin" consist-property-sync 1 description "Sets the weathering type" kind "fx-replacement" fx-replacement-type "texture-replacement" meshes "null" effects "texture-albedo,texture-parameter" asset "texturelib" files-path "null" values "0;3,1;4,2;5" default-index -1 trigger "user" display-type "link" display-values "Clean,Weathered,Dirty" } 1 { enabled 1 property-visibility 0 name "Handbrake State: " property-id "p_handbrake" description "Toggle the handbrake" kind "mesh-attachment" mesh-attachment-type "mesh-animation-frame" meshes "handbrake-lever,braking-system" values "0;0,30;30" events "handbrake-release,handbrake-apply" duration 3.2 default-index 0 trigger "both" display-type "link" display-values "release,apply" } } |
Supported TagsTag explanations. Some examples are included in the definition and, for others, see above for sample of usage. |
enabled
|
property-visibility
|
name
|
child-properties
|
property-id
|
consist-property-sync
|
property-sync-id
|
description
|
kind
particle-effect-type
|
mesh-attachment-type
|
fx-replacement-type
|
duration
|
meshes
|
effects
|
particle-effects
|
target-asset
|
asset
|
files-path
|
paths
|
values
kuid <kuid:1234:123456> username "test texture group asset" trainz-build 4.6 description "test texture group" textures { 0 "textures\0albedo.texture" 1 "textures\1albedo.texture" 2 "textures\2albedo.texture" 3 "textures\0parameter.texture" 4 "textures\1parameter.texture" 5 "textures\2parameter.texture" 6 "textures\0normal.texture" 7 "textures\1normal.texture" 8 "textures\2normal.texture" }
0 { enabled 1 property-visibility 1 name "Workflow Text: " property-id "p_workflow" description "Sets the Workflow" kind "fx-replacement" fx-replacement-type "texture-replacement-texture" consist-property-sync 1 meshes "null" effects "texture-extra" asset "null" files-path "images/,.texture" values "congleton,burntisland,buxton,none" default-index 0 trigger "user" display-type "list" display-values "Congleton,Burntisland,Buxton,None" }
|
default-index
|
sound-triggers
|
trigger
|
events
|
|
display-values
|