Please may I request some help making a QuickBMS script for the game Tour De France 2022? The archives in this game have a PKG extension and the files inside the archives are compressed using LZMA from what I can understand.
I cannot seem to decipher the file list at the start of the file due to inexperience.
@spiritovod Thanks for the script. I did manage to unpack and decompress the streams with VGMToolbox + QuickBMS without a script. Fortunately, I was correct about LZMA being used here.
I checked about compressing the data back using comtype lzma_compress however QuickBMS compresses the data a lot smaller to the original stream. Is there a way to get QuickBMS to either compress the decompressed data in an identical or similar fashion to the original compressed stream? Or, read the stream info to recompress with a different tool? I don't know if QuickBMS has support for comtype parameters or not.
@MSQ: Afaik, comtype accepts additional parameters like they're used in original respective functions in code, but never used them or saw examples, so can't tell anything about this partcular case. If you have another tool, which can produce proper results, you can use it in quickbms via "comtype execute [...]"
Regardless, I've updated the script, it can now properly extract everything with proper names.