UNPACKING [.PAK] FILES FROM F1 2009 PSP

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Old Creator
Posts: 39
Joined: Sat Feb 20, 2021 8:04 am

UNPACKING [.PAK] FILES FROM F1 2009 PSP

Post by Old Creator »

Can Someone Make a QuickBMS Script for Unpack this .PAK file?
This is from F1 2009 PSP.
h3x3r
Posts: 165
Joined: Wed Jun 01, 2016 5:53 pm

Re: UNPACKING [.PAK] FILES FROM F1 2009 PSP

Post by h3x3r »

Code: Select all

####################################
get FILENAME basename
get FILES long
getdstring FILES_TMP 0xC

for i = 0 < FILES
   get NAME long
   get OFFSET long
   get SIZE long
   get SIZE_TMP long
   string NAME p= "%s/%08x.dat" FILENAME NAME
   log NAME OFFSET SIZE
next i
modd3r_wannab3
Posts: 2
Joined: Wed Jan 25, 2023 1:13 pm

Re: UNPACKING [.PAK] FILES FROM F1 2009 PSP

Post by modd3r_wannab3 »

Hello. Before I ask my question I would like you to know that it is my first time writting in a forum. I am mostly visiting them to find solutions given to people that asked in the past the same question as me. So I am sorry if I am off topic, or the answer to my question is located somewhere else etc.. Moreover, I do not know any coding (I had a few html classes in school a few years ago) so if explaining some terms is needed you need to explain them to me as if I was 10 years old and this means I cannot create any quickbms scripts obviously.
Now that I have said a few things about me it is time for my question. I was testing h3x3r's script with many file types found in f1 2009. I found out that when used with the .pac (not .pak) file for the pit radio it unpacks it successfully into .dat files with random names (hex I guess?) which are sound files that can be played (I used vlc). So I was thinking of making a mod by editing them in order to sound more like recent f1 games (Jeff's voice, new names etc.). I know that this is going to take a lot of work and that is why I didn't do anything before asking this: Is it possible to repack all these sound files into a .pac file after editing them so as to put them in the game?
To whoever reads this thank you for your time and I am sorry if it got too tiring.