Skip to content

Instantly share code, notes, and snippets.

@Radfordhound
Last active September 3, 2020 00:05
Show Gist options
  • Save Radfordhound/2ab2e8598ac414be82e5f77aaf7f48ad to your computer and use it in GitHub Desktop.
Save Radfordhound/2ab2e8598ac414be82e5f77aaf7f48ad to your computer and use it in GitHub Desktop.
/*
PXSK (.skl.pxd) format specification
By: Radfordhound
Version: 1.0
*/
/*
PXSK files are BINAv2 files.
This document only covers the PXSK-specific
data, not the BINA stuff. For more information
on BINA, please refer to a BINAv2 specification.
*/
template<typename T>
struct MoveArray
{
T* data;
uint64_t count;
uint64_t capacity;
/* Not actually set to anything in files obviously. */
IAllocator* allocator = NULL;
};
struct PXSKBoneName
{
char* name;
/* Always 0? */
void* unknown1 = NULL;
};
struct PXSKHeader
{
/* "PXSK" */
char signature[4];
/* Version number?? It's always set to 512. Could mean like v0.2? */
uint32_t unknown1;
MoveArray<uint16_t> boneIndices;
MoveArray<PXSKBoneName> boneNames;
MoveArray<Matrix3x4> boneMatrices;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment