http://xtsukihime.webs.com/Noesis%20Plu ... ong_fak.py
That's it!
lol ya I was reading numVerts*11 as well
Some sexy bow...like things in those FAK files.
Well, there goes that mystery.
It never occurred to me that 11 bytes doesn't make too much sense lol
The integer before the vertOfs might be the number of vertex groups, but it's not obvious which faces reference which vertices.
Each face group has a short that indicates how many vertices are referenced.
They even throw in some ascii-encoded strings in there lol
Maybe it'll become clear once the entire file is parsed and all of the unknowns re-evaluated.
The face groups are definitely referencing different vertex groups. Some of them just happen to load up fine.
It seems like I'm assigning the faces in the wrong direction though...
EDIT:
here's something that I noticed, if you didn't notice this already.
As already known, in each face group, it starts with an integer, followed by 2 shorts. Then 6 floats, the numFaces, followed by the indices.
The first integer is useful because it gives us the vertex offset.
So the first face group references the first n vertices starting at vertex 0.
The second face group references the next m vertices starting at vertex n.
The third face group references the next i vertices starting at vertex n + m
etc
In simpler terms, supposing I have two face groups, a vert list = [0, 1, 2, 3, 4, 5, 6, 7, 8] and my first face group referenced the first 5 vertices [0, 1, 2, 3, 4], then the next face group would reference the remaining 4 vertices [5, 6, 7, 8], where the indices are relative to the subset of vertices.
With that said, here's G11.fak
Sadly, I'm still skipping a whole bunch of data. I'm basically reading the vertex data, and then seeking straight to the material section.