XML:TRAC

From OniGalore
Revision as of 15:16, 21 April 2013 by Paradox-01 (talk | contribs) (let's say "tested" instead of "compatible" so make people less afraid that there onisplit version works)
Jump to navigation Jump to search
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

SNDD << Other file types >> TRAM

switch to OBD page

general information

  • The xml code on this page is tested with onisplit v0.9.61.0
  • Original TRAC*.oni files are located under following path: AE/AEInstaller/vanilla/level0_Final.dat
  • Note from Making a mod package page:
Be very careful when replacing (not adding) TRAC, they can be a bit touchy.
With TRAC, you must include all of the children of the TRAC you are adding.
  • The 2010 AE stores special AI TRACs for Konoko.
    Also the other female characters use those TRACs in one way or another (see TRAC hierarchy).
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

As you can see, there are basically two families of animation collections: female and male.

The full pool of available animations is put together of "parant" 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, 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.

TRACkonokocore_animations.oni
  |
  +-------- TRACShinzom_animations.oni
  |
  +-------- TRACshinatama_animations.oni
  |
  +-------- TRACred_animations.oni
  |
  +-------- TRACkonokolev1_animations.oni
              |
              +-------- TRACkonoko_animations.oni
                          |
                          +-------- TRACgen_f_animations.oni


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 "block". (Block start and end marked in green). Paste your wanted blocks into the place of "[...]".


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 picked up if there are multiple animations possible for the same (from state, animation type, varient, first level) pair.

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.

<Animation> link TRAMname, e.g. TRAMBARABpowerup, file suffix .oni/.xml is not allowed