|
|
(12 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | ==config.txt: Tags & Containers==
| + | Help and Information on AJS Junction Kit Mark 2 |
− | * This is a list of tags and containers which relate to fixed track junctions.
| + | Under Construction |
− | * Tags in bold type are essential for correct operation of the Library.
| + | |
− | {{TableHeader|width=95%|margin=15px}}
| + | |
− | |-
| + | |
− | |width="150"|Tag
| + | |
− | |width="150"|Value
| + | |
− | |Description
| + | |
− | |-
| + | |
− | |'''kind'''
| + | |
− | |'''fixedtrack'''
| + | |
− | |This is mandatory, fixed junctions will not work as any other asset kind.
| + | |
− | |-
| + | |
− | |'''use-named-track'''
| + | |
− | |'''1'''
| + | |
− | |This tag enables messages to be generated for scenery triggers attached to the junctions
| + | |
− | |-
| + | |
− | |use-gradient-track
| + | |
− | |1
| + | |
− | |This affects the way that TRS handles height adjustments.
| + | |
− | |-
| + | |
− | |rotate-yz-range
| + | |
− | | -10,10
| + | |
− | |Allows junctions to be rolled to align with a grade. This is optional but if you wish to implement it you will need to align your models along the X axis in GMax, horizontally on the 'page'
| + | |
− | |-
| + | |
− | |rollstep
| + | |
− | |0.1
| + | |
− | |Defines the minimum angular increment when junctions are rolled.
| + | |
− | |-
| + | |
− | |'''script-include-table {'''<br> '''0'''<br>'''}'''
| + | |
− | |'''<kuid:122285:79001>'''<br>
| + | |
− | |This is a pointer to the asset containing the script referenced by JKStub.gs.
| + | |
− | |-
| + | |
− | |'''script'''
| + | |
− | |'''"JKStub"'''
| + | |
− | |The script file which you should drop into your asset folder
| + | |
− | |-
| + | |
− | |'''class'''
| + | |
− | |'''"JKStub"'''
| + | |
− | |The name of the script class within this file
| + | |
− | |-
| + | |
− | |'''kuid-table {'''<br>
| + | |
− | '''codelib'''<br>
| + | |
− | '''utility'''<br>
| + | |
− | '''}'''
| + | |
− | |'''<kuid:122285:79000><br><kuid:122285:79001>'''<br>
| + | |
− | |codelib is the script library.<br><br>utility refers to the externally included support script.
| + | |
− | |-
| + | |
− | |'''extensions {'''<br>
| + | |
− | '''jk2-122285 {'''<br>
| + | |
− | '''junction-type'''<br>
| + | |
− | default-state<br>
| + | |
− | '''}'''<br>
| + | |
− | '''}'''
| + | |
− | | <br>
| + | |
− | <br>
| + | |
− | integer<br>
| + | |
− | integer<br>
| + | |
− | <br>
| + | |
− | <br>
| + | |
− | |junction-type (see below) defines the layout and behaviour of the junction.<br><br>
| + | |
− | default-state (see below) defines the initial direction of the junction when first placed in Surveyor, this defaults to 0 if the tag is not present. The state can always be altered via the object property interface.
| + | |
− | |}<br>
| + | |
| | | |
− | ==junction-type codes==
| |
− | * A correct entry for this tag in the extensions table is essential for the script to recognise what actions need to be taken in response to conditions encountered.
| |
− | * The sub-table should remain as jk2-122285, do not alter it to your own kuid.
| |
− | {{TableHeader|width=95%|margin=15px}}
| |
− | |-
| |
− | |width="150"|Value
| |
− | |Description
| |
− | |-
| |
− | |0
| |
− | |Fixed track object with no animations, typically this would be a spacer which has no animations but which which needs scripted ability (such as ballast hiding) to match other assets.
| |
− | |-
| |
− | |1
| |
− | |Diamond crossing
| |
− | |-
| |
− | |2
| |
− | |Catch point (Derail)
| |
− | |-
| |
− | |3
| |
− | |Two way point
| |
− | |-
| |
− | |4
| |
− | |Three way point
| |
− | |-
| |
− | |5
| |
− | |Single slip
| |
− | |-
| |
− | |6
| |
− | |Double slip
| |
− | |-
| |
− | |7
| |
− | |Double crossover
| |
− | |-
| |
− | |
| |
− | |Other types may be defined and added to this list as the project progresses.
| |
− | |}<br>
| |
| | | |
− | ==default-state codes==
| + | [[Junction Kit Configuration]] Notes on configuration of Assets |
− | * These are not always the same as the junction direction constants defined in TRS.
| + | |
− | * For multi junction objects, to allow the script to understand which node is which they must be defined in config.txt in the same order as set out in the diagrams below.
| + | |
− | {{TableHeader|width=95%|margin=15px}}
| + | |
− | |-
| + | |
− | |width="150"|junction-type
| + | |
− | |Legal Values
| + | |
− | |-
| + | |
− | |0
| + | |
− | |Not relevant
| + | |
− | |-
| + | |
− | |1
| + | |
− | |To be developed
| + | |
− | |-
| + | |
− | |2
| + | |
− | |0 = left<br>1 = right
| + | |
− | |-
| + | |
− | |3
| + | |
− | |0 = left<br>1 = right
| + | |
− | |-
| + | |
− | |4
| + | |
− | |0 = left<br>1 = centre<br>2 = right
| + | |
− | |-
| + | |
− | |5
| + | |
− | |[[Image:SingleSlip.jpg]]
| + | |
− | |-
| + | |
− | |6
| + | |
− | |[[Image:DoubleSlip.jpg]]
| + | |
− | |-
| + | |
− | |7
| + | |
− | |[[Image:DoubleCrossover.jpg]]
| + | |
− | |}
| + | |
− | | + | |
− | | + | |
− | ==mesh table containers==
| + | |
− | * The library deals with animations and hiding of meshes based on the mesh names.
| + | |
− | * The actual content of the mesh containers is of no relevance to the script except where noted below.
| + | |
− | * The following special names are recognised.
| + | |
− | * Additional special mesh names will be added as the project develops.
| + | |
− | {{TableHeader|width=95%|margin=15px}}
| + | |
− | |-
| + | |
− | |width="150"|Mesh Name
| + | |
− | |Script Action
| + | |
− | |-
| + | |
− | |template#
| + | |
− | |These are marker meshes which can be used for alignment or simply to indicate the location of node 1. You can provide any number of thesem starting with template1, template2,...,templaten. As long as there are no breaks in the numeric sequence each mesh will be displayed or hidden as appropriate. These meshes are only ever visible in Surveyor.
| + | |
− | |-
| + | |
− | |blade#
| + | |
− | |These should contain mesh and animation references. Use blade1 for meshes attached to the first node and so on. The library supports both *.im and *.lm meshes.
| + | |
− | |-
| + | |
− | |ballast#
| + | |
− | |If meshes named ballast are supplied they can be hidden via a property object option. Again you can serialise the containers to have the script act on more than one mesh.
| + | |
− | |}
| + | |