XML:TXMP

From OniGalore
Revision as of 19:24, 4 November 2012 by Paradox-01 (talk | contribs) (Created page with "__TOC__ {{Template:XMLModdingHints}} {| border=0 cellspacing=20 cellpadding=0 style="margin-left:auto; margin-right:auto" | The xml code on this page is compatible with onisp...")
(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.61.0


normal texture animated texture reflective texture
<?xml version="1.0" encoding="utf-8"?>
<Oni>
   <Texture>
       <Flags>...</Flags>
       <Format>...</Format>
       <Image>...</Image>
   </Texture>
</Oni>
<?xml version="1.0" encoding="utf-8"?>
<Oni>
   <Texture>
       <Flags>...</Flags>
       <Format>...</Format>
       <Speed>...</Speed>
       <Image>...</Image>
       <Image>...</Image>
   </Texture>
</Oni>
<?xml version="1.0" encoding="utf-8"?>
<Oni>
   <Texture>
       <Flags>...</Flags>
       <Format>...</Format>
       <EnvMap>...</EnvMap>
       <Image>...</Image>
   </Texture>
</Oni>


XML tag content type description
<?xml version="1.0" encoding="utf-8"?> float, flag
<Oni> -
<Texture> -
<Flags> flag ARGB formats are used for reflective textures.

ARGB8888 can be used only if you use an updated engine. (Mac users also need to swap the color channels.)

XML flags command line flags
up to onisplit v0.9.52.0 for higher versions up to onisplit v0.9.52.0 for higher versions
RGB888 BGR bgr32 bgr
ARGB8888 RGBA bgra32 rgba
RGB555 BGR555 bgr555
ARGB5551 BGRA5551 bgra5551
ARGB4444 BGRA4444 bgra4444
DXT1 dxt1
<Format> flag ShieldEffect, InvisibilityEffect and DaodanEffect are special flags, they can only be used for TXMPshield, TXMPinvis and TXMPDAODAN_SHIELD. The usage of these textures is hardcoded.
None
HasMipMaps
DisableUWrap
DisableVWrap
Unknown0010
AnimUseLocalTime
AdditiveBlend (makes black texture parts transparent in-game)
AnimBackToBack
AnimRandom
AnimIgnoreGlobalTime
ShieldEffect
InvisibilityEffect
DaodanEffect
<Speed> integer This tag is used if xml file is meant to create an animated texture. In that case you use multiple <Image> tags.
<EnvMap> link TXMPname (file suffix .oni/.xml not allowed)

This tag is used if xml file is meant to create an reflective texture. The file suffixes like .tga or .oni is not used in the EnvMap link.

<Image> link Choose between tga/png/dds.
TXMPname.tga
TXMPname.png
TXMPname.dds