Featured Post

Deus Ex - Extraction Guides (Master Post)

Deus Ex (2000) Extract Audio Extract Textures & Models Deus Ex: The Conspiracy (2002) Extract Video Deus Ex: Invisible War (2003) Extrac...

Sunday, 14 July 2024

Deus Ex: Invisible War - Extract Textures

Note: All tools used are linked at the bottom of the post.

  1. Locate the Maps .ibd file that contains the textures you're looking for. For the Steam version of the game, they can be found in this directory:

    Steam\SteamLibrary\steamapps\common\Deus Ex Invisible War\content\DX2\Maps


    Note: If you're not sure which .ibd file has the specific texture you're looking for, the method I used was downloading any texture pack mod, such as the Deus Ex: Invisible War ESRGAN Pack. You don't need to install anything or add the mod to your game, you can simply view the contents of the files in your file browser. I used this to scroll through all the textures and visually find the file I wanted, and thus the name of the file I was looking for. I searched for this file in the Deus Ex 2 Materials Spreadsheet (created by Akven on ModDB) to determine the original texture database that particular texture was from (found in the MLB file column on the right).



  2.  After locating the .ibd file, you can copy it and paste it in another folder on the desktop, and use that as your working directory.

  3. Next, download the Thief 3 Tools .zip from Thief 3 Sneaky Upgrade on ModDB. This .zip file contains the tools needed to extract the textures from the .idb files. The particular file we need from that .zip is ibt_xbt_ibd_texture_extract.exe. Unzip the archive and drag this .exe file into the folder you created earlier with the .idb file you want to extract. 

  4. Double-click the .exe file, and it should run automatically on the .idb file in the folder, producing a subfolder called "Extracted" in the same directory.

    Note: I was describing how to find a specific texture in this guide as I didn't want to extract everything, however you can just extract all the textures by placing ibt_xbt_ibd_texture_extract.exe in the Maps folder and running it there instead, and all the textures should extract into a new subfolder called "Extracted" as before, but within the Maps folder.

  5. In the Extracted folder, all the image textures found in the .ibd file should be extracted in .dds file format.


    Note: If you want to edit the files they can be opened in an image editor, such as Photoshop, however a .dds file plug-in may be required, such as NVIDIA's Texture Tools Exporter (or the legacy version if you don't have access to a CUDA-accelerated GPU) or Intel's Texture Works Plugin. Links are provided below.

Tools

Tools for Editing & Exporting DDS Files:

Thursday, 18 May 2023

Deus Ex: Invisible War - Extract Audio

Note: All tools used are linked at the bottom of the post.

  1. Download and install Deus Ex Invisible War Sound Drone
  2. Run the application - it should automatically detect your game installation and you should be greeted with a window and a list of audio files
  3. Unlike a lot of audio extractors, this one also accesses the subtitle files (for conversational audio). If you resize the subtitle column to enlarge it you can view the full text of the audio
  4. You can also play them by right-clicking and selecting Play from the drop down menu
  5. As the list is very long (nearly 40,000 files!), and there is no text search option. To help narrow down the search of specific audio files, check the Tags tab which showed how the audio is organised in a hierarchical tree. For example, for conversational audio for a specific character like Nicolette DuClare, you can check for them under the voice category
  6. After finding the relevant tags for what you need, go back to the Sounds tab and right-click the content list and select Filter from the dropdown menu
  7. A new window should pop up where you can search for and apply the tags using two drop-down lists
  8. Just selecting the tags might still generate a very long list with some irrelevant files, to circumvent this, you can play around with deselecting Show Mission Sounds, and Show Missing Files, as well as selecting audio from specific missions with the tick boxes
  9. The list should update with files that match the tags you added to the filter, for this example, I selected the voice tag and projectdirector subtag, and as you can see all the names have "projectdirector" included in the name
  10. To extract the audio files, right-click the file you want and select Extract from the drop-down menu. You can also select multiple from the list using Shift or CTRL click and extract all of the selected files. A confirmation window will appear once the files are done extracting too
  11. You will probably notice it did not ask you for an extraction destination, that is because the files automatically extract to the installation location of DXIW Sound Drone (or AppData, see second screenshot for path). Navigate there to find your extracted files

Tools

Monday, 27 March 2023

Deus Ex: Invisible War - Extract Video

Note: All tools used are linked at the bottom of the post.

  1. Locate the video files. They should be .bik files within the VideoTextures folder. For the Steam version of the game, they can be found in this directory:

    Steam\SteamLibrary\steamapps\common\Deus Ex Invisible War\content\DX2\VideoTextures

  2.  The .bik files can already be played with RAD Video Tools (Bink Video Player). You can convert these files into .mp4 files using the same software. To do this, open RAD Video Tools and navigate to the .bik file, select it and click the Convert a file button in the tools section
  3. In the converter window, select .mp4 as the output format, and make sure Convert Video and Convert Audio are checked. 
    Note: .bik files come up a few times in my guides for extracting video from other Deus Ex games, and in those circumstances I had avoided converting the audio this way. This is because those .bik files normally have multiple audio channels and the ones that play in the converted video may have some missing. In those situations, I split the audio channels using a different tool and mix them down into the resulting video. As the Invisible War videos seem to just have one audio channel, this is unnecessary, so it's fine to just check the Convert Audio box - you do not need to worry about losing any of the audio tracks.
  4. Click Convert and a window should appear showing the progress of the conversion
  5. When complete, the folder with the .bik file in it should now have an .mp4 file with the same filename, and can be played with a normal video player
