XML:TRIG: Difference between revisions

From OniGalore
m (copy-edit)
(clarified fields that are ignored; applied Tree list to hierarchy)
 
Line 7: Line 7:


==File structure==
==File structure==
TRIG
{{Tree list}}
  |
* TRIG
  +-- M3GM <BaseGeometry> (not used; trigger rails must be part of the AKEV level geometry)
** M3GM <BaseGeometry> (not used; trigger rails must be part of the AKEV level geometry)
        |
*** PNTA <Points>
        +-- PNTA <Points>
*** VCRA <VertexNormals>
        +-- VCRA <VertexNormals>
*** VCRA <FaceNormals>
        +-- VCRA <FaceNormals>
*** TXCA <TextureCoordinates>
        +-- TXCA <TextureCoordinates>
*** IDXA <TriangleStrips>
        +-- IDXA <TriangleStrips>
*** IDXA <FaceNormalIndices>
        +-- IDXA <FaceNormalIndices>
*** TXMP <Texture> (link to external file)
        +-- 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
| RGBA value (ignored; was intended to be trigger color)
| Ignored
|-
|-
| <TimeOn>
| <TimeOn>
| int32
| int32
| Laser is on for this many frames (overridden by BINACJBOTrigger's <TimeOn> and <TimeOff> tags?)
| Ignored
|-
|-
| <TimeOff>
| <TimeOff>
| int32
| int32
| Laser is off for this many frames (overridden by BINACJBOTrigger's <TimeOn> and <TimeOff> tags?)
| 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 modding tips
  • See HERE to start learning about XML modding.
  • See HERE if you are searching for information on how to handle object coordinates.
  • See HERE for some typical modding errors and their causes.
XML.png
XML

TRGE << Other file types >> TRMA

switch to OBD page

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

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.