Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Codecs, formats, encoding/decoding of game audio, video and music
frogz2007
Posts: 118
Joined: Sun Dec 14, 2014 3:56 pm

Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Post by frogz2007 »

I am guessing this is going to be relatively easy, since the game handle's stuff very simple (example; The levels are in the form of text files, so position data can be altered, models can be switched, and so on... Basically, what I'm asking is for a script that can both extract and re-import custom files into this. I would be so grateful if this can be done. Thanks.

https://www.dropbox.com/s/wa3uhs6g9fmxl ... KX.7z?dl=0

100 MB compressed
131 MB decompressed
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Post by aluigi »

So you want to dump just the SDAT section?

You can use a simple ripper script to do that:

Code: Select all

set SIGN string "STRM"
findloc OFFSET string SIGN
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET string SIGN 0 ""
    if NEXT_OFFSET == ""
        get SIZE asize
    else
        math SIZE = NEXT_OFFSET
    endif
    math SIZE -= OFFSET
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""
frogz2007
Posts: 118
Joined: Sun Dec 14, 2014 3:56 pm

Re: Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Post by frogz2007 »

Thank you! I appreciate all you have done for me.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Post by aluigi »

Anyway if you tell me exactly what data you need from that archive and how you need it, it's possible improve the script.
Basically the file is a sequence of STRM (0x60 bytes) and SDAT (dynamic size) so it depends what information you need from them.
frogz2007
Posts: 118
Joined: Sun Dec 14, 2014 3:56 pm

Re: Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Post by frogz2007 »

Well, basically this file contains all of the dialog from the game. I'm not sure which one it would be. I think it may be the STRM files I need.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Post by aluigi »

I have updated the script using the table at its end:
http://aluigi.org/papers/bms/others/skex_strm_sdat.bms

The data in the SDAT sections (there are more than one SDAT in each dumped file) are just raw mono VAG (22050hz?).
Parsing the format of the extracted files probably require more time and effort, so hope that this is a good starting point.
frogz2007
Posts: 118
Joined: Sun Dec 14, 2014 3:56 pm

Re: Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Post by frogz2007 »

Hmm. Is there any possible way you could get this WAD archives axtracted as well? They too, are from Monsters Inc. And, if possible, make it so it can be re-imported. Sorry if I'm over-working you/making too many requests.


https://www.dropbox.com/s/gcuaoj8r4l6u8 ... le.7z?dl=0
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Post by aluigi »

I don't think it contains a file table with information about offset and size of the archived files.
frogz2007
Posts: 118
Joined: Sun Dec 14, 2014 3:56 pm

Re: Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Post by frogz2007 »

Hmm, then what about these DIC archives?

https://www.dropbox.com/s/g5xjqgo9g1e4d ... nt.7z?dl=0
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Monsters, Inc. (PS2) - SKX file extractor/reimporter?

Post by aluigi »

The data in it doesn't have much sense. Probably not an archive of files.