View the result on YouTube:

Tools

Saturday, 25 March 2023

Deus Ex: The Conspiracy - Extract Video

Note: All tools used are linked at the bottom of the post.

Deus Ex: The Conspiracy (2002) is the PlayStation 2 port of the original Deus Ex. While it can't be said to have been an improvement over the original as it had to be simplified for a console release, it had some interesting additions. Most notably the character models and the cinematic cutscenes that replaced the Intro and the three ending sequences--Merge with Helios, Illuminati Rule, and A New Dark Age. In this post I will demonstrate how to extract these four videos from the game.

Locating the video files

  1. Insert the PS2 disk or mount an .ISO image file of the PS2 disk
  2. Browse the contents of the disk to find the .PSS files (PS2 video)
  3. Copy these files off the disk and into a folder on your Desktop

Extracting the audio and video stream from the .PSS file

  1. Extract the contents of the PSS Demux archive and run PSS_demux.exe
  2. Drop the .PSS files onto the window
  3. The window will now display the progress of the conversion and will inform you once it is done
  4. In the folder, there should now be video (in .M2V) and audio files (in .WAV) for each of the cutscenes

Combine the audio and video stream into one file using MKVToolNix (simple/GUI)

  1. Open MKVToolNix > Multiplexer tab > Source files > right click the box > select Add files
  2. Select the video and audio stream for a specific cutscene, in this example I chose the Helios ending > click the Start Multiplexing button at the bottom
  3. When the progress bar at the bottom right says 100% it should be complete
  4. In the output folder, there will be an .MKV file that has the audio and video combined
  5. It can now be played as normal

Combine the audio and video stream into one file using FFmpeg (complex/CLI)

Note: This method assumes you already have FFmpeg installed and accessible via Command Prompt (it has been added to your path environmental variable). If you don't, here are installation instructions for Windows.
  1. In the same folder as all the video and audio streams, go to the address bar at the top where it displays the folder directory, and type in cmd. This opens up a Command Prompt window with the directory automatically set to the folder.
  2. Enter the following command, replacing the name with what video and audio you want to combine, for example for the Intro cutscene:

    ffmpeg -i intro.m2v -i intro_pcm.wav -c:v copy -shortest output.mp4

  3. Upon running the command, the progress will be shown in the cmd window

    Note: You can also create a batch script and save it in the folder to do all of them in one go, for example:

    ffmpeg -i intro.m2v -i intro_pcm.wav -filter:v "crop=640:360:0:60" -c:v copy -shortest  -c:v libx264 -pix_fmt yuv420p intro.mp4

    ffmpeg -i darkages.m2v -i darkages_pcm.wav -filter:v "crop=640:360:0:60" -c:v copy -shortest  -c:v libx264 -pix_fmt yuv420p darkages.mp4

    ffmpeg -i illumin.m2v -i illumin_pcm.wav -filter:v "crop=640:360:0:60" -c:v copy -shortest  -c:v libx264 -pix_fmt yuv420p illumin.mp4

    ffmpeg -i helios.m2v -i helios_pcm.wav -filter:v "crop=640:360:0:60" -c:v copy -shortest  -c:v libx264 -pix_fmt yuv420p helios.mp4
    This script not only merges the audio and video, it also crops the black bars at the top and bottom of the video, leaving the final .MP4 output with a 16:9 aspect ratio.
  4. Once complete, within the folder there should now be a video called output.mp4 which has the video and audio streams combined into one file
  5. It can now be played as normal
  6. Rename the output.mp4 file and repeat the same process with the rest of the files
View the results on YouTube:
Note: I'm currently in the middle of upscaling these to 4K, they will be uploaded soon and I will update this post with instructions on how to do this.

Upscaled example:

Tools

Saturday, 18 March 2023

Deus Ex - Extraction Guides (Master Post)

Deus Ex (2000)

Deus Ex: The Conspiracy (2002)

Deus Ex: Human Revolution (2011)

Deus Ex: The Fall (2013)

Deus Ex: Mankind Divided (2016)

Deus Ex: Mankind Divided - Extract Textures & Models

Note: In this post, I will not be covering how to unpack the game content as I have already covered this before in a previous post. You must unpack the game files before starting here, so for instructions on how to do that please follow the other guide I created, and then come back to this post which is purely focusing on textures and models.

Exporting textures to .png using DEMDDatabase

  1. Run DEMDDatabase.exe and open the unpacked database from the DXMDExtract extraction
  2. In the file tree, search for the texture(s) you want, for example for character textures, they are usually found under characters > {character you want} > {character you want}_material, etc.
  3. Select the .tex file and go to File > Export as... > and then you can save the individual texture

Exporting meshes using DEMDDatabase

  1. Similar to the above, character models can be exported following the same method, just instead of going into the character materials, go back one step and find the character model file. This can be exported as an .obj file
  2. You can also export all the textures and meshes for a specific character by going to their parent node in the tree > File > Mass fast export.
    Note: This will not work unless you set your fast export savepath. To do this, go to File > Settings > Fast export tab > select the folder you wish to save to, and you can also change the automatic Image format and Models format from here too

This provides the basis of extracting meshes, but anything more complicated such as functional wireframes and animations goes beyond the scope of this instruction guide. It is possible to load and combine the different mesh parts and material textures into Blender (or preferred 3D software):

Tools

Please view the Tools section of my other guide to see the full list of tools needed to extract and convert content from Deus Ex: Mankind Divided.

Upcoming

I will update this post soon with instructions on converting the .hair files and importing everything into Blender.