XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Tue Aug 21, 2018 1:50 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: New tool to extract audio from Civ 6 (and maybe other games)
PostPosted: Tue May 01, 2018 11:03 am 
Offline
veteran

Joined: Sat Nov 15, 2008 1:31 am
Posts: 90
Has thanked: 0 time
Have thanks: 16 times














You can make the ads go away by registering

I have written a tool to help with extracting audio (e.g. the awesome music) from Civilization 6.
The Windows binary is attached to this post and the source code can be found at https://github.com/jonwil/soundextract
Other than the win32 UI stuff, the rest of the code is all standard C++ (or at least it should be) so it should be possible to make the core code work on Linux or Mac if you want to and you have the programming skills to do so (I dont use Linux or Mac so I wont be doing it). Note also that its only tested on the data files from the Windows version of Civilization 6 (it may not work on the other platform data files since I dont have those). Oh and it may work on other games if the files are the same (same format, same xml files, same layout etc) but I have no other games to test it on.

To use it, start the program and press the "open" button. Under the Civ 6 install folder navigate into base or into one of the folders under DLC and look for a "platforms" folder. Then go into that folder then into "windows" then "audio" (if there is no "audio" folder, that DLC has no audio). Under the "audio" folder (and the language specific folders within that, if they exist) there will be 1 or more xml files. Open one of these.

You will then see a list of all the audio within that particular sound bank (either stored loose as wem files or stored inside the bnk file). Select one and press "extract" and then save it to the location you want. Right now it extracts it as a wem file (to be converted via ww2ogg if its using Vorbis audio or via other tools if its using ADPCM or PCM audio) but I am planning to add proper conversion for all 3 codecs (so my tool will do the same thing as ww2ogg does for example) in a future version.

The advantage of this new tool is that it gives all the audio files within the bank a proper name (no more need to use a bnk extraction tool to extract the sounds embedded in the bank and no more need to try and guess which .wem file (loose or extracted) is the one you want by looking at the xml or txt files, soundextract will take care of giving the sound files a proper name and extracting the data from the bnk file if need be.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: New tool to extract audio from Civ 6 (and maybe other ga
PostPosted: Thu May 03, 2018 2:14 pm 
Offline
veteran

Joined: Sat Nov 15, 2008 1:31 am
Posts: 90
Has thanked: 0 time
Have thanks: 16 times
Now soundextract converts the wem file properly to an ogg file or wav file (depending on the codec).
Source code is updated as well.

Much easier way to do this stuff than to try and figure out what wem file you need, use a bank extraction tool to extract it if its in a bank then run ww2ogg/revorb if its using ogg, an adpcm tool if its using adpcm or a pcm tool if its using pcm. Soundextract incorporates the bank extraction tool, ww2ogg, revorb, adpcm stuff and pcm stuff plus automatically giving useful names to the sounds rather than numbers.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group