Post by matt176 on Sept 11, 2022 15:45:50 GMT 10
Resident Evil 7: Biohazard .pak extracting tutorial
By matt176
Tutorial for both the RT and DX11 version
Things that you'll need:
The tool comes with various batch files to help with automating operations:
- extract-pak.bat - Drag a PAK file onto this to unpack it (remember to manually edit the batch file and update the filename of the filelist. By default it's set to RE2's file list name).
- texture-conv.bat - Drag and drop TEX/DDS textures files to convert them (note that for converting DDS to TEX, you'll need the original TEX file in the same directory as the tool updates the TEX file rather than creating it from scratch).
- texture-conv-all-dds.bat - Run this to convert all DDS files in the same directory to TEX.
- texture-conv-all-tex.bat - Run this to convert all TEX files in the same directory to DDS.
A couple of notes:
- By default, extract-pak.bat has "-skipUnknowns" set which means it will not extract files with unknown filename. Remove this if you want those files extracted too.
- DDS -> TEX conversion works by copying over the image data. It does not update any part of the TEX header, so you should make sure the image type, size, and mipmap count are the same. This information is displayed when you convert from TEX to DDS. Note that the mipmap count shown includes the primary image as one mip.
- You can add "-tex" to extract-pak.bat if you want the tool to convert all found TEX files to DDS while extracting a PAK archive.
- Here's a guide explaining my preferred workflow for converting images to DDS: residentevilmodding.boards.net/thread/12573/texture-conversion-workflow-creates-version
- Here's a guide listing various workflows for iterating on mod development: www.patreon.com/posts/45460253
guide on how to properly unpack the game:
Step 1: Download and extract the REtool
Step 2: Edit the extract-pak.bat file, change the list name, you can also remove the "skipUnknowns" if you want files with an unknown path:
Pro tip: Don't forget that the list and all the REtool's files need to be in the same place
Step 3: Drag and drop the re_chunk_000.pak into the [This is the base game. All the other .pak files are just game patches]
After everything is extracted, you can get lost among thousands of files as much as you please!
Thanks to Ekey who has done work figuring out the PAK format used in RE Engine games. He also created a hook letting us dump filenames from RE Engine games, and FluffyQuack for making the REtool.