|
|
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Question about automating generation of start & end file offsets for stored archives
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. Last edited by L33THAK0R; 26-08-2021 at 03:29. Reason: simplified bits and bobs, general editing. |
Sponsored Links |
#2
|
||||
|
||||
Quote:
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
__________________
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 08:57. |
#3
|
||||
|
||||
Quote:
I'm still quite interested in the inquiry to the existence of a tool/suite, mentioned in the original post, as should one not exist I'll get straight to work developing one! |
#4
|
||||
|
||||
My repack size of the game which is one of my favourites of course
9.15GB final size
__________________
My projects : Masked Compression, lzma2(xz) on Freearc, Zstd compressor for windows My optimizations : packjpg.exe, zstd, lzham, precomp-dev-0.45. |
#5
|
|||
|
|||
Quote:
So, starting from the extracted files from .pck file, how can I "reduild" a new .pck file without the original one? |
#6
|
|||
|
|||
Quote:
- use Bincat by Aluigi to concatenate the output wems into one large file - use hdiffz to make a patch between the original PCK and the concatenated data Then, in your repack installation, concatenate the wems with bincat and apply the patch you made with hpatchz to restore the original PCK. |
#7
|
||||
|
||||
Another solution:
Use xtool erase and decode functions to restore original files back into modified pck archive.
__________________
Haters gonna hate
|
The Following User Says Thank You to KaktoR For This Useful Post: | ||
Masquerade (31-10-2022) |
#8
|
|||
|
|||
Quote:
So how can I correctly use Bincat and hdiffz procedure? |
#9
|
|||
|
|||
Quote:
Code:
bincat extracted_data\* new.pck hdiffz-x64 new.pck old.pck patch.diffz Code:
bincat extracted_data\* new.pck hpatchz-x64 new.pck patch.diffz old.pck |
The Following User Says Thank You to Masquerade For This Useful Post: | ||
Guravkov2010 (02-11-2022) |
#10
|
|||
|
|||
Quote:
|
#11
|
|||
|
|||
Quote:
Which file do I have to use in my repack? Only patch.diffz file? I don't think so, because, in order to create the original "VO_MEDIA.PC.PCK" file, I need patch.diffz file and .wem file or the file create by bincat.exe. So I increase the final .bin file, instead of reducing it. So, how can I do? |
#12
|
||||
|
||||
You have to include modified PCK file + the patch file obviously to restore back to original file.
__________________
Haters gonna hate
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
cd burner help | snatchcrash | CD/DVD-Writers | 1 | 14-09-2002 05:32 |
air force delta | snake | DC Games | 0 | 15-04-2001 05:34 |
air force delta | snake | DC Games | 1 | 13-04-2001 21:04 |
HELP ME PLZ!!!! | Dalvin | DC Games | 0 | 02-01-2001 23:15 |
HELP ME PLZ!!!! | Dalvin | DC Games | 0 | 02-01-2001 23:14 |