Mafia 3 PCK script

Codecs, formats, encoding/decoding of game audio, video and music
Dima Bilan
Posts: 25
Joined: Tue Jul 26, 2016 12:07 am

Mafia 3 PCK script

Post by Dima Bilan »

Hello. I need a script to export and import audio of a file PCK Mafia 3. Use a variety of scripts, but they do not work. Perhaps here new encryption. That file https://yadi.sk/d/Jyy2kUuAwVFed.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mafia 3 PCK script

Post by aluigi »

Dima Bilan
Posts: 25
Joined: Tue Jul 26, 2016 12:07 am

Re: Mafia 3 PCK script

Post by Dima Bilan »

Unfortunately, this script doesn't export wwise. It simply parses PCK on a bunch of files DAT.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mafia 3 PCK script

Post by aluigi »

I don't know what's used by the other users to work on the extracted files.
I have mirrored this topic in the Audio section.
Dima Bilan
Posts: 25
Joined: Tue Jul 26, 2016 12:07 am

Re: Mafia 3 PCK script

Post by Dima Bilan »

I found a working script https://yadi.sk/d/-Olpcs_KwYohP. It exports wwise, but doesn't work reimport back.
x_hiro11
Posts: 61
Joined: Tue Nov 03, 2015 10:38 pm

Re: Mafia 3 PCK script

Post by x_hiro11 »

Dima Bilan wrote:I found a working script https://yadi.sk/d/-Olpcs_KwYohP. It exports wwise, but doesn't work reimport back.


Modify the vehicle and weapons parameters of the file is not (* .sds)?
Inside the Mafia III \ sds_retail folder?
x_hiro11
Posts: 61
Joined: Tue Nov 03, 2015 10:38 pm

Re: Mafia 3 PCK script

Post by x_hiro11 »

aluigi wrote:I don't know what's used by the other users to work on the extracted files.
I have mirrored this topic in the Audio section.


https://drive.google.com/file/d/0B4ecWo ... sp=sharing
—— weapons.sds

https://drive.google.com/file/d/0B4ecWo ... sp=sharing
—— sports_car_a.sds

The .sds file can not be extracted, the script is requested.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mafia 3 PCK script

Post by aluigi »

For the SDS archives the easiest solution at the moment is offzip -a :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mafia 3 PCK script

Post by aluigi »

The exact command-line is the following:
offzip -c 0x00010000 -a -1 FILE.SDS

But the extracted file seems to be an archive so a script is a better idea or you have to use a file ripper on it to dump all the textures.

*edit* already exists a script on my website for PS3, it must be just edited a bit to work on this PC version too.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mafia 3 PCK script

Post by aluigi »

x_hiro11
Posts: 61
Joined: Tue Nov 03, 2015 10:38 pm

Re: Mafia 3 PCK script

Post by x_hiro11 »



The extracted .dat file is also encrypted.

Completely no clue,do not know how to amend, huh, huh :lol: .
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mafia 3 PCK script

Post by aluigi »

I saw no encryption at all.
Probably you mean an unrecognized format.
x_hiro11
Posts: 61
Joined: Tue Nov 03, 2015 10:38 pm

Re: Mafia 3 PCK script

Post by x_hiro11 »

aluigi wrote:I saw no encryption at all.
Probably you mean an unrecognized format.


viewtopic.php?f=6&t=3224

Yes, that is what you mean, and ‘cars‘ folder.
Sds file can not be extracted with mafia_sds_ps3.bms.

===================================

The total game size is 42.9GB, and the files in the 'sds_retail' folder are (.sds files).

Another 'audio' folder accounted for 18.8GB, do not know which file should be modified.

Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mafia 3 PCK script

Post by aluigi »

Ok try version 0.2.1
ili
Posts: 81
Joined: Wed Sep 17, 2014 2:28 pm

Re: Mafia 3 PCK script

Post by ili »

any idea how convert wwise please
ner0
Posts: 15
Joined: Sat Jan 16, 2016 9:53 pm

Re: Mafia 3 PCK script

Post by ner0 »

ili wrote:any idea how convert wwise please

https://github.com/hcs64/ww2ogg
Lakko
Posts: 2
Joined: Sat Oct 15, 2016 5:47 pm

Re: Mafia 3 PCK script

Post by Lakko »

ner0 wrote:
ili wrote:any idea how convert wwise please

https://github.com/hcs64/ww2ogg


I tried this one, it created .ogg file from .wwise i have extracted from pck file (original wwise had 2,3mb and ogg has 2,5mb so it looks good to me). Problem is, it cant be played or converted either. I have also tried program called revorb.exe which was suggested in readme file of ww2ogg, unfortunately with no luck, program keeps crashing after calling it in command prompt. Any suggestions?

I want to dig through audio files and find some parts of game score that is not present in released album, especially variations of main theme which are used in some cutscenes.

Thanks for any help.
ner0
Posts: 15
Joined: Sat Jan 16, 2016 9:53 pm

Re: Mafia 3 PCK script

Post by ner0 »

Lakko wrote:
ner0 wrote:
ili wrote:any idea how convert wwise please

https://github.com/hcs64/ww2ogg


I tried this one, it created .ogg file from .wwise i have extracted from pck file (original wwise had 2,3mb and ogg has 2,5mb so it looks good to me). Problem is, it cant be played or converted either. I have also tried program called revorb.exe which was suggested in readme file of ww2ogg, unfortunately with no luck, program keeps crashing after calling it in command prompt. Any suggestions?

I want to dig through audio files and find some parts of game score that is not present in released album, especially variations of main theme which are used in some cutscenes.

Thanks for any help.

The conversion works fine for me, maybe you didn't convert it properly.
Try the following batch script:

Code: Select all

for %%f in (wwise_files\*.wwise) do (
  ww2ogg.exe --pcb packed_codebooks_aoTuV_603.bin %%f
)
Last edited by ner0 on Sat Oct 15, 2016 6:41 pm, edited 1 time in total.
Lakko
Posts: 2
Joined: Sat Oct 15, 2016 5:47 pm

Re: Mafia 3 PCK script

Post by Lakko »

Thank you so much my friend, it finally works!
dirtydanisreal
Posts: 3
Joined: Sat Oct 22, 2016 9:22 pm

Re: Mafia 3 PCK script

Post by dirtydanisreal »

any way to decrypt the .dat files?