Source code download: www.fluffyquack.com/tools/source/REtool.rar
If you're going to unpack a PAK, remember to get an exhaustive file list for RE2 or DMC5. Here are some sources of file lists:
RE2: cdn.discordapp.com/attachments/534576467561021445/663399479524851745/re2_pak_names_release.list (41122 / 64% filenames for the main PAK archive)
DMC5: cdn.discordapp.com/attachments/747887197692100640/792860147323240469/dmc5_pak_names_release.list (60249 / 90% filenames for the main PAK archive)
RE3 demo: cdn.discordapp.com/attachments/449840053049360388/691681498281017474/re3_pak_names_release.list (11389 / 93% filenames for the main PAK archive)
RE3: cdn.discordapp.com/attachments/652144216083791872/698236819741081660/re3_pak_names_release.list (38924 / 96% filenames for the main PAK archive)
Resistance open beta: cdn.discordapp.com/attachments/620964307856916480/694566854382846062/resistance_pak_names_release.list (13744 / 70% filenames for the main PAK archive)
Resistance: cdn.discordapp.com/attachments/620964307856916480/697454802807947324/resistance_pak_names_release.list (17755 / 91% filenames for the main PAK archive)
RE8 demo: cdn.discordapp.com/attachments/724331856002285679/837649137280483328/re8_pak_names_release.list
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
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.
It's a f@cking Trojan's nest!