Xcom Dos 1.4 Sound Extraction Tool
Posted 14 December 2004 - 05:17 PM
Things I have been asked about this and can answer from experience.......
Q: Can it extract sound files from the first version of Dos Xcom 1.2 Sound.cat files?
Comment: Renamed the sound.cat files to sample.cat and tried. Manages to seemingly extract files but doesn't work....Playing the "extracted" files will always give you a "file corrupt" message
Q: Can it extract sound files from the TFTD Sample.cat files??
Comment: Almost manages to the do the job, but the parameters are different enough to throw things off....almost doesn't get it. I get a "class not registered" message when I tried to play these "extracted" files.
Q: How about Xcom Gold/CE; Can it extract stuff from there??
Comment: EXTREMELY similar in structure, unfortunately, not similar enough to immediately insert back into the old 1.4 Dos sample.cat file and have things work 100%. The engines that play the sound effects are dissimilar enough to throw off even the most similar of wav files slightly...Some files will work, others will not. Will not extract everything correctly as in the 1.4 version....will sometimes corrupt extracted files. Just try copying the sound files from MOKS files available at this forum to your DOS 1.4 sound folder and you can see (listen)for yourself how badly off the engines are(CE as opposed to DOS) ....Especially the Alien death screams, they are really weird.
Posted 14 December 2004 - 05:52 PM
look at my posts in mok's thread: http://www.xcomufo.c...?showtopic=4702, they cover formats of both 1.2 and 1.4, and explanation why mok's patch does not work with 1.4.
the ce and 1.4 sound files are exactly the same.
tftd sound files have slighly different format. for now i can say only that they are headerless signed pcm.
edit: wrong link
Edited by quantifier, 14 December 2004 - 06:02 PM.
Posted 14 December 2004 - 07:13 PM
Posted 14 December 2004 - 07:48 PM
anyway, here are three rippers. i don't remember which one i used, but i extracted 1.4/ce sounds 100% correct (files sample.cat, sample2.cat, sample3.cat)
as for 1.2, here is simple program i wrote for 1.2 sound extraction. it is _very_ crude and completely _not_ fool proof, doesn't do any checks, and will work correctly only on sound1.cat, sound2.cat and intro.cat files (these 3 store respectively battlescape, geoscape and intro sounds). create an empty directory, copy there one of the files and the program, then give filename as paramater (eg. 'oldrip.exe sound1.cat') and it will create separate file for each sound. to play them you have to open them as raw audio data, unsigned 8 bit @ 8 kHz.
i think of writing a program (set of programs) to extract/rebuild sound files. however, as my knowledge is not sufficient, they won't do any converting/resampling, just simple file operations.
Posted 15 December 2004 - 04:48 PM
Posted 18 December 2004 - 03:15 PM
i would post it as attachment, but i got permission on 'upload' directory error. anyway, download from here.
to use the program put .execs in ufo\sound directory, then run rip.exe and ripold.exe, resample old files you want to use, rename either newxx.wav or oldxx.wav to ripxx.wav and run glue.exe.
if you don't have any good program like cool pro edit, or don't know how to use it, or have ce (ce doesn't have old sound files while in dos version they are simply unused), download already resampled sounds in proper format from here.
i wrote these programs mainly for me, so use them at your own risk.
Posted 18 December 2004 - 07:34 PM
Posted 19 December 2004 - 07:11 AM
did you remember to rename oldxx.wav files to ripxx.wav? it is the part that has to be made manually, because interface to do it from within the program would make sense only if i knew how to make program play sound. glue.exe halts when it can't find ripxx.wav (if you ran it under windows you might haven't seen the message). it would explain why sample2.new was blank.
Edited by quantifier, 19 December 2004 - 07:45 AM.
Posted 19 December 2004 - 09:52 AM
Posted 19 December 2004 - 10:36 AM
exactly what message do you get when you run glue.exe?
is the number always the same?
and into what directory did you put the waves?
Edited by quantifier, 19 December 2004 - 10:37 AM.
Posted 19 December 2004 - 12:21 PM
I have Win98 with a P3@800Mhz.
The message I am getting is; missing file: ripped\rip01.wav
Yes, its the same message every time.
The sound files(s) I have are located under a folder named "Ripped" on the D drive.
The "Ripped" folder is not under any other folder
The .wav files themselves are named Rip01.wav-Rip55.wav.
All of the renamed rip wav files are taken from your download here at this forum.
Like I said, for some reason, the "glue" program is looking for a file with the full ripped\ripxx.wav name by the looks of it. It isn't simply looking for a file with the name rippedxx.wav or ripxx.wav. As far as I can tell, the file(s) it is looking for has to be named ripped\ripxx.wav.....which is impossible. I have to admit, it doesn't make any sense why it would have this problem on one computer but not another.
Edited by Inteck, 19 December 2004 - 12:31 PM.
Posted 19 December 2004 - 12:40 PM
and btw, you might want to use some sounds from 1.4 that are almost the same as in 1.2 (esp. footsteps), because of their higher quality. (11 kHz 8bit is better than resampled 8 kHz 6bit)
Edited by quantifier, 19 December 2004 - 12:53 PM.
Posted 19 December 2004 - 01:12 PM
Posted 19 December 2004 - 01:19 PM
anyway, good thing you got it working.