XML:DOOR

From OniGalore
Revision as of 18:31, 4 August 2012 by Paradox-01 (talk | contribs) (xml)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:XMLModdingHints

The xml code on this page is compatible with onisplit v0.9.68.0

general information

  • DOOR files are stored globally (in edition/GameDataFolder/level0_Final)
  • DOOR files are used by BINACJBODOOR <Class>


file structure

DOOR
  |
  +-- OFGA
        |
        +-- M3GM (holds <Texture> TXMP link to external file)
              |
              +-- PNTA <Points>
              +-- VCRA <VertexNormals>
              +-- VCRA <FaceNormals>
              +-- TXCA <TextureCoordinates>
              +-- IDXA <TriangleStrips>
              +-- IDXA <FaceNormalIndices>
       


XML tags

DOOR

tag type description
<Geometries> - contains 2 <Link> tags but only one is used (is this correct for all DOOR files?)
<Link> link OFGA instance number (#N)
<Animation> link OBANfile.oni (file suffix not used)
<AISoundAttenuation> float passed sound "attenuation", exact formula unknown
<AISoundAllow> flag AI sound types which are allowed to pass:
All
Combat
Gunfire
None
<AISoundType> flag AI sound types:
Unimportant
Interesting
Danger
Melee
Gunfire
None
<AISoundDistance> float ? AI sound volume ?
<OpenSound> link OSBDfile.imp.oni (file prefix and suffix not used), 32 letters allowed
<CloseSound> link OSBDfile.imp.oni (file prefix and suffix not used), 32 letters allowed


OFGA

tag type description
<EnvParticle> link ? if used, the link would be probably be equal to ONLV => ENVP => <Tag>...</Tag>
<Elements> -
<OFGAElement> - see HERE for more information (question: does the DOOR file contain <GunkFlags> ?)
<Geometry> link M3GM instance number (#N)


M3GM export/import

export

You would need to cut the DOOR instance so that only the M3GM and its connected instances remain and convert it to oni.

onisplit -extract:xml output_folder input_folder\DOORfile.oni
onisplit -create output_folder input_folder\cutfile.xml

Convert the M3GMfile.oni to obj:

onisplit -extract:obj output_folder input_folder\M3GMfile.oni


import

[...]