Please can anyone guide my mind into figuring out the rest of this structure
Thanks
Code: Select all
//Big Endian
struct KengoXBM
{
struct Header
{
uint ID;
uint unkn0;
uint otherCount; //mesh? group?
uint shapeCount;
//------------Line 2---------------
uint unk1;
uint unk2; //"Points" to address of first item. always 80
uint addrs[12];
uint addr;//Seems like a special section
uint unkn3; //not 1
}header;
struct Other
{
char name[32];
char data[160];
}other[header.otherCount];
struct Shape
{
char name[32];
float matrix1[16];
float chnk0[32]; //Vertices?
char data[320];
}shape[header.shapeCount];
//Unknown chunks
char un02[header.addrs[3]-header.addrs[2]];
char un03[header.addrs[4]-header.addrs[3]];
char un04[header.addrs[5]-header.addrs[4]];
char un05[header.addrs[6]-header.addrs[5]];
char un06[header.addrs[7]-header.addrs[6]];
char un07[header.addrs[8]-header.addrs[7]];
char un08[header.addrs[9]-header.addrs[8]];
char un09[header.addrs[10]-header.addrs[9]];
char un10[header.addrs[11]];
char un11[header.addr-(header.addrs[11]+header.addrs[10])];
//char un12[addrs[3]-addrs[2]];
struct Unkn_str
{
uint one; //usually
uint size;
uint pad[6]; //usually zero
}unknStr;
char un12[unknStr.size];
char remnants[32];
}xbm;