NOTES: MDL0 Resource Thread (reformatted)

Started by DarkPikachu, January 21, 2012, 12:11:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

January 28, 2012, 12:09:04 PM #15 Last Edit: May 20, 2012, 04:50:39 PM by Tcll
Global-Header:
the global header identifies the MDL0 and determines the version:

magic = string(4)
str_tbl = bu32()
version = bu32()
brres_offset = bs32()


Lists:
the lists define what's what in the MDL0: (based on the version)
if version > 7: Definitions = bu32()
if version > 7: Bones = bu32()
if version > 7: Vertices = bu32()
if version > 7: Normals = bu32()
if version > 7: Colors = bu32()
if version > 7: UV's = bu32()
if version > 9: Unknown1 = bu32()
if version > 9: Unknown2 = bu32()
if version > 7: Materials = bu32()
if version > 7: Nodes = bu32()
if version > 7: Objects = bu32()
if version > 7: Textures = bu32()
if version > 7: Pallets = bu32()
if version > 10: Unknown3 = bu32()

^links will take you to the data sections below.

Local-Header:
the local header defines the MDL0 structure.

Name_Offset = bu32()
properties = bu32()
properties_length = bu32()
unknown1 (0) = bu32()
unknown2 (0) = bu32()
Num_Verts = bu32()
Num_Faces = bu32()
unknown3 (0) = bu32()
Num_Links = bu32()
unknown4 (0x01010000) = bu32()
properties_length = bu32() (copy??)
MinX = bf32()
MinY = bf32()
MinZ = bf32()
MaxX = bf32()
MaxY = bf32()
MaxZ = bf32()

[spoiler]Quote: Friedslick6
you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
But the coolest part was that you didn't stop working on it despite that.

Quote: Internet Explorer
you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

quote: Greg
You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

April 06, 2012, 01:27:01 PM #16 Last Edit: April 06, 2012, 01:30:34 PM by Tcll
this is just a re-structure and a touch-up ;)

-added unknown data structures
-added bookmarks to data sections (no need to scroll)

everything works as it should ;D

TODO:
-sub data section bookmarks (go to a selected section from a section)
-move this thread to Programming/Notes/


To viewers:
even though this thread has every needed post (for current MDL0 standards),
I still ask that you don't post anything here.
(I want this thread to be like a wiki for programmers, but better) XD

if you have any suggestions, ideas, updates, etc. for me,
I'm always open to a PM, so feel free to PM me. :D


other comments:
I can't disable sigs, so complain to the admins about it, not me
^seperate posts won't lag my wii's editor

[spoiler]Quote: Friedslick6
you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
But the coolest part was that you didn't stop working on it despite that.

Quote: Internet Explorer
you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

quote: Greg
You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.