10-02-2011, 11:24 AM
(This post was last modified: 10-02-2011, 03:50 PM by ItsEasyActually.)
Don't know how many people are actually reverse engineering savvy without using helping programs, but I know I am. And well, a friend of mine has been wanting the Luigi's Mansion models since nobody ever bothered to actually document the format. At this point, I've made a script for 3DS Max that reads the verts directly from the .mdl files, but nothing else as I can't find the face data. If anyone here is savvy at file mapping, then please help me out here, haha. Here's what I've done for the model's spec thus far.
I have figured out what some of the data chunks resemble, but because I don't know what to call the data, I can't properly label it to map it. Nonetheless, if anyone here is good at this stuff, please help me out with this, haha.
EDIT: Here's a picture of the current progress of this ripping program.
Code:
MDL Spec (Luigi's Mansion Model Files)
== File Header ==
0x00 4 Constant x04B40000
0x04 4 Unknown, possible size of something
0x08 2 Total of some sort
0x0A 2 Another total
0x0C 2 Another total
0x0E 2 Another total
0x10 4 Unknown, Possibly two shorts
0x14 4 Unknown, possibly two shorts
0x18 8 Null
0x20 4 Unknown
0x24 2 Total?
0x26 2 Total?
0x28 2 Total?
0x2A 2 Total?
0x2C 4 Null
==Offsets==
0x00 4 Offset to ID Structs?
0x04 4 Offset to possible vertex/mesh info?
0x08 4 Offset to Data after ID Structs
0x0C 4 Offset to unknown
0x10 4 Offset to data after previous data from the last pointer
0x14 4 Offset to last data section
0x18 4 Offset to Vertex Chunk
0x1C 4 Offset to Normals chunk
0x20 4 Offset to unknown
0x24 4 Offset to (Same as last offset)
0x28 8 Null
0x30 4 Offset to Bone Data Table
0x34 4 Null
0x38 4 Offset to possible weight data or something?
0x3C 4 Offset to struct data after "weight" data
0x40 4 Offset to struct data after previous data
0x44 4 Offset to data after previous data
0x48 8 Null
I have figured out what some of the data chunks resemble, but because I don't know what to call the data, I can't properly label it to map it. Nonetheless, if anyone here is good at this stuff, please help me out with this, haha.
EDIT: Here's a picture of the current progress of this ripping program.