XML:TRAC: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(Created page with "{{Template:XMLModdingHints}} {| border=0 cellspacing=20 cellpadding=0 style="margin-left:auto; margin-right:auto" | The xml code on this page is compatible with onisplit '''v0...")
 
mNo edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:XMLModdingHints}}
{{XML_File_Header | prev=SUBT | type=TRAC | next=TRAM | name=Totoro Animation Collection}}
{| border=0 cellspacing=20 cellpadding=0 style="margin-left:auto; margin-right:auto"
| The xml code on this page is compatible with onisplit '''v0.9.61.0'''
|}
 
'''general notes'''
* Original TRAC*.oni files are located under following path: Oni\Edition\GameDataFolder\level0_Final
* Note from ''[[Making a mod package]]'' page:
: ''Be very careful when replacing (not adding) TRAC, they can be a bit touchy.<br>With TRAC, you must include all of the children of the TRAC you are adding.''
* Note that the current AE stores special '''AI TRACs''' for Konoko.<br>Also the other female characters use those TRACs in one or another way (see [[#TRAC_hierarchy|TRAC hierarchy]]).<br>So you probably would like to know:
: Oni\Edition\install\packages\Globalize\oni\level0_Final\level0_Animations\TRAC prep\level0_TRAC
: Oni\Edition\install\packages\Globalize\oni\level0_Final\level0_Characters\Glass
 


'''TRAC hierarchy'''
==General information==
* The XML on this page was tested with OniSplit '''v0.9.61.0'''.
* TRAC files in vanilla Oni are a mixture of global and local, located through all level''x''_Final.dat files, however in the AE they are all globalized.
* Note from the ''[[Making a mod package]]'' page:
: '''''Be very careful when replacing (not adding) TRAC. You must include all of the child TRACs of the TRAC you are adding.'''''


As you can see, there are basically two families of animation collections: female and male.
==TRAC hierarchy==
There are basically two families of animation collections: female and male. The full pool of available animations for a character is assembled from "parent" and "child" collections. This can cover more than one child. For example, Mutant Muro uses COMGUYidle1 which is located inside TRACcomguy_animations.oni. So Mutant Muro got his animation through two other TRAC files.


The full pool of available animations is put together of "parant" and "child" collections.
On the other hand, an animation from the parent TRAC (e.g. striker_animations) will be overridden if the child TRAC (e.g. TCTFswat_animations) provides an animation of the same state, type and variant. For example, a TCTF SWAT can do a TCTF SWAT punch instead of a Striker punch.


This can cover more than one child. For example, Mutant Muro uses COMGUYidle1 which is located inside TRACcomguy_animations.oni<br>So Mutant Muro got ''his'' animation ''through'' two other TRAC files.


On the other hand, every animation from the parent TRAC (e.g striker) become ''overruled'' if the child TRAC (e.g. TCTFswat) provides an animation of the same state/type/varient. So, for example, a TCTF swat can do a TCTF swat punch instead of a striker punch.
'''Female TRAC hierarchy'''
TRAC<font color="#FF0000">'''konokocore'''</font>_animations.oni
{{Tree list}}
  |
*TRAC<font color="#FF0000">'''konokocore'''</font>_animations.oni
  +-------- TRAC<font color="#FF0000">'''Shinzom'''</font>_animations.oni
**TRAC<font color="#FF0000">'''Shinzom'''</font>_animations.oni
  |
**TRAC<font color="#FF0000">'''shinatama'''</font>_animations.oni
  +-------- TRAC<font color="#FF0000">'''shinatama'''</font>_animations.oni
**TRAC<font color="#FF0000">'''red'''</font>_animations.oni
  |
**TRAC<font color="#FF0000">'''konokolev1'''</font>_animations.oni
  +-------- TRAC<font color="#FF0000">'''red'''</font>_animations.oni
***TRAC<font color="#FF0000">'''konoko'''</font>_animations.oni
  |
****TRAC<font color="#FF0000">'''gen_f'''</font>_animations.oni
  +-------- TRAC<font color="#FF0000">'''konokolev1'''</font>_animations.oni
{{Tree list/end}}
              |
              +-------- TRAC<font color="#FF0000">'''konoko'''</font>_animations.oni
                          |
                          +-------- TRAC<font color="#FF0000">'''gen_f'''</font>_animations.oni
TRAC<font color="#FF0000">'''strikercore'''</font>_animations.oni
  |
  +-------- TRAC<font color="#FF0000">'''striker'''</font>_animations.oni
  |          |
  |          +-------- TRAC<font color="#FF0000">'''TCTFswat'''</font>_animations.oni
  |
  +-------- TRAC<font color="#FF0000">'''elite'''</font>_animations.oni
  |          |
  |          +-------- TRAC<font color="#FF0000">'''barabus'''</font>_animations.oni
  |
  +-------- TRAC<font color="#FF0000">'''ninja'''</font>_animations.oni
  |
  +-------- TRAC<font color="#FF0000">'''comguy'''</font>_animations.oni
              |
              +-------- TRAC<font color="#FF0000">'''gen_m'''</font>_animations.oni
              |
              +-------- TRAC<font color="#FF0000">'''doctor'''</font>_animations.oni
              |
              +-------- TRAC<font color="#FF0000">'''security'''</font>_animations.oni
              |
              +-------- TRAC<font color="#FF0000">'''griffin'''</font>_animations.oni
              |
              +-------- TRAC<font color="#FF0000">'''thug'''</font>_animations.oni
              |
              +-------- TRAC<font color="#FF0000">'''Tanker'''</font>_animations.oni
              |
              +-------- TRAC<font color="#FF0000">'''muro'''</font>_animations.oni
                          |
                          +---------- TRAC<font color="#FF0000">'''mutantmuro'''</font>_animations.oni




'''Male TRAC hierarchy'''
{{Tree list}}
*TRAC<font color="#FF0000">'''strikercore'''</font>_animations.oni
**TRAC<font color="#FF0000">'''striker'''</font>_animations.oni
***TRAC<font color="#FF0000">'''TCTFswat'''</font>_animations.oni
**TRAC<font color="#FF0000">'''elite'''</font>_animations.oni
***TRAC<font color="#FF0000">'''barabus'''</font>_animations.oni
**TRAC<font color="#FF0000">'''ninja'''</font>_animations.oni
**TRAC<font color="#FF0000">'''comguy'''</font>_animations.oni
***TRAC<font color="#FF0000">'''gen_m'''</font>_animations.oni
***TRAC<font color="#FF0000">'''doctor'''</font>_animations.oni
***TRAC<font color="#FF0000">'''security'''</font>_animations.oni
***TRAC<font color="#FF0000">'''griffin'''</font>_animations.oni
***TRAC<font color="#FF0000">'''thug'''</font>_animations.oni
***TRAC<font color="#FF0000">'''Tanker'''</font>_animations.oni
***TRAC<font color="#FF0000">'''muro'''</font>_animations.oni
****TRAC<font color="#FF0000">'''mutantmuro'''</font>_animations.oni
{{Tree list/end}}


'''xml structure'''
==File structure==
  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni>
  <Oni>
Line 80: Line 55:
  </Oni>
  </Oni>


'''''[...]''''' means at least one "block". (Block start and end marked in green). Paste your wanted blocks into the place of "'''''[...]'''''".
'''''[...]''''' means at least one <TRACAnimation> block. (Block start and end marked in green below.)


 
'''Example'''
'''example'''
             <font color="#00AA00"><TRACAnimation></font>
             <font color="#00AA00"><TRACAnimation></font>
                 <Weight>100</Weight>
                 <Weight>100</Weight>
Line 89: Line 63:
             <font color="#00AA00"></TRACAnimation></font>
             <font color="#00AA00"></TRACAnimation></font>


 
==XML tags==
'''XML tags'''
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=100px| XML tag
!width=100px| XML tag
!width=100px| content type
!width=100px| Content type
! description
! Description
|-
|-
|valign=top| <Weight>
|valign=top| <Weight>
|valign=top| integer
|valign=top| integer
| A higher value indicates that this animation has a better chance to be picked up if there are multiple animations possible for the same (from state, animation type, varient, first level) pair.
| A higher value indicates that this animation has a better chance to be selected if there are multiple animations possible for the same combination of "from state", animation type and variant. For instance, Konoko's sneeze is an idle animation but appears very rarely because the weight value is very low. The same goes for a certain ninja taunt.
 
E.g. Konoko's sneezing is an idle animation but appears very rarely because the weight value is very low. Same for a certain ninja taunt, etc.
|-
|-
|valign=top| <Animation>
|valign=top| <Animation>
|valign=top| link
|valign=top| link
| TRAM''name'', e.g. TRAMBARABpowerup, file suffix .oni/.xml is not allowed
| '''[[XML:TRAM|TRAM]]'''''name'', e.g. TRAMBARABpowerup, file suffix .oni/.xml is not allowed.
|}
|}
{{XML}}

Latest revision as of 19:25, 6 December 2023

TRAC : Totoro Animation Collection
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

SUBT << Other file types >> TRAM

switch to OBD page

General information

  • The XML on this page was tested with OniSplit v0.9.61.0.
  • TRAC files in vanilla Oni are a mixture of global and local, located through all levelx_Final.dat files, however in the AE they are all globalized.
  • Note from the Making a mod package page:
Be very careful when replacing (not adding) TRAC. You must include all of the child TRACs of the TRAC you are adding.

TRAC hierarchy

There are basically two families of animation collections: female and male. The full pool of available animations for a character is assembled from "parent" and "child" collections. This can cover more than one child. For example, Mutant Muro uses COMGUYidle1 which is located inside TRACcomguy_animations.oni. So Mutant Muro got his animation through two other TRAC files.

On the other hand, an animation from the parent TRAC (e.g. striker_animations) will be overridden if the child TRAC (e.g. TCTFswat_animations) provides an animation of the same state, type and variant. For example, a TCTF SWAT can do a TCTF SWAT punch instead of a Striker punch.


Female TRAC hierarchy

  • TRACkonokocore_animations.oni
    • TRACShinzom_animations.oni
    • TRACshinatama_animations.oni
    • TRACred_animations.oni
    • TRACkonokolev1_animations.oni
      • TRACkonoko_animations.oni
        • TRACgen_f_animations.oni


Male TRAC hierarchy

  • TRACstrikercore_animations.oni
    • TRACstriker_animations.oni
      • TRACTCTFswat_animations.oni
    • TRACelite_animations.oni
      • TRACbarabus_animations.oni
    • TRACninja_animations.oni
    • TRACcomguy_animations.oni
      • TRACgen_m_animations.oni
      • TRACdoctor_animations.oni
      • TRACsecurity_animations.oni
      • TRACgriffin_animations.oni
      • TRACthug_animations.oni
      • TRACTanker_animations.oni
      • TRACmuro_animations.oni
        • TRACmutantmuro_animations.oni

File structure

<?xml version="1.0" encoding="utf-8"?>
<Oni>
   <TRAC id="0">
       <ParentCollection>TRACelite_animations</ParentCollection>
       <Animations>
           [...]
       </Animations>
   </TRAC>
</Oni>

[...] means at least one <TRACAnimation> block. (Block start and end marked in green below.)

Example

           <TRACAnimation>
               <Weight>100</Weight>
               <Animation>TRAMBARABpowerup</Animation>
           </TRACAnimation>

XML tags

XML tag Content type Description
<Weight> integer A higher value indicates that this animation has a better chance to be selected if there are multiple animations possible for the same combination of "from state", animation type and variant. For instance, Konoko's sneeze is an idle animation but appears very rarely because the weight value is very low. The same goes for a certain ninja taunt.
<Animation> link TRAMname, e.g. TRAMBARABpowerup, file suffix .oni/.xml is not allowed.