XML:TRIG: Difference between revisions
Jump to navigation
Jump to search
Paradox-01 (talk | contribs) m (Created page with "__TOC__ {{Template:XMLModdingHints}} {| border=0 cellspacing=20 cellpadding=0 align=center | The xml code on this page is compatible with onisplit '''v0.9.61.0''' |} '''general...") |
m (copy-edit) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{XML_File_Header | prev=TRGE | type=TRIG | next=TRMA | name=Trigger}} | |||
==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'''. | |||
* TRIG files are stored globally | |||
* TRIG files | |||
''' | |||
==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 25: | Line 18: | ||
+-- IDXA <FaceNormalIndices> | +-- IDXA <FaceNormalIndices> | ||
+-- TXMP <Texture> (link to external file) | +-- TXMP <Texture> (link to external file) | ||
==XML tags== | ==XML tags== | ||
{| class="wikitable" width="100%" | |||
=== | !width=150px| XML tag | ||
!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 63: | 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 79: | 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}} | |||
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.