TaylorMouse wrote:Hey, is there any logic to finding the offsets for the vertices and faces, or just gut feeling by try and error with the hex editor?
You'll have to reverse the file structure at least to obtain the offsets and counts if you're planning to write a convertor
I think, T. is aware of that.
But sometimes it's as simple as having some offsets at the beginning of the file, for example.
But I'm sorry, T., all I can see at a quick glance is the filesize at offset 0x000C.
(Maybe there's some pattern nearby the counts? 00 01000000 being a candidate; maybe check this for other bdaes.)
well, here's the assumed patterns to search for:
a) 14 000000 00000000 00000000 00000000 00000000
DWORD FI count before the found address (first finding)
b) 00 01000000 xx xx 0000 05
where xx is the pattern for a wildcard search. (If your hexeditor doesn't support this you'll need to split up the search pattern,
search for 00 01000000, and then look at an offset of 7 to the found address for 00 00 05)
xx xx will contain the low word of the vertex DWORD count.
(For char_cutscene_benny.bdae you'll have to repeat search b) until xx xx are != 0.)
Tested with 3 bdaes only! b) needs another xx for vertex counts >65535 dec.
You do not have the required permissions to view the files attached to this post.