Earth Defense Force 3/2017 Portable Voice File - Sound_Sgo.dpk

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
blazevx
Posts: 3
Joined: Fri Sep 16, 2016 4:06 am

Earth Defense Force 3/2017 Portable Voice File - Sound_Sgo.dpk

Post by blazevx »

Hi, just wondering if I could get some help with a way to unpack and repack this file.

I'm trying to create an undub for the Europe version of the game and this is the Japanese voice sound file that I'm trying to replace the Europe version with but because it refuses to play when inserted into the Europe game I thought I see if it could be unpacked and repacked so I could replace the files inside it, as far as I'm aware both version of the files are the same format but if it would help to upload the Europe one then I will upload it as well.

Here is the Japanese sound file. https://mega.nz/#!H48xQa4A!RuNhEQw0VEWG ... Z3C8WuB744
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Earth Defense Force 3/2017 Portable Voice File - Sound_Sgo.dpk

Post by aluigi »

It's just a raw sequence of RIFF files.
You can use a file ripper or just this script:

Code: Select all

get DPK_SIZE asize
for OFFSET = 0 != DPK_SIZE
    savepos OFFSET
    idstring "RIFF"
    get SIZE long
    math SIZE + 8
    log "" OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
next
Maybe someone can help you with the codec of these audio files.
blazevx
Posts: 3
Joined: Fri Sep 16, 2016 4:06 am

Re: Earth Defense Force 3/2017 Portable Voice File - Sound_Sgo.dpk

Post by blazevx »

aluigi wrote:It's just a raw sequence of RIFF files.
You can use a file ripper or just this script:

Code: Select all

get DPK_SIZE asize
for OFFSET = 0 != DPK_SIZE
    savepos OFFSET
    idstring "RIFF"
    get SIZE long
    math SIZE + 8
    log "" OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
next
Maybe someone can help you with the codec of these audio files.

Thanks so much, it extracted perfectly.

Now I have a small problem, I'm unable to reinsert them into the Europe file because the sizes are different, so do you know of a way to make a brand new Sound_Sgo.dpk with the smaller files so there won't be a size issue?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Earth Defense Force 3/2017 Portable Voice File - Sound_Sgo.dpk

Post by aluigi »

First you have to find the file that contains the information about the archived files (because you provided only a raw container) and then you have to edit its information by hand or by making a program. No automatic "ready-to-use" solutions.
blazevx
Posts: 3
Joined: Fri Sep 16, 2016 4:06 am

Re: Earth Defense Force 3/2017 Portable Voice File - Sound_Sgo.dpk

Post by blazevx »

I looked but I really don't think there is one unless it's the eboot itself then I'm not sure how to edit it since I don't really know hex editing.