XML:TRAC
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.
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.
Also the other female characters use those TRACs in one or another way (see TRAC hierarchy).
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
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
xml 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 |