Shrek The Third PC *.RES files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
lorenzo
Posts: 73
Joined: Sat Apr 23, 2016 10:59 pm

Shrek The Third PC *.RES files

Post by lorenzo »

anyone can create a script so I can extract these res files? thanks
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek The Third PC *.RES files

Post by aluigi »

Try this script:
http://aluigi.org/bms/spiderman_web_shadows.bms
The format seems to be the same, probably it's adopted by all the games developed by Shaba Games:
https://en.wikipedia.org/wiki/Shaba_Games
lorenzo
Posts: 73
Joined: Sat Apr 23, 2016 10:59 pm

Re: Shrek The Third PC *.RES files

Post by lorenzo »

aluigi How do I change the channels from wav to mono with this script? Or could you please provide me this script for the mono wav output?
lorenzo
Posts: 73
Joined: Sat Apr 23, 2016 10:59 pm

Re: Shrek The Third PC *.RES files

Post by lorenzo »

aluigi Will this script above extract wav with reverb?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek The Third PC *.RES files

Post by aluigi »

No idea of what you mean.
It simply dumps the audio as-is.
lorenzo
Posts: 73
Joined: Sat Apr 23, 2016 10:59 pm

Re: Shrek The Third PC *.RES files

Post by lorenzo »

How do I change the channels from wav to mono from this script? Without losing quality? Could you send me this same script for the output of the wav in mono? It's just for testing
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek The Third PC *.RES files

Post by aluigi »

Open the script with a text editor and put the following line before "#log NAME OFFSET SIZE":
math CHANNELS = 1
lorenzo
Posts: 73
Joined: Sat Apr 23, 2016 10:59 pm

Re: Shrek The Third PC *.RES files

Post by lorenzo »

Because when I play these mono wav this with the slow speed? Why does it happen?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek The Third PC *.RES files

Post by aluigi »

I think you have no idea of what you are doing.
This is an extraction script, not a "conversion" tool.
lorenzo
Posts: 73
Joined: Sat Apr 23, 2016 10:59 pm

Re: Shrek The Third PC *.RES files

Post by lorenzo »

aluigi when I put this math CHANNELS = 1 in the script before #log NAME OFFSET SIZE it extracts normal but the only problem is the duration of the wav files in mono for example before the duration was 02:05 and is now 04:10 help? so the problem is the duration of all the wav files in mono and this does not happen in stereo am i right or wrong?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek The Third PC *.RES files

Post by aluigi »

No, the only problem is that you ignore what people write: "data is saved as-is" and "not a conversion tool"
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shrek The Third PC *.RES files

Post by aluigi »

Additionally there are 2 types of audio data supported by these archives: raw pcm and ps adpcm:
The former obviously can be edited as much as you can because it's raw.
The latter is adpcm which is already compressed so stereo->mono is not possible, only left->mono or right->mono is possible but not with the script (except if you want to do the job by yourself playing with interleave and so on).
In your topic you have not even specified what's the codec of the files you want to convert.
If they are wav (raw pcm) the problem doesn't exist at all.