SUCCESS!!!
THAT IS HOW YOU DO IT!
WE HAVE DONE IT!
Here is the complete guide for editing animations! (a bit tedious though!) ( I should post this on the wiki )
HOW TO GET AND EDIT ANIMATIONS
- Navigate to models/player/hands/animations
- Choose which state you want to edit (Idle, Draw, Holster)
- Make a duplicate copy of the state you want to edit .dae_anim
- Rename the duplicate copy to something like "myAnimation.dae" Note, the filetype needs to be changed to dae, not dae_anim
- In Maya (I use 2008) goto File > Open Scene > Choose the file you just made, in this example "myAnimation.dae"
- You should now see Daniel's hand, click on the play button and see the animation!
- Edit it as you wish, animation is all keyframes
EXPORTING ANIMATION WHEN DONE
*** Requires ColladaMaya 0.35B Plugin***
- File > Export (Dialog) > choose "COLLADA (.dae .xml)" as the export format > Export > Overwrite the file you are editing ("myAnimation.dae" in this example)
IMPORTING ANIMATION INTO THE GAME
*** NOT DONE ***
- Change the extension of the file you created in the previous step to ".dae_anim"
- Open the original animation file that you are editing in Notepad++
- Create a new text file in Notepad++
- Copy EVERYTHING from the very beginning of the original file until you see "<library_animations>" Do not include "<library_animations>" in the selection. Copy this
- Go to the new file you created (should be blank) and paste
- Open your custom animation in Notepad++, locate the "<library_animations>" tag and select until you see "</library_animations>" (around line 4180) (include both "<library_animations>" and "</library_animations>" in the selection) and copy
- Goto the new file you created, select the very end of the file, and paste
- Goto the original file and find "</library_animations>", select everything else after this (do not include "</library_animations>" in the selection) and copy
- Goto the new file and go all the way to the end, paste
- Save the new file as something like "MyAnimation.dae" (notice the .dae)
- Open the model viewer, locate "MyAnimation.dae" and open it. Verify that it is correct
- Go back and rename your "MyAnimation.dae" to "MyAnimation.dae_anim"
- Go to the HPL Suite, open the Model Editor
- File > Open > Locate hand.ent in models/Player/hands
- Options > Animations
- Add
- Name it to whatever you like
- Press the "..." and choose your file (remember, with .dae_anim)
- Save the model and close
- Open the model viewer
- Open the hands.ent file once more
- Change the animation to your animation and make sure it is working
- Done!
Oh, forgot the proof :3