Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Mafia 3 PCK script

Featured Replies

  • Author
  • Localization

Dima Bilan, posted Sat Oct 08, 2016 7:19 pm (17899)


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.
  • Author
  • Localization

Dima Bilan, posted Sun Oct 09, 2016 7:18 pm (17917)


Unfortunately, this script doesn't export wwise. It simply parses PCK on a bunch of files DAT.
  • Author
  • Localization

aluigi, posted Sun Oct 09, 2016 9:39 pm (17920)


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.
  • Author
  • Localization

x_hiro11, posted Tue Oct 11, 2016 5:12 am (17950)


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?
  • Author
  • Localization

x_hiro11, posted Tue Oct 11, 2016 5:56 am (17952)


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.
  • Author
  • Localization

aluigi, posted Tue Oct 11, 2016 6:15 am (17955)


For the SDS archives the easiest solution at the moment is offzip -a :)
  • Author
  • Localization

aluigi, posted Tue Oct 11, 2016 7:24 am (17957)


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.
  • Author
  • Localization

aluigi, posted Tue Oct 11, 2016 9:04 am (17963)


I saw no encryption at all.
Probably you mean an unrecognized format.
  • Author
  • Localization

x_hiro11, posted Tue Oct 11, 2016 9:10 am (17964)


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
  • Author
  • Localization

aluigi, posted Tue Oct 11, 2016 10:20 am (17967)


Ok try version 0.2.1
  • Author
  • Localization

ili, posted Fri Oct 14, 2016 11:57 am (18051)


any idea how convert wwise please
  • Author
  • Localization

Lakko, posted Sat Oct 15, 2016 5:59 pm (18070)


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.
  • Author
  • Localization

ner0, posted Sat Oct 15, 2016 6:21 pm (18072)


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:
for %%f in (wwise_files\*.wwise) do (
  ww2ogg.exe --pcb packed_codebooks_aoTuV_603.bin %%f
)
  • Author
  • Localization

Lakko, posted Sat Oct 15, 2016 6:39 pm (18073)


Thank you so much my friend, it finally works!
  • Author
  • Localization

dirtydanisreal, posted Sat Oct 22, 2016 9:33 pm (18263)


any way to decrypt the .dat files?
  • Author
  • Localization

boumkwo, posted Wed Nov 09, 2016 1:24 am (18661)


I managed to extract most of the .pck files in edit>audio>packages>english(us) however, I couldn't play the files preceded by fmv; I even tried to play them in ravioli explorer and got 2 error. Any help would be appreciated thanks.
  • Author
  • Localization

boumkwo, posted Wed Nov 09, 2016 7:12 pm (18681)


boumkwo wrote:
I managed to extract most of the .pck files in edit>audio>packages>english(us) however, I couldn't play the files preceded by fmv; I even tried to play them in ravioli explorer and got 2 error. Any help would be appreciated thanks.


Nvm I figured it out :mrgreen: . The fmv.wwise files contain cutscenes audio and most of them are multiple channels. I modified ner0's code and made a batch to convert .wwise to .ogg as his code wouldn't work on my PC for whatever reasons.

Code:
for %%b in (*.WWISE) do ww2ogg.exe --pcb packed_codebooks_aoTuV_603.bin "%%b"
for %%c in (*.OGG) do revorb.exe "%%c"
del *.wwise
pause
exit


Make sure to include revorb.exe, ww2ogg.exe (used ww2ogg024), and packed_codebooks_aoTuV_603.bin in the folder containing your .wwise files for the batch to work.
  • Author
  • Localization

ner0, posted Wed Nov 09, 2016 7:51 pm (18683)


boumkwo wrote:
Nvm I figured it out :mrgreen: . The fmv.wwise files contain cutscenes audio and most of them are multiple channels. I modified ner0's code and made a batch to convert .wwise to .ogg as his code wouldn't work on my PC for whatever reasons.

Batch is weird sometimes.
I have a vague memory of one script that would work on WinXP but then not on Win7 just because of the way if/else was chained together.
In your case I'm not sure but you seem to have made two adjustments; one is enclosing the variables inside quotes, which is the smart thing to do because paths might sometimes contain spaces and the quotes make it so that the path is interpreted as a single argument instead of two or more; secondly is the removal of the parenthesis, which is not needed if you only have one line of code in the block (as is the case). There is also the chance that it was a combination of both where the path or filename was not enclosed in quotes and if it contained parenthesis then it either would open another clause or close the first one prematurely. Anyway, you got it working and that's what matters. :)
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.