XCOM 2 WotC .wem & .bnk

Codecs, formats, encoding/decoding of game audio, video and music
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

XCOM 2 WotC .wem & .bnk

Post by PlanK69 »

Hi

The .wem & .bnk files have changed somehow from the base XCOM 2 game, because I was able to extract the XCOM 2 .wem & .bnk files just fine with Aluigi's BMS script, but they don't work on the new XCOM 2 WotC expansion...

Here are a few .wem & .bnk files that should contain .ogg audio files, if anyone could take a look please: https://www.dropbox.com/sh/qqcvm1z0fx98 ... LaMla?dl=0

Much appreciated
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

Re: XCOM 2 WotC .wem & .bnk

Post by PlanK69 »

After 1 week, I just wanna give this a bump.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: XCOM 2 WotC .wem & .bnk

Post by aluigi »

For the BNK file ("BKHD" magic) you must use this script:
http://aluigi.org/bms/armyoftwo.bms

The WEM file is a RIFF but I don't know what's the codec used there.
bnnm
Posts: 13
Joined: Mon Nov 06, 2017 8:24 pm

Re: XCOM 2 WotC .wem & .bnk

Post by bnnm »

You can use vgmstream to play that .wem
https://hcs64.com/vgmstream.html
PlanK69
Posts: 73
Joined: Thu Sep 10, 2015 10:17 pm

Re: XCOM 2 WotC .wem & .bnk

Post by PlanK69 »

bnnm wrote:You can use vgmstream to play that .wem
https://hcs64.com/vgmstream.html


Thanks for that, but the question now is: How to convert it to mp3/wav/ogg? I usually use 'goldwave' or audacity to convert stuff, but those 2 programs can't recognize the .wem file, and so can't my editing software. So we need a .wem (vgmstream) to .ogg converter (which probably will have to be come kinda custom .bat executable thing, like how the other .wem converter worked with the previous XCOM2's .wem files)
bnnm
Posts: 13
Joined: Mon Nov 06, 2017 8:24 pm

Re: XCOM 2 WotC .wem & .bnk

Post by bnnm »

If you check the "Winamp, xmplay, and command line" link you can find a test.exe program that converts to wav.
In the command line or a .bat: test.exe -o output.wav input.wem
Should support all types of .wem btw.