PDA

View Full Version : MDL Format Specification


Sirenfal
10-07-2009, 11:47 PM
I'm wondering if anyone happens to have a backup of the format specification? This link is dead.

http://home.comcast.net/~cchargin/kotor/mdl_info.html

Thanks in advance.

EDIT: Nevermind, I got it.

DarthParametric
10-08-2009, 12:08 AM
http://web.archive.org/web/20071024120416/http://home.comcast.net/~cchargin/kotor/mdl_info.html

glovemaster
10-08-2009, 12:26 PM
Welcome to the forums :)

Those notes on the structure are very old and quite out of date =/ That said, I don't think anyone else had published anything on the format. I don't recommend following it to the letter, but just so you know ;)

Sirenfal
10-08-2009, 06:10 PM
Do the KotOR2 models use the same format?

glovemaster
10-09-2009, 11:53 AM
The format is very similar, but there are small differences in the structure. I have no idea whether or not they have been documented, though. :/

miro42
10-09-2009, 12:45 PM
Forgive my ignorance but what is this?

Quanon
10-09-2009, 04:53 PM
They're talking about how the code of the model files are build up.
You know the hex code thing, some people, with uber programming brains can read it :p
And understand what it says about the model and how the game is going to use that.

Its what the peeps who made NWmax, MDLops needed to do, to devellop their tools.

Det. Bart Lasiter
10-09-2009, 05:26 PM
The format is very similar, but there are small differences in the structure. I have no idea whether or not they have been documented, though. :/8 bytes per mesh. That's it! They put 8 more bytes before the pointers to the MDX data and the vertex list. I don't know what those 8 bytes are for, but my testers and I have not had any troubles with any models so far.

Oh and there was 1 other minor change. The binary models have some sort of function pointers in them that changed from kotor 1. I just made a list of the changed numbers and that was that.


Aside from cchargin's site, you can take a look at the mdlops source (it's included with mdlops) or try messaging magnusll about the source for KAuroraEditor.

miro42
10-09-2009, 07:16 PM
You know the hex code thing, some people, with uber programming brains can read it :p


NO WAY! :eek:

Too bad I don't know squat about that type of thing, otherwise it might be useful to me and my evil plans. BWAAHAHAHAHAHAHAHAHA!