Tour De France 2022 [PKG]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
MSQ
Posts: 20
Joined: Sat Oct 30, 2021 7:59 pm

Tour De France 2022 [PKG]

Post by MSQ »

Good morning everyone.

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.

Image

I have uploaded a sample file here: https://tusfiles.com/hwyvvq9gf4kz

All help is greatly appreciated!

Thanks,
MSQ
Last edited by MSQ on Sun Jun 12, 2022 2:03 pm, edited 1 time in total.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Tour De France 2022 [PKG]

Post by Ekey »

Please use a better file hosting.
MSQ
Posts: 20
Joined: Sat Oct 30, 2021 7:59 pm

Re: Tour De France 2022 [PKG]

Post by MSQ »

Ekey wrote:Please use a better file hosting.

My apologies, I did not realise that 1Fichier wasn't suitable. I have swapped for a tusfiles link.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Tour De France 2022 [PKG]

Post by spiritovod »

Update: Actually format is quite simple, I managed to create proper script for extraction with filenames.
Last edited by spiritovod on Sun Jun 12, 2022 6:48 pm, edited 2 times in total.
MSQ
Posts: 20
Joined: Sat Oct 30, 2021 7:59 pm

Re: Tour De France 2022 [PKG]

Post by MSQ »

@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.

Thanks,
MSQ.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Tour De France 2022 [PKG]

Post by spiritovod »

@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.