The Forum is up for sale: XeNTaX Forum looking for new owner

Kingdom Hearts .mdls files

Post questions about game models here, or help out others!
Post Reply
o0DemonBoy0o
veteran
Posts: 106
Joined: Tue Apr 03, 2012 6:02 am
Has thanked: 11 times
Been thanked: 12 times

Kingdom Hearts .mdls files

Post by o0DemonBoy0o »

So I was wondering how the kingdom hearts .mdls files work.
I was messing with some .wpn files from the game, cutting some pieces here and there to get it to look somewhat similar to the .mdls files and I almost got the load load up fully in noesis. Everything is there like the textures, UVs, bones, # of meshes and the like it's just that all the vertices are all in the exact same spot.
So what part of the mdls file determines where all the vertices are supposed to go? I'm pretty sure that is all i need to know to get them to work.
User avatar
Mirrorman95
ultra-veteran
ultra-veteran
Posts: 355
Joined: Tue Jul 20, 2010 2:08 am
Has thanked: 16 times
Been thanked: 24 times

Re: Kingdom Hearts .mdls files

Post by Mirrorman95 »

The only members who know that format are yaz0r and Revelation. yaz0r made a MDLS viewer/animator for KH1 models, you could try running them in that maybe. It would be enlightening to know the process you went through to get the WPNs to work.
BBSFM and KH2FM+ saves are compatible with KH2.5. viewtopic.php?t=13424
o0DemonBoy0o
veteran
Posts: 106
Joined: Tue Apr 03, 2012 6:02 am
Has thanked: 11 times
Been thanked: 12 times

Re: Kingdom Hearts .mdls files

Post by o0DemonBoy0o »

I really did nothing special.
For example, I took the wpn file for the kingdom key and put in in a hex editor.
looked for "MENV"
Image

took everything from between that to this

Image

delete it, rename MENV to MOBJ and save the file as a mdls.

Everything seems to be correct except for where the vertices go. they just all seem to be gathered in the exact same spot as one another. I'm pretty sure some of the information I deleted from the file is relevant to that but I don't know what.
Azurfan
advanced
Posts: 61
Joined: Wed Jun 23, 2010 10:12 pm
Has thanked: 23 times
Been thanked: 3 times

Re: Kingdom Hearts .mdls files

Post by Azurfan »

The Dream Staff and the Dream Rod have mdls and wpn files, maybe it's possible to find the verticals by comparing these two files.
o0DemonBoy0o
veteran
Posts: 106
Joined: Tue Apr 03, 2012 6:02 am
Has thanked: 11 times
Been thanked: 12 times

Re: Kingdom Hearts .mdls files

Post by o0DemonBoy0o »

Well after comparing I found where the main model data is stored.
It's a section that starts with

Code: Select all

.....@>0........
and ends with

Code: Select all

.€..............
................
....€.€.........
....€.€.........
Between the wpn and mdls of the dream weapons that section is completely different.
I'm not sure why though
Post Reply