Really early stuff, but promising nonetheless.
First, decompress it with this tool - NBA 2K12 IFF File Decompressor, not the mod tool (it will crash)
After that, open it in the mod tool - NBA2KX Mod Tool (2K12 Supported)
There are no textures to edit, no models to export, even though this is opened in the mod tool we are only using it to manually find and export the information for specific animations.
I am providing two lists of all the animations in this file. One is sorted by the number in the mod tool, and the other is alphabetical, which makes finding certain animations and types easier.
So let's find the Elbow Hang dunk from NBA 2K7 (it hasn't been usable in any game since then)
Load up that list, and search for "elbow", and look for the following
- Code: Select all
As you can see, all the animations have a _R and _L variation, or a normal name and one with a _M after it. This is for mirroring the animation for left handed players. We want to edit the larger of the two animations, since the other only contains the parameters needed to mirror the original.
So find the 3734 animation (the larger one) with the mod tool, and hit export file, NOT export res.
This will save an N2KF file. What we just did was export the animation from the bigger file. So literally we can do a search for the n2kf file inside the larger nba_animations.iff and find it completely intact.
To find the specific animation in the big file, do a find command for something in the header of the n2kf file.
The highlighted part is usually what I search for to find the animations in the big file. The blue section is where the animation information is.
So that is how you can find specific animations in this massive 50mb file. Now comes the part that I do not know very well.
What I did with that video above was insert part of the elbow hang dunk over all of the "TP" dunks, hoping that it would overwrite the dunks in the TP signature package. Unfortunately there is no good way to find specific dunks, and I couldn't find any of the "specialty" dunks which would have made this a lot easier. There is no file like the NBA Live AIACT that tells us what animation is lined up with what package.
Anyway, all I did was take some of the data from the elbow dunk, and inserted it in over those TP dunks in the big file.
REMEMBER, you cannot change the filesize or else it will crash. So I couldn't import over the entire animation, only a section of it. Remember, animations all have different sizes and lengths so this hex way of doing things isn't pretty.
The size can also be seen for each animation's hex size in the mod tool
There is no good way to find another animation with that same size yet to directly replace it, but that is still good information to know.
So yea, I don't really have the time to take this much further. I'm hoping that this information can help someone figure this out completely, make a tool, or simply flesh out this tutorial more. Best of luck