PSA and PSK binary files contain the raw animation and mesh information used to import skeletal animation art into the Unreal Engine. The PSA file contains the bone names, one or more sequence names, and for each sequence, its frame number N, and tracks of N rotations and N translations for each bone. In Mass Effect 3, PSA data is included inside PCC files and can be exported using PCC Editor 2. To learn how to export and edit PSA data from in-game files read the PSA Editing Tutorial. This page will be concerned with the specifics of the PSA binary format.
File Structure[edit | edit source]
PSA files are structured as a collection if header-data pairs, of which there are four known types: Head, Bones, Info, and Keys.
The Chunk Header contains information about its companion data chunk: ID, type, size and count. There are four possible IDs, corresponding to each of the eight mesh objects:
- ANIMHEAD: Does not contain a data pair.
- BONENAMES: Array with the bone names.
- ANIMINFO: Array of animation sequence info chunks.
- ANIMKEYS: Array of raw keys.
Each header defined as a 32 byte struct:
The Head data chunk is defined by its header as having zero size and zero elements (count). Since it contains no information, it derives that only the header chunk has useful meaning. The header chunk may act as a file header, but does not necessarily have to be the first chunk in the file.
The Bones data chunk contains an array of bone names. Each bone is defined as a 100 bytes struct.
|16||4 * Int32||Padding|
The Info data chunk contains an array of animation sequence info chunks. Each sequence is defined as a 228 bytes struct:
|4||Int32||First raw frame|
|4||Int32||Raw frame count|
The raw Key Array holds all the keys for all the bones in all the specified sequences. For each info sequence in the Info array, there are
[bones count] *
[frames keys count]. These are in turn laid out as tracks of
[frame count] keys for each bone in the order of the bones, as defined in the Bones data array.
Each key is defined as a 32 byte struct: