Madagascar (PS2) Dialog Files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Madagascar (PS2) Dialog Files

Post by Mygoshi »

Hello, I need a script to extract dialog files from Madagascar on PS2.

File: https://mega.co.nz/#!8QoS1DJS!OV4aHxtkj ... 5fjmKfzWTo

Thanks!
Last edited by Mygoshi on Fri Jan 14, 2022 10:26 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Madagascar (PS2) Dialog Files

Post by aluigi »

The raw VAG data of that file starts from offset 0x3000
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PS2) Dialog Files

Post by Mygoshi »

Thanks for checking.
Last edited by Mygoshi on Fri Jan 14, 2022 10:26 pm, edited 2 times in total.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PS2) Dialog Files

Post by Mygoshi »

What do I have to do?
Last edited by Mygoshi on Fri Jan 14, 2022 10:27 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Madagascar (PS2) Dialog Files

Post by aluigi »

dump the rest and use mfaudio
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PS2) Dialog Files

Post by Mygoshi »

Right, though I'll not be able to remove the garbled sound at the beginning?
Last edited by Mygoshi on Fri Jan 14, 2022 10:28 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Madagascar (PS2) Dialog Files

Post by aluigi »

mfaudio allows you to specify an offset.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PS2) Dialog Files

Post by Mygoshi »

Don't you have a script for that?
Last edited by Mygoshi on Fri Jan 14, 2022 10:28 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Madagascar (PS2) Dialog Files

Post by aluigi »

Code: Select all

math OFFSET = 0x3000
get SIZE asize
math SIZE - OFFSET
log "dump.dat" OFFSET SIZE
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PS2) Dialog Files

Post by Mygoshi »

Thanks :D
Last edited by Mygoshi on Fri Jan 14, 2022 10:29 pm, edited 2 times in total.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PS2) Dialog Files

Post by Mygoshi »

I have to specity offset to each dialogs?
Last edited by Mygoshi on Fri Jan 14, 2022 10:29 pm, edited 2 times in total.
MotherFucker
Posts: 16
Joined: Mon Feb 02, 2015 7:11 am

Re: Madagascar (PS2) Dialog Files

Post by MotherFucker »

Mygoshi wrote:I have to specity offset to each dialogs?
Nope, it's literally a single stream with markers. You're really supposed to decode it as a whole.
Figuring out how markers are stored should be relatively easy.

GOLFFR.GZ
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PS2) Dialog Files

Post by Mygoshi »

Is there some possibilities to try with other versions?

I will uplod some files if you want
Last edited by Mygoshi on Fri Jan 14, 2022 10:28 pm, edited 2 times in total.
MotherFucker
Posts: 16
Joined: Mon Feb 02, 2015 7:11 am

Re: Madagascar (PS2) Dialog Files

Post by MotherFucker »

Mygoshi wrote:Is thera some possibilities to try with other versions?

I will uplod some files if you want
Sure, I'll give it a shot :)
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PS2) Dialog Files

Post by Mygoshi »

Fixed. I extracted Xbox dialogs with EkszBox ^^ Thanks.