RoadTrain has found the Header and Block Definition data for me, but I'm still unable to find the data that makes up the vertices, I can't even find how many verts a file has.
Here's what I know:
This game was made by Ensemble Studios, so the model file might resemble one of their previous games.
File is either aligned to 16 or 32 bytes. Data is in Big Endian.
The files are a modified version of Granny3d's .gr model file, but I don't see how that's of any help.
All files have at least 1 bone: "GranyRootBone" and I think, but I'm not sure, that the files have lod data too.
Code: Select all
struct tHeader
{
long magic;
long headerLength; //?? =32 bytes
long unk1; //hash?
long fileSize;
short nBlocks; //number of blocks
short null1; //=0
long unk2; //hash?
long null2[2];// 8 zero bytes
};Code: Select all
struct tBlockDefinition
{
long null;//zeros
long blockType;//1792-1797
long offset;// the position in the file where the block starts
long size; //size of block data
long unk1; //maybe some form of hash
long unk2; //??
};Code: Select all
struct t1792BlockHeader
{
short unk;
short arraycount; //number of floats / 3 (i don't think this is where the vertex data is though.)
long null;
float[arraycount*3] unk;
};Here's a zip file with 9 ugx files, some similar and varied. I just want to be able to find where the vertex data and face indices are at this point.

