Shrek the Third (.res)

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

Shrek the Third (.res)

Post by Mygoshi »

Hi, could someone please help me extracting the .res from this game?

Link to the "streams.res" file (filecutted): first file - https://mega.nz/#!bo9AgRqZ!BNyzeHy7SwxF ... tKn5UU6gns
second file - https://mega.nz/#!C9M0yCIT!-PG8MPvGonoh ... AEd9umCHrs

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

Re: Shrek the Third (.res)

Post by aluigi »

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

Re: Shrek the Third (.res)

Post by Mygoshi »

The script doesn't work. It extracts one 11 mb file and two 1kb other files.
Last edited by Mygoshi on Fri Jan 14, 2022 10:08 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek the Third (.res)

Post by aluigi »

In this case I need the whole file.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Shrek the Third (.res)

Post by Mygoshi »

It's 1GB though
Last edited by Mygoshi on Fri Jan 14, 2022 10:07 pm, edited 1 time in total.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Shrek the Third (.res)

Post by Mygoshi »

I can upload it this evening.
Last edited by Mygoshi on Fri Jan 14, 2022 10:07 pm, edited 1 time in total.
brendan19
Posts: 144
Joined: Fri Aug 08, 2014 11:25 am

Re: Shrek the Third (.res)

Post by brendan19 »

Here's 10MB of the streams.res file. There's a file table and what look like multiple audio headers at the beginning of the file.

Shrek the Third Streams
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek the Third (.res)

Post by aluigi »

Thanks, I have updated the script to version 0.2.
Just a note, I don't know if it's still 100% compatible with Spiderman Web of Shadows. I have added the new code at the end so worst-case-scenario you get an error after having correctly extracted all the files.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Shrek the Third (.res)

Post by Mygoshi »

It doesn't work. Extract 3 files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek the Third (.res)

Post by aluigi »

copy&paste the output of quickbms
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Shrek the Third (.res)

Post by Mygoshi »

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek the Third (.res)

Post by aluigi »

Try it now
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Shrek the Third (.res)

Post by Mygoshi »

It works perfectly, thanks! What was the error just out of curiosity?
Last edited by Mygoshi on Fri Jan 14, 2022 10:06 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek the Third (.res)

Post by aluigi »

It wasn't an error but a change in the format.
I tried to parse the archive considering also the spiderman format but instead they are separate.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Shrek the Third (.res)

Post by Mygoshi »

Do you have any ideas for the extracted files? It's actually PCM Raw Little Endian, 44100hz and 2 Channels. Header skip, I don't know..
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek the Third (.res)

Post by aluigi »

I have updated the script to version 0.2.2 for automatically generating the headers.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Shrek the Third (.res)

Post by Mygoshi »

Ok, thanks ^^ It's good because your website is going to be helpful with a lot of games with scripts
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek the Third (.res)

Post by aluigi »

Usually I'm in doubt if adding headers or not in these situations because they don't allow reimporting (or make it difficult).
In the past I had a small idea of introducing a new command for automatically adding headers for common file formats with the effect of creating smaller scripts (no DUMP_VAG and DUMP_WAV for example) and to allow quickbms to automatically skip the header when reimporting.

Maybe would be cool to make a list of formats that should be supported with a similar option in case in future I decide to implement it.