View Single Post
  #1  
Old 26-08-2021, 07:55
panker1992's Avatar
panker1992 panker1992 is offline
Registered User
 
Join Date: Oct 2015
Location: Always Somewhere
Posts: 566
Thanks: 116
Thanked 889 Times in 321 Posts
panker1992 is on a distinguished road
Quote:
Originally Posted by L33THAK0R View Post
Hi all,

While the subject matter doesn't really relate to this sub-forum, its applications do. I'm asking it here, rather than somewhere like "Stack Overflow", since there are individuals here who have some experience with the manual component of this process, and I don't have anything to contribute, as partial work on a given subject matter is required/strongly encouraged within the submitted inquiry.

Some archives like the ".PCK" sound containers (which can be found in titles such as "A Plague Tale: Innocence) store their containing files uncompressed, and sequentially (based off of initial comparison of the archives hex-code and extracted files, extracted from the container), as well as "Metro 2033" & "Metro: Last Light"s, ".vfs0" archives (using the same methodology).

Currently, while extraction is supported, to my knowledge, tools for repackaging these file-types are not publicly available. While it is possible to manually calculate these offsets, such a process would be incredibly time consuming, as some of these archives have upwards of 1000+ files (ranging from as small as a few hundred kilobytes to a few megabytes).

While this is a long shot, does anyone know of any tool suite capable of being fed a series of files as an input, grabbing the first and last 20 or so offsets (for example), then search through a secondary input (the "main" archive) for the location (if present) of the start and end offsets, then record this to a separate file, such as a simple text document?

If such a tool suite doesn't exist, I'll likely start looking into developing my own tool for it, as I have a strong feeling I'll be dealing with this type of modification a fair bit in my future releases.
Here is how to extract PCK files


quickbms -d -Y pck_to_wem.bms data.pck

quickbms -w -r pck_to_wem.bms data.pck data.pck_extracted

Second one is how to import back in
Attached Files
File Type: zip pck_to_wem.zip (688 Bytes, 38 views)
__________________
My projects : Masked Compression, lzma2(xz) on Freearc, Zstd compressor for windows
My optimizations : packjpg.exe, zstd, lzham, precomp-dev-0.45.

Last edited by panker1992; 26-08-2021 at 07:57.
Reply With Quote
Sponsored Links