The rules have been updated, read them now: Rules!
HMDL Model file Question.
HMDL Model file Question.
How would I be able to import .HMDL files into a 3d model viewing program like 3ds Max or something similar? Or at
least convert them to a more recognizable file format? I've been trying to do this for about several months now,
with no success. Below is a decrypted sample file from a PS3 PSN game.
https://www.dropbox.com/s/g9apare007fza ... Model.HMDL
Should I also include the decrypted .HTEX(texture file) file that goes with this model?
least convert them to a more recognizable file format? I've been trying to do this for about several months now,
with no success. Below is a decrypted sample file from a PS3 PSN game.
https://www.dropbox.com/s/g9apare007fza ... Model.HMDL
Should I also include the decrypted .HTEX(texture file) file that goes with this model?
- shakotay2
- MEGAVETERAN
- Posts: 3245
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 889 times
- Been thanked: 1784 times
Re: HMDL Model file Question.
The point cloud looks ok to me (picture's left part). Missing parts of leg/arm are contained in a 2nd smaller submesh, hell knows why.
For the mesh (pic's right part), well, too many uint16 face indices blocks interrupted by some unknown DWords -
hard to recover, yes.
For the mesh (pic's right part), well, too many uint16 face indices blocks interrupted by some unknown DWords -
hard to recover, yes.
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
Re: HMDL Model file Question.
Thanks SO much for the quick reply back, shakotay2. Sorry that the model file didn't turn out like I thought itshakotay2 wrote:The point cloud looks ok to me (picture's left part). Missing parts of leg/arm are contained in a 2nd smaller submesh, hell knows why.
For the mesh (pic's right part), well, too many uint16 face indices blocks interrupted by some unknown DWords -
hard to recover, yes.
would.
Just for reference, below is a screenshot of the character whose model you looked at.
Perhaps this model will turn out better. It's just a model of a chainsaw from the same game as the other model: The
House of the Dead 4. This one is also decrypted, as well.
https://www.dropbox.com/s/ni3skabchayws ... Model.HMDL
- shakotay2
- MEGAVETERAN
- Posts: 3245
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 889 times
- Been thanked: 1784 times
Re: HMDL Model file Question.
thx - sadly the problem remains the same.
There are 597 face indices with a range from 1 to 560, here's the first faces:
standard triangles
f 67 38 85
f 28 64 26
f 81 41 72
f 36 70 34
f 74 30 78
f 32 68 39
f 461 451 443
f 435 417 415
f 381 389 284
...
or as TriStrips
f 67 85 38
f 38 85 28
f 85 64 28
f 28 64 26
f 64 81 26
f 26 81 41
f 81 72 41
f 41 72 36
f 72 70 36
f 36 70 34
f 70 74 34
f 34 74 30
f 74 78 30
f 30 78 32
f 78 68 32
f 32 68 39
f 68 461 39
f 39 461 451
f 461 443 451
f 451 443 435
f 443 417 435
...
Maybe a very simple model like a box or a book could help.
Or a square stone.
There are 597 face indices with a range from 1 to 560, here's the first faces:
standard triangles
f 67 38 85
f 28 64 26
f 81 41 72
f 36 70 34
f 74 30 78
f 32 68 39
f 461 451 443
f 435 417 415
f 381 389 284
...
or as TriStrips
f 67 85 38
f 38 85 28
f 85 64 28
f 28 64 26
f 64 81 26
f 26 81 41
f 81 72 41
f 41 72 36
f 72 70 36
f 36 70 34
f 70 74 34
f 34 74 30
f 74 78 30
f 30 78 32
f 78 68 32
f 32 68 39
f 68 461 39
f 39 461 451
f 461 443 451
f 451 443 435
f 443 417 435
...
Maybe a very simple model like a box or a book could help.
Or a square stone.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
Re: HMDL Model file Question.
Well, dang. I thought for sure that one would work. I'm starting to wonder if I used my quickBMS Scripts incorrectly. That's how I got the files from inside each IZCA archive file. However, the scripts I used for extracting files from inside IZCAs were geared mainly for the game "Valkyria Chronicles," which supposedly has a similar file structure to The House of the Dead 4. Should I ask around the "Code Talk" area of the forum to see if anyone would be willing to create a QuickBMS script(or scripts) geared for The House of the Dead 4?shakotay2 wrote:thx - sadly the problem remains the same.
There are 597 face indices with a range from 1 to 560, here's the first faces:
standard triangles
f 67 38 85
f 28 64 26
f 81 41 72
f 36 70 34
f 74 30 78
f 32 68 39
f 461 451 443
f 435 417 415
f 381 389 284
...
or as TriStrips
f 67 85 38
f 38 85 28
f 85 64 28
f 28 64 26
f 64 81 26
f 26 81 41
f 81 72 41
f 41 72 36
f 72 70 36
f 36 70 34
f 70 74 34
f 34 74 30
f 74 78 30
f 30 78 32
f 78 68 32
f 32 68 39
f 68 461 39
f 39 461 451
f 461 443 451
f 451 443 435
f 443 417 435
...
Maybe a very simple model like a box or a book could help.
Or a square stone.
Or here's another idea: During my searches, I saw that Xentax members Chrrox and Gomtuu created a python script for Blender that could import IZCAs and HMDL files from Valkyria Chronicles. Would it be possible for me to ask in the same section of the forum(Code Talk), to see if someone could help by creating a Blender Python script for House of the Dead 4 IZCAs? The reason I'm asking for help from others is because I've been wracking my brain for what seems like forever, trying to figure all this out, and have reached the limits of my knowledge already. I'm sorry if that sounds too loser-ish to whoever reads this.

Finally, if you want I'll be glad to tell you what my goals are for all this.
- shakotay2
- MEGAVETERAN
- Posts: 3245
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 889 times
- Been thanked: 1784 times
Re: HMDL Model file Question.
I don't know whom/what to ask but from the mentioned blender script it seems like the Valkyria Chronicles (PS3) models use TriStrips with 0xFFFF as a block end marker.
Don't see any hints that could help for HOTD4 face indices.
What about a simple model?
Don't see any hints that could help for HOTD4 face indices.
What about a simple model?
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
Re: HMDL Model file Question.
Okay. This last model is of a grenade pickup from the same game. If this one doesn't work, then I don't know what will, because it's the smallest, simplest thing I could think of.shakotay2 wrote:I don't know whom/what to ask but from the mentioned blender script it seems like the Valkyria Chronicles (PS3) models use TriStrips with 0xFFFF as a block end marker.
Don't see any hints that could help for HOTD4 face indices.
What about a simple model?
https://www.dropbox.com/s/4g3oi5j21qvyg ... Model.HMDL
- shakotay2
- MEGAVETERAN
- Posts: 3245
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 889 times
- Been thanked: 1784 times
Re: HMDL Model file Question.
thx, but you'll understand that it's impossible to rebuild the faces from such a model
manually as it should be with a square stone, a book or a plank which have 12 triangles only.You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
Re: HMDL Model file Question.
Okay. Will a model of a simple, primitive cube work? Because I've got one right here that was somehow included in the game's files.shakotay2 wrote:thx, but you'll understand that it's impossible to rebuild the faces from such a modelmanually as it should be with a square stone, a book or a plank which have 12 triangles only.
https://www.dropbox.com/s/e12dlhw8w17yhv3/Cube.HMDL
- shakotay2
- MEGAVETERAN
- Posts: 3245
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 889 times
- Been thanked: 1784 times
Re: HMDL Model file Question.
thx - at least it should help to narrow down the problem.
These are the faces:
f 12 12 8
f 20 13 13
f 14 14 9
f 23 6 6
f 4 4 7
f 1 10 10
f 21 21 15
f 18 24 24
f 3 3 11
f 17 19 19
f 22 22 5
f 16 2 1
using 24 vertices.
This is a cube exported by blender, using 8 vertices:
v 1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 1.000000
v -1.000000 -1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v 1.000000 1.000000 -1.000000
v 0.999999 1.000000 1.000001
v -1.000000 1.000000 1.000000
v -1.000000 1.000000 -1.000000
f 5 1 4
f 5 4 8
f 3 7 8
f 3 8 4
f 2 6 3
f 6 7 3
f 1 5 2
f 5 6 2
f 5 8 6
f 8 7 6
f 1 2 3
f 1 3 4
(It's 6 triangulated quads.)
edit: ok, here you go: After hours of calculating most complex formulas...
no, just kidding - the truth is: I just skipped one vertex.
(Would really be surprised if this worked for the other models, too.)
These are the faces:
f 12 12 8
f 20 13 13
f 14 14 9
f 23 6 6
f 4 4 7
f 1 10 10
f 21 21 15
f 18 24 24
f 3 3 11
f 17 19 19
f 22 22 5
f 16 2 1
using 24 vertices.
This is a cube exported by blender, using 8 vertices:
v 1.000000 -1.000000 -1.000000
v 1.000000 -1.000000 1.000000
v -1.000000 -1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v 1.000000 1.000000 -1.000000
v 0.999999 1.000000 1.000001
v -1.000000 1.000000 1.000000
v -1.000000 1.000000 -1.000000
f 5 1 4
f 5 4 8
f 3 7 8
f 3 8 4
f 2 6 3
f 6 7 3
f 1 5 2
f 5 6 2
f 5 8 6
f 8 7 6
f 1 2 3
f 1 3 4
(It's 6 triangulated quads.)
edit: ok, here you go: After hours of calculating most complex formulas...
no, just kidding - the truth is: I just skipped one vertex.
(Would really be surprised if this worked for the other models, too.)
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
- shakotay2
- MEGAVETERAN
- Posts: 3245
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 889 times
- Been thanked: 1784 times
Re: HMDL Model file Question.
huuah, me, I'm such a dumbo...
(Although there are some errorness faces left. Will check that later.)

You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
Re: HMDL Model file Question.
That's good news to hear!
So the cube turned out OK, even thought you skipped a vertex. Also, the chainsaw model is mostly recognizable, apart from the "errorness" faces you mentioned. Can't wait to see the final results. 


- shakotay2
- MEGAVETERAN
- Posts: 3245
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 889 times
- Been thanked: 1784 times
Re: HMDL Model file Question.
here's the H2O file for the chainsaw:
you'll have to handle the errorness faces for yourself.
Also I didn't solve the magician's problem so far.
(be aware that its VBlockSize is 80)
Code: Select all
0x594 595
Vb1
64 48
0xF7C 560
121000
0x0 255
Also I didn't solve the magician's problem so far.
(be aware that its VBlockSize is 80)
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
Re: HMDL Model file Question.
Thank you for posting the H2O file for the chainsaw model.shakotay2 wrote:here's the H2O file for the chainsaw:you'll have to handle the errorness faces for yourself.Code: Select all
0x594 595 Vb1 64 48 0xF7C 560 121000 0x0 255
Also I didn't solve the magician's problem so far.
(be aware that its VBlockSize is 80)
Here's what I figured out from the code you posted:
0x594 595(Face indices start address/count)
Vb1(means press the "seq" button once so it says "VB" instead.)
64 48(Vertex Block size/UV position)
0xF7C 560(Vertices start address/count)
121000( ? )(I don't know what this number means...yet)
0x0 255(Start/Size UVB)
The only thing I was clueless about was the significance of the number 121000.
BTW, here's what I got when I applied the above settings to Hex2Obj.
You do not have the required permissions to view the files attached to this post.
- shakotay2
- MEGAVETERAN
- Posts: 3245
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 889 times
- Been thanked: 1784 times
Re: HMDL Model file Question.
The H2O data is not intended to be entered manually.
So no need to "understand" "121000".
(btw the UV pos is wrong - 32 seems to fit better)
Create an empty txt file, copy the lines into it and save it as chainsaw.H2O for example.
Then load the model and the H2O file into hex2obj.
Save the mesh as obj.
This is how the imported obj looks in blender. Errorness faces, yes, as I wrote before.
(I used rapi.rpgCommitTriangles(idxBuff, noesis.RPGEODATA_USHORT, 595, noesis.RPGEO_TRIANGLE_STRIP, 1) with Noesis -
got other face indices but no improvement with the displayed model.)
So no need to "understand" "121000".
(btw the UV pos is wrong - 32 seems to fit better)
Create an empty txt file, copy the lines into it and save it as chainsaw.H2O for example.
Then load the model and the H2O file into hex2obj.
Save the mesh as obj.
This is how the imported obj looks in blender. Errorness faces, yes, as I wrote before.
(I used rapi.rpgCommitTriangles(idxBuff, noesis.RPGEODATA_USHORT, 595, noesis.RPGEO_TRIANGLE_STRIP, 1) with Noesis -
got other face indices but no improvement with the displayed model.)
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."