XML:TRIG: Difference between revisions
m (copy-edit) |
(clarified fields that are ignored; applied Tree list to hierarchy) |
||
Line 7: | Line 7: | ||
==File structure== | ==File structure== | ||
{{Tree list}} | |||
* 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) | |||
{{Tree list|end}} | |||
==XML tags== | ==XML tags== | ||
Many tags below were never implemented at the class level, only at the BINA/OBJC level, so see [[XML:BINA/OBJC/TRIG]] for those fields if you want to know what they do. | |||
{| class="wikitable" width="100%" | {| class="wikitable" width="100%" | ||
!width=150px| XML tag | !width=150px| XML tag | ||
Line 27: | Line 29: | ||
|width=200px| <Color> | |width=200px| <Color> | ||
|width=40px| color32 | |width=40px| color32 | ||
| | | Ignored | ||
|- | |- | ||
| <TimeOn> | | <TimeOn> | ||
| int32 | | int32 | ||
| | | Ignored | ||
|- | |- | ||
| <TimeOff> | | <TimeOff> | ||
| int32 | | int32 | ||
| | | Ignored | ||
|- | |- | ||
| <StartOffset> | | <StartOffset> | ||
| ? | | ? | ||
| | | Ignored | ||
|- | |- | ||
| <AnimScale> | | <AnimScale> | ||
| int32 | | int32 | ||
| | | Ignored | ||
|- | |- | ||
| <BaseGeometry> | | <BaseGeometry> | ||
Line 51: | Line 53: | ||
| <BaseGunkFlags> | | <BaseGunkFlags> | ||
| flag | | flag | ||
| | | Ignored | ||
|- | |- | ||
| <Emitter> | | <Emitter> |
Latest revision as of 22:10, 20 May 2025
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)
- M3GM <BaseGeometry> (not used; trigger rails must be part of the AKEV level geometry)
XML tags
Many tags below were never implemented at the class level, only at the BINA/OBJC level, so see XML:BINA/OBJC/TRIG for those fields if you want to know what they do.
XML tag | Content type | Description |
---|---|---|
<Color> | color32 | Ignored |
<TimeOn> | int32 | Ignored |
<TimeOff> | int32 | Ignored |
<StartOffset> | ? | Ignored |
<AnimScale> | int32 | Ignored |
<BaseGeometry> | link | M3GM instance number (#N) |
<BaseGunkFlags> | flag | Ignored |
<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.