User:Gumby/Move Tutorial: Difference between revisions

From OniGalore
Jump to navigation Jump to search
No edit summary
m (+cat)
 
Line 106: Line 106:


Also, you should keep some if not all of the sounds. (IE, "Blockbuster!" becomes "Lion Fist!"
Also, you should keep some if not all of the sounds. (IE, "Blockbuster!" becomes "Lion Fist!"
[[Category:Userspace]]

Latest revision as of 17:25, 16 April 2013

BEFORE YOU START, BACKUP ALL FILES! IN THIS EXAMPLE...
  • ONCCTCTF_swat_blackops_1.oni
  • BINACJBOMelee Profile.oni

1. Extract the ONCC for the character who has the moves you want changed.

In our example, this will be the TCTF Blackops Trooper.

For most people (assuming AE is installed), the command will be...

onisplit -extract:xml XML ..\GameDataFolder\level0_final\ONCCTCTF_swat_blackops_1.oni

2. Go into your install\XML folder and open the XML file

It should start like this:

<?xml version="1.0" encoding="utf-8"?>
<Oni Version="0.9.32.0">
   <Instance id="0" type="ONCC">
       <Physics>
...

3. Find this line:

<Animations>TRACTCTFswat_animations</Animations>

You will need to change it to the TRAC that contains the animations you want. In this example, it will be tankers.

The TRAC for tankers is "TRACTanker_animations", so the new version will read:

<Animations>TRACTanker_animations</Animations>

4. Save it and extract the "BINACJBOMelee Profile.oni" file.

 onisplit -extract:xml XML "..\GameDataFolder\level0_final\BINACJBOMelee Profile.oni"

5. Find the profile referenced in the MeleeId tags in the ONCC file, and note the number

<MeleeId>12</MeleeId>

Now go find that profile in the BINACJBOMelee and delete it. ^_^ (This is why we back up)

<Object Id="3345" Type="MELE">

           <Header>
               <Flags>0</Flags>
               <Position>115.945824 -15.00947 3.12408018</Position>
               <Rotation>0 0 0</Rotation>
           </Header>
           <OSD>
               <MeleeId>12</MeleeId>
               <Name>BLACKOPS_Swat</Name>
               <CharacterClass>TCTF_swat_blackops_1</CharacterClass>

(All gone!)

6. Using this table, find the number of a MELE profile that goes with your TRAC. In this example, I will use #15. TANKER_Hard

0 1 2 3 4
Security_Guard TCTF_Lite STRIKER_Easy THUG_Air COMGUY
STRIKER_Medium STRIKER_Hard TANKER_Easy RED_Easy NINJA_Easy
TANKER_Medium BLACKOPS_Lite BLACKOPS_Swat TCTF_Swat ELITE_Easy
TANKER_Hard RED_Medium MADBOMBER NINJABOT_Train1 SNIPER
ELITE_Medium ELITE_Hard KONOKO BARABAS Rsrch D RED_Hard
BARABAS TCTF D NINJA_Medium NINJA_Hard NINJA_Super MURO_Dream
MURO_Final MURO_Mutant GRIFFIN STRIKER_Mini COP Male
COP Female THUG_Mfg THUG_Neuro THUG_Pow THUG_Wh
NINJABOT_Train2 NINJABOT_PowPlant TANKER_Easy2 TANKER_Medium2 TANKER_Hard2
40 41 55 56 57

6. Copy this profile and place it at the end (but before the </ObjectCollection> and </Oni> tags) and change the <MeleeId> tags to be the ID of the profile you just deleted (12).

7. Change the XMLs back to .oni files and recombine...

onisplit -create ..\GameDataFolder\level0_final\ "XML\BINACJBOMelee Profile.xml"
onisplit -create ..\GameDataFolder\level0_final\ XML\ONCCTCTF_swat_blackops_1.xml
onisplit -import:nosep ..\GameDataFolder\level0_final\ ..\GameDataFolder\level0_final.dat

8. Enjoy ^_^

Notes

This example (and others) might\will cause cutscenes to be missing animations. For example, you would need to add

           <TRACAnimation>
               <Weight>100</Weight>
               <Animation>TRAMTCTFlev10_Blown</Animation>
           </TRACAnimation>


to TRACTanker_animations

In most cases there will be trails for the moves, but a few flashes might be missing.

Also, you should keep some if not all of the sounds. (IE, "Blockbuster!" becomes "Lion Fist!"