XML:TRIG: Difference between revisions
Jump to navigation
Jump to search
Paradox-01 (talk | contribs) (+ temp + cat // one more to move) |
m (copy-edit) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{XML_File_Header | type=TRIG | {{XML_File_Header | prev=TRGE | type=TRIG | next=TRMA | name=Trigger}} | ||
== | ==General information== | ||
* TRIG files are stored globally | * TRIG files are stored globally in level0_Final.dat. | ||
* TRIG files | * TRIG files were originally intended to hold the rail geometry, but the <BaseGeometry>-linked M3GM isn't used in-game; instead the trigger rail is part of the AKEV level geometry. | ||
* The | * The XML on this page is compatible with OniSplit '''v0.9.61.0'''. | ||
==File structure== | |||
== | |||
TRIG | TRIG | ||
| | | | ||
+-- M3GM <BaseGeometry> (not used | +-- M3GM <BaseGeometry> (not used; trigger rails must be part of the AKEV level geometry) | ||
| | | | ||
+-- PNTA <Points> | +-- PNTA <Points> | ||
Line 20: | Line 19: | ||
+-- TXMP <Texture> (link to external file) | +-- TXMP <Texture> (link to external file) | ||
==XML tags== | |||
{| class="wikitable" width="100%" | {| class="wikitable" width="100%" | ||
!width=150px| XML tag | !width=150px| XML tag | ||
!width=120px| | !width=120px| Content type | ||
! | ! Description | ||
|- | |- | ||
|width=200px| <Color> | |width=200px| <Color> | ||
|width=40px| color32 | |width=40px| color32 | ||
| | | RGBA value (ignored; was intended to be trigger color) | ||
|- | |- | ||
| <TimeOn> | | <TimeOn> | ||
| int32 | | int32 | ||
| | | Laser is on for this many frames (overridden by BINACJBOTrigger's <TimeOn> and <TimeOff> tags?) | ||
|- | |- | ||
| <TimeOff> | | <TimeOff> | ||
| int32 | | int32 | ||
| | | Laser is off for this many frames (overridden by BINACJBOTrigger's <TimeOn> and <TimeOff> tags?) | ||
|- | |- | ||
| <StartOffset> | | <StartOffset> | ||
Line 56: | Line 54: | ||
|- | |- | ||
| <Emitter> | | <Emitter> | ||
| char[32] | | char[32] | ||
| TRGEfile<font color="#777777">.oni</font> | | TRGEfile<font color="#777777">.oni</font> | ||
|- | |- | ||
| <Animation> | | <Animation> | ||
| char[32] | | char[32] | ||
| OBANfile<font color="#777777">.oni</font> | | OBANfile<font color="#777777">.oni</font> | ||
|- | |- | ||
Line 72: | Line 70: | ||
|} | |} | ||
==3D model== | |||
The 3D model for a laser trigger is in a TRGE, linked to from the <Emitter> tag. See [[XML:TRGE]] for extraction and creation of this geometry. | |||
{{XML}} | {{XML}} |
Latest revision as of 14:45, 30 March 2021
TRIG : Trigger | ||
---|---|---|
XML
TRGE << Other file types >> TRMA |
General information
- TRIG files are stored globally in level0_Final.dat.
- TRIG files were originally intended to hold the rail geometry, but the <BaseGeometry>-linked M3GM isn't used in-game; instead the trigger rail is part of the AKEV level geometry.
- The XML on this page is compatible with OniSplit v0.9.61.0.
File structure
TRIG | +-- M3GM <BaseGeometry> (not used; trigger rails must be part of the AKEV level geometry) | +-- PNTA <Points> +-- VCRA <VertexNormals> +-- VCRA <FaceNormals> +-- TXCA <TextureCoordinates> +-- IDXA <TriangleStrips> +-- IDXA <FaceNormalIndices> +-- TXMP <Texture> (link to external file)
XML tags
XML tag | Content type | Description |
---|---|---|
<Color> | color32 | RGBA value (ignored; was intended to be trigger color) |
<TimeOn> | int32 | Laser is on for this many frames (overridden by BINACJBOTrigger's <TimeOn> and <TimeOff> tags?) |
<TimeOff> | int32 | Laser is off for this many frames (overridden by BINACJBOTrigger's <TimeOn> and <TimeOff> tags?) |
<StartOffset> | ? | ? |
<AnimScale> | int32 | ? |
<BaseGeometry> | link | M3GM instance number (#N) |
<BaseGunkFlags> | flag | ? |
<Emitter> | char[32] | TRGEfile.oni |
<Animation> | char[32] | OBANfile.oni |
<ActiveSound> | char[32] | OSBDfile.amb.oni |
<TriggerSound> | char[32] | OSBDfile.imp.oni |
3D model
The 3D model for a laser trigger is in a TRGE, linked to from the <Emitter> tag. See XML:TRGE for extraction and creation of this geometry.