Hitman Audio Converter

Hello all,

I have been uploading HITMAN 2 Soundtracks for the past 3 months or so to YouTube and have been extracting them from the game files. I thought it would be a good idea to make a program that can extract audio files from both HITMAN 1 and 2 because there are always going to be people that will say “oh but you forgot this” since there are thousands of files in-game. Obviously this will only work on the PC version of the game. Therefore I have wrote a program that will do it all for you with included instructions. Hope this helps some of you out!

Please Report any bugs to me so I can patch them out!

Note that versions 2.2 and above are using the .exe format. If you have any issues with the .exe try versions 2.1 or lower.

P.S HAC stands for Hitman Audio Converter.

Program:

[Stable Release]
Version 2.4 - https://drive.google.com/open?id=1I4aSeFTGKuvHthfJas93s9lrLpAaOBV5
=> Change Log

[Older Versions]
Version 2.2 - https://drive.google.com/open?id=15c99nSWXHxK2zwJSH5iAj6fPXlNTn1XL
Version 2.1 BETA - https://drive.google.com/open?id=1zzS8nEdiqRGNO_hnkYMj2TzrNJlyVTeT
Version 2.0 - https://drive.google.com/open?id=1SHsrnKEhVJumqAGlMd32W2GtKHosVeZ4
Version 1.8 BETA - https://drive.google.com/open?id=17QvsnyqXqs5uP5ITWqyDu8G21-obBoQl
Version 1.7 - https://drive.google.com/open?id=1_6KRfc1gSJIgC8UDgDy39WzBzameFiVE
Version 1.2 - https://drive.google.com/open?id=1x-Kgbnx7gk492BsHw_ZTAaPGSbBkFoXJ

ALL THE FILES BELOW ARE INCLUDED IN THE PROGRAM LINK ABOVE.

Source Files (For Credit) [Warning the first two will instantly download]

QuickBMS: http://aluigi.altervista.org/papers/quickbms.zip
Hitman Script for QuickBMS: http://aluigi.altervista.org/quickbms.htm/hitman_2016.bms
ww2ogg: https://github.com/hcs64/ww2ogg

16 Likes

Just wanted to thank you profusely for the tool. There’s so much dialogue in the game that I knew I’d never hear otherwise, so I went looking for a way to extract it and your tool has worked marvelously. Thanks to you, I was able to hear all of the hilarious Santa dialogue. And thanks for the YouTube OST uploads as well!

One suggestion would be to automatically rename the files based on information in the original headers. Pretty much all of the dialogue files have descriptive labels in the headers (e.g. InCa_VIPDownAck_ABIATTI_CIVMALE06_CIVMALE06_002). Unfortunately, the music and SFX files don’t have descriptive headers for the most part, though some of the music files are labeled with “Tempo: xxx.x”

The regex I’ve been using for the labels is “adtllabl…(.*?)data” but I think it missed capturing some that I ended up having to manually rename. I’d try my hand at editing the .bat file myself but I’m a terrible programmer, lol. I ended up just using PowerShell to extract the labels to a .csv, and used a batch file renamer to rename everything that way.

2 Likes

Ah okay very nice! Thanks very much for the feedback! I will look into your idea :wink:

1 Like

I’ve been using bash myself with the exiftool tool to get the file names out of the headers

#!/bin/bash
old_file_name=$1
new_file_name=$(exiftool -U -b '-RIFF:Unknown_LIST_adtl' "${old_file_name}" | strings | tail -n +2 | awk 'FNR==1')

echo -e "$old_file_name $new_file_name"

It seems to work pretty well on all of the files:

1 Like

Audio modding is also possible.

Requires having Wwise installed for converting audio files into wem.

3 Likes

Version 2.2 is now out! See above. (^)

Changes include:

  • Adding developer features (will require a software key)
  • Upgrades to fetch and debug modes.
  • Trobleshooting menu has had an update too
2 Likes

THAT…is pretty damn cool!

2 Likes

Version 2.4 is now out! See above. (^)

Changes Include:

  • Added support for DLC Pack 15, Singapore
  • General patching
1 Like

If someone can make an audio mod to replace the H2 menu music with 2016’s, you will have a heart from me!

1 Like

Hey guys.
This is a great tool
But can someone provide some “tutorial” how to automatically rename the files?

I’ve tried to understand CovertCrooner and Notex replies, but I feel like I am missing some crucial information to make it work (heck, I might even misunderstood what tools they were using to make it work…).

2 Likes

hey there, Tried to download version 2.4 and link is dead. can someone re-post?

1 Like

Has anyone managed to find gunfire sounds with this tool? I’ve tried ‘chunk0’ so far but no luck. Other files seem like addons (‘patch 1’, etc.) and I don’t feel like I will find something there.

You would be able to find them and they are most likely in the chunk0 patches however the file size would be very small so therefore you would have a couple thousand files to go through

O, so patches eh? Thanks, will try!

Nope, check every last one of them twice - no gunfire sounds in chunk0 patches. Just voices. Tbh I highly doubt they are there. I think they are among the other files (not wwam) and possibly use a different in-game sound engine to play - they are pretty well made and that’s why I wanna find them.

I will check chunk0 again, but I have little hope at this point.

I wish you the best of luck dude!

WWEM contains only music and voice lines. WWEV contains all the sound effects. You’ll need to run this go program on them though to extract all the individual audio files from a single WWEV file. You will then need to use ww2ogg as usual on them.

Here is the program: https://cdn.discordapp.com/attachments/556235715634003979/571186375307821056/wwev.go
Credits go to @swixel

2 Likes