Page 1 of 7

Hitman / Kane & Lynch series model tools

Posted: Thu Feb 16, 2017 9:26 pm
by daemon1
Hitman Absolution, Sniper Challenge archive/model/texture tools.

1. Drop .pc_resourcelib onto Hitman5.exe. It will extract all resources from it. Corresponding .pc_headerlib files must be in the same dir. The tool will search all .pc_headerlib files for needed information.

2. Drop .TEXT file onto Hitman5DDS.exe. It will convert all textures to DDS or TGA.

3. Drop .BORG file onto Hitman5Model.exe. Corresponding .PRIM file must be there too. <BORG>/<PRIM> files will be near each other (in pairs). This will produce SMD model with skeleton and all lods. You can separate them by materials. Later I will maybe make an option to skip low lods or something.

Cloth support (model tool). If some .CLOS files will be there too, they will be converted to static .OBJ files with cloth geometry. Cloth driver will be present in a main SMD model. This driver will have weights and move with the skeleton. You should be able to apply driver movements to actual cloth model after that. Note: The geometry generation algorythm was not completely reversed so some minor errors may appear.

Sniper Challenge separate archive/model tools are used same way as for absolution, textures can be extracted with Hitman5DDS.

Currently the tool will ONLY unpack segments if some skeletal models will be there. This is only about 300 packages from all 5000 (according to headers). So if you run it on all of them, 300 folders will be created. After that, you can find the model name in MATI files as material name will include it.

ImageImage

Re: Hitman / Kane & Lynch model tools

Posted: Thu Feb 16, 2017 9:26 pm
by daemon1
Hitman 4 (Blood Money), Kane & Lynch 2 model tools.

Usage: Drop .PRP file onto the tool or use command line, .PRM file must be in the same dir.

The tool only currently unpacks animated characters, and not all of them work. Mostly human models. Each model can be repeated with variations or without, because of game files structure. One model usually will contain many clothes variations. Filename includes material number followed by model variation.

Image

Re: Hitman / Kane & Lynch model tools

Posted: Thu Feb 16, 2017 9:27 pm
by daemon1
Hitman 2/3 models.

Usage: Drop .PRM file onto the tool or use command line, .GMS file must be in the same dir.

I had no time to reverse their properties tree, so the tool only currently unpacks animated characters, like humans, pigs, rats, birds etc. The possible names are dumped into names.txt file.

Image

Hitman 1 tools here: viewtopic.php?f=16&t=15695

Re: Hitman / Kane & Lynch series model tools

Posted: Sat Feb 18, 2017 2:59 pm
by daemon1
Hitman 4 / Kane & Lynch 2 tools posted.

Re: Hitman / Kane & Lynch series model tools

Posted: Sun Feb 19, 2017 3:19 am
by ssringo
:o Oh my god. I didn't think Hitman would ever get modeling tools and we'd be stuck with .obj rips and fan rigs. Time to get to work downloading these games.

Re: Hitman / Kane & Lynch series model tools

Posted: Sun Feb 19, 2017 7:33 am
by hhchunter
This is awesome!

Seems like UV's are Vert Flipped on some models?

If source was published could this eventually lead to geometry mods for Blood Money?

Also if it's not too much trouble would it be possible to get a obj or FBX version as well?

Re: Hitman / Kane & Lynch series model tools

Posted: Sun Feb 19, 2017 7:57 am
by daemon1
obj tool for hitman 4 existed for 10 years, made in 2006.

And I'm never working with fbx because its very unstable and non-standard format.
hhchunter wrote:could this eventually lead to geometry mods?
Geometry formats are mostly simple. So yes, modding is very possible.

Re: Hitman / Kane & Lynch series model tools

Posted: Thu Feb 23, 2017 3:03 pm
by daemon1
Hitman 2/3 tools posted.

Hitman 4 tools updated: skeletons mirrored to correct right handed coordinate system. Normals added.

So now all hitmans from 1 to 4 are covered. Only absolution left. Will be ready soon.

Re: Hitman / Kane & Lynch series model tools

Posted: Sat Feb 25, 2017 9:15 pm
by daemon1
ok i have very good progress on all variations of glacier engine, so I will probably be able to get all models with skeletons and proper names for Absolution, and probably for 2016 game too.

Image

Re: Hitman / Kane & Lynch series model tools

Posted: Sat Feb 25, 2017 9:21 pm
by Tosyk
Looking good! From the professional point of view it's also nice to have all the LODs of the game model. I hope you willing to lying your hands on the items/vehicles/static as well — they're great in the last 2 games.

Re: Hitman / Kane & Lynch series model tools

Posted: Sun Feb 26, 2017 12:44 am
by volfin
daemon1 wrote:ok i have very good progress on all variations of glacier engine, so I will probably be able to get all models with skeletons and proper names for Absolution, and probably for 2016 game too.

Image
For what it's worth, I already created a model converter for Hitman 2016. But I didn't bother with weights and skeletons, so if you add that, would be nice. If you can read python, my script will probably help you a lot with the format. It's quite close to Deus Ex: Mankind Divided since they use the same engine. That's why I always try to release source code, so others can learn and improve for the benefit of all :)

viewtopic.php?p=126983#p126983

Re: Hitman / Kane & Lynch series model tools

Posted: Sun Feb 26, 2017 7:20 am
by daemon1
volfin wrote:I already created a model converter for Hitman 2016.
Yes I know, but my main point is to add skeletons and sort everything out with names, and this is completely absent in your script as we know.

I can read python, but from my experience, its usually easier to research the format myself, than read someone else's code. Especially considering the fact, that I already researched Absolution and it seems completely the same as 2016.

Re: Hitman / Kane & Lynch series model tools

Posted: Sun Feb 26, 2017 5:29 pm
by volfin
No problem. :)

Re: Hitman / Kane & Lynch series model tools

Posted: Sun Feb 26, 2017 6:43 pm
by daemon1
Actually sometimes I can't understand even my own code after a while. It's just like I better grasp the data than the code.

Absolution tools posted in the thread start.

Image

Re: Hitman / Kane & Lynch series model tools

Posted: Sun Feb 26, 2017 8:34 pm
by ssringo
Thank you for the new tools. A couple questions:

-That's a LOT of files to go through. Any way to find out what's what without going through the whole process?
-Is there a way to convert textures?

EDIT: Referring to Absolution