Help extracting dialogue text from FMA3: Girl who succeeds God

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Taylor17387
Posts: 9
Joined: Tue Aug 15, 2017 2:49 pm

Help extracting dialogue text from FMA3: Girl who succeeds God

Post by Taylor17387 »

I've tried to use QuickBMS to extract dialogue files from the PS2 game "Fullmetal Alchemist 3: Girl who succeeds God" in order to translate it (it's in Japanese). But there seems to be no script yet for this game, and my attempts at writing one have failed to extract anything. I think the dialogue may be either inside a .pak file or a file called DATA0 (Windows shows it as unknown, but it may be a .dat). DATA0 appears largely empty, but there's some content towards the end.
The files are here:

https://drive.google.com/open?id=0B8-7FM...3RfLVhFYXc

https://drive.google.com/open?id=0B8-7FM...DRyLVY3UTg

I don't understand the structure of these archives; they look different from the ones used in the tutorials I've seen. But maybe someone around here knows better.
Thank you.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help extracting dialogue text from FMA3: Girl who succeeds God

Post by aluigi »

When you copy your posts from other forums you must copy every link separately...
Taylor17387
Posts: 9
Joined: Tue Aug 15, 2017 2:49 pm

Re: Help extracting dialogue text from FMA3: Girl who succeeds God

Post by Taylor17387 »

Damn, sorry! Here they are:

https://drive.google.com/open?id=0B8-7F ... 3RfLVhFYXc

https://drive.google.com/open?id=0B8-7F ... DRyLVY3UTg

Meanwhile I found the script to unpack the CFC.DIG file, though inside there were just .raw files, which I think are for sound and not what I was searching.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help extracting dialogue text from FMA3: Girl who succeeds God

Post by aluigi »

After a quick check, DATA0 is almost empty and contains only some playstation adpcm audio at the end while XA.PAK doesn't have information about the archived files so it's just data without a way to extract the files.
Probably you have also an index file, a small file that contains information about the files stored in XA.PAK.
Isn't XA a CD image for audio?

*edit* yes it's definitely a custom ISO image
*edit* it's easy to make the XA.PAK opening with an ISO program (like 7-zip) but there are problems accessing the files, probably it's caused by the chunk size set to 2048?
I think there are PS tools able to read XA.PAK without problems.
Taylor17387
Posts: 9
Joined: Tue Aug 15, 2017 2:49 pm

Re: Help extracting dialogue text from FMA3: Girl who succeeds God

Post by Taylor17387 »

I tried opening XA.PAK with image-mounting programs. But they don't recognize it as a valid CD image format. Not even programs like Alcohol 52% or MagicDisc which supposedly support CD-XA. I tried also with Vgmtoolbox, which has a CD-XA extractor, but it extracts nothing. Perhaps "XA" is just the name and it's truly a .pak file?
I don't know if this archive may have the files index. It mentions "XA.PAK" at one point, along with stage and character names:

https://drive.google.com/open?id=0B8-7F ... VdNNUhrbGs

This file can be further extracted with 7.zip. It produces two files, but one is empty. Other than this, I don't think there's anything more inside the original disc. The rest are the cinematic cutscenes (in .DSI format), and .IRX files. There's also this .IMG file (but again, no image program recognizes it):

https://drive.google.com/open?id=0B8-7F ... khwRlRzUkk
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help extracting dialogue text from FMA3: Girl who succeeds God

Post by aluigi »

I meant that you need to make a small modification to make it opening with cd images, try this script with xa.pak and you will get what I mean:

Code: Select all

get NAME basename
string NAME + ".iso"
findloc OFFSET binary "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
get SIZE asize
math SIZE - OFFSET
log NAME 0 0
putvarchr MEMORY_FILE 0x6000 0
append
log NAME 0 0x6000 MEMORY_FILE # comment out?
log NAME OFFSET SIZE
append

I bet that exist tools for PS that can read the obtained iso if you comment out that line of the script

*edit* what's funny is that there is a XA/XA.pak inside that iso. Are you sure you didn't make a mess while extracting the original PS image?
ADPCM data starts from offset 0x94810 without any header (0x946e7 of XA.PAK)
Taylor17387
Posts: 9
Joined: Tue Aug 15, 2017 2:49 pm

Re: Help extracting dialogue text from FMA3: Girl who succeeds God

Post by Taylor17387 »

Still no luck. The script to convert it to .iso worked fine, but mounting the new image just shows the original game disc contents again (which I don't understand how it's possible, really; it's like an infinite loop).
I must have messed the files really badly. I extracted them again and now the xa.pak looks entirely different in the hex editor:

https://drive.google.com/open?id=0B8-7F ... jVpaTlWNVk

However, when I converted the new file with the script, the iso couldn't be read by any program and gave an error. I tried the script with and without commenting out that line.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help extracting dialogue text from FMA3: Girl who succeeds God

Post by aluigi »

The directory tree of the file obtained with the script is perfectly visible with some programs like 7-zip, but it gives errors if you try to see/extract the files.

Anyway I think you can understand that I can't waste time with imcomplete/damaged/messedup files so if you are interested in the music I already told you were is located the raw PS adpcm data that you can play (there is some buzzing to be honest but probably it's necessary to "tune" it").
Good luck