XML:DOOR: Difference between revisions

From OniGalore
m (Iritscen moved page OBD talk:DOOR to XML:DOOR without leaving a redirect)
mNo edit summary
Line 1: Line 1:
{{XML_File_Header | type=DOOR | prev=CRSA | next=DPge | name=Door }}
__TOC__
__TOC__
{{Template:XMLModdingHints}}
{| border=0 cellspacing=20 cellpadding=0 align=center
| The xml code on this page is compatible with onisplit '''v0.9.68.0'''
|}


'''general information'''
'''general information'''
* The xml code on this page was extracted with onisplit '''v0.9.68.0'''
* DOOR files are stored globally (in edition/GameDataFolder/level0_Final)
* DOOR files are stored globally (in edition/GameDataFolder/level0_Final)
* DOOR files are used by BINACJBODOOR <Class>
* DOOR files are used by [[XML:BINA/OBJC/DOOR|BINACJBODOOR]] <Class>




Line 73: Line 71:
|-
|-
| <AISoundDistance>
| <AISoundDistance>
| float ?
| float
| AI sound volume ?
| AI sound volume ?
|-
|-
| <OpenSound>
| <OpenSound>
| link
| char[32]
| <font color="#777777">OSBD</font>file<font color="#777777">.imp.oni (file prefix and suffix not used)</font>, 32 letters allowed
| <font color="#777777">OSBD</font>file<font color="#777777">.imp.oni (file prefix and suffix not used)</font>, 32 letters allowed
|-
|-
| <CloseSound>
| <CloseSound>
| link
| char[32]
| <font color="#777777">OSBD</font>file<font color="#777777">.imp.oni (file prefix and suffix not used)</font>, 32 letters allowed
| <font color="#777777">OSBD</font>file<font color="#777777">.imp.oni (file prefix and suffix not used)</font>, 32 letters allowed
|}
|}
Line 87: Line 85:


===OFGA===
===OFGA===
{|class="wikitable" width="100%"
Read on '''[[XML:OFGA|HERE]]'''.
!width=200px| tag
!width=100px| type
! description
|-
| width=200px| <EnvParticle>
| width=40px| link ?
| if used, the link would be probably be equal to ONLV => ENVP => <Tag>...</Tag>
|-
| <Elements>
| -
|
|-
| <OFGAElement>
| -
| see [[OBD_talk:OFGA#XML|HERE]] for more information (question: does the DOOR file contain <GunkFlags> ?)
|-
| <Geometry>
| link
| M3GM instance number (#N)
|}




Line 134: Line 112:
Remember to change the links (#N) and instance IDs of the new data.
Remember to change the links (#N) and instance IDs of the new data.
-->
-->
{{XML}}

Revision as of 11:26, 13 April 2013

DOOR : Door
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

CRSA << Other file types >> DPge

switch to OBD page

general information

  • The xml code on this page was extracted with onisplit v0.9.68.0
  • 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> char[32] OSBDfile.imp.oni (file prefix and suffix not used), 32 letters allowed
<CloseSound> char[32] OSBDfile.imp.oni (file prefix and suffix not used), 32 letters allowed


OFGA

Read on HERE.


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

[...]