PDA

View Full Version : Does COD2 support .mp3 weapon sounds?



RobsoN
31st January 2013, 13:19
Hello guys.

Last time i wanted to convert .wav weapons sounds to .mp3. I know COD2 supports .mp3 files but even i compiled the .wav file, i got error about invalid file or corrupt file. I tried to compile with all bit rates, and it doesnt matter.I used Sony vegas and WAV MP3 converter. I remember i was converting .wav files to .mp3 and it work (it just was mod sounds no weapon). Any suggestions or tips? Thanks you.

P.S: I'm converting .wav to .mp3, beaucose .mp3 size is smaller than .wav (I'm on 1.0 so that mean a lot).

Edit:

.csv file


,,,,,,,,,,,,,,,,,,,,,,,
"name","sequence","file","vol_min","vol_max","vol_mod","pitch_min","pitch_max","dist_min","dist_max","channel","type","probability","loop","masterslave","loadspec","subtitle","compression","secondaryaliasname","volumefalloffcurve","startdelay","speakermap","reverb","lfe percentage"
,,,,,,,,,,,,,,,,,,,,,,,
"#RPK",,,,,,,,,,,,,,,,,,,,,,,
"weap_rpk_fire",,"weapons/rpk/rpk_fire.mp3","0.66","0.71","wpnai","0.98","1.03",35,8400,"weapon",,,,"0.7",,,,,"weapon2",,,,
"weap_rpk_fire_plr",1,"weapons/rpk/rpk_fire.mp3","0.9","0.95","wpnplyr",1,"1.1",500000,,"local",,6,,"0.85",,,,,,,,,"0.2"
"weap_rpk_fire_plr",2,"weapons/rpk/rpk_fire.mp3","0.85","0.9","wpnplyr","0.9","1.2",500000,,"local",,,,"0.85",,,,,,,,,"0.2"

Errors:
124

My .mp3 file and original .wav file
http://myextreme.pl/robson/attatch.zip

kung foo man
31st January 2013, 13:52
Instead of:

"weap_rpk_fire",,"weapons/rpk/rpk_fire.mp3","0.66","0.71","wpnai","0.98","1.03",35,8400,"weapon",,,,"0.7",,,,,"weapon2",,,,

try:


"weap_rpk_fire",,"sound/weapons/rpk/rpk_fire.mp3","0.66","0.71","wpnai","0.98","1.03",35,8400,"weapon",,,,"0.7",,,,,"weapon2",,,,

(missed the "sound/...")

RobsoN
31st January 2013, 14:43
The 'sound' folder is automaticly added by cod2. I got error like: ERROR: Sound file 'sound/sound/weapons/...' Not Found

sound folder duplicate, so that is not the problem :(.

IzNoGoD
31st January 2013, 18:02
128 cbr is supported

Any other bitrate or vbr is not officially iirc

RobsoN
31st January 2013, 18:11
IzNoGod YOu mean, I can only convert to .mp3 128 bit rate to be supported by cod2?. Thanks for reply.

Edit: Oh, im sorry. I didn't know anything about "iirc , vbr or cbr" I'll check it out.

IzNoGoD
31st January 2013, 19:04
iirc = if i recall correctly
cbr = constant bit rate
vbr = variable bit rate

RobsoN
31st January 2013, 20:32
How can I convert to CBR 128 br? My settings (alive wav mp3 converter)
125

RobsoN
31st January 2013, 21:17
Weird, I replaced just alias name with my emp sound and it works. Just when i fire full auto, i hear only the last shoot. It's weird, doesnt works with weapons.

"emp_sound",,"weapons/m4a1/m4a1_fire.mp3",1,1,,,,1000000,,"local","streamed",,,,,,,,,,,,

RobsoN
31st January 2013, 21:40
Well, if the channel is "" (none) i got the error. If i do "streamed" i havent got any errors, but the fire sound is not correct. One shoot stops previous shoot.

pollo
31st January 2013, 21:49
let it be wav instead mp3.. too much work to do.. Lazyness powah!

RobsoN
1st February 2013, 10:52
So okay.. I have to use .wav format. Thanks everybody for help.

Tally
1st February 2013, 12:00
So okay.. I have to use .wav format. Thanks everybody for help.

I've never had a problem encoding a .WAV to .MP3 and getting it to work in COD. I have always used a free program called "Super", and used the standard .MP3 settings it uses:

http://imageshack.us/a/img515/9279/supermp3.th.jpg (http://imageshack.us/photo/my-images/515/supermp3.jpg/)

Just drag and drop your .WAV file onto the panel, and it auto converts it. Out pops the finished article, and you just pop it in the sound folder and launch your mod. Been using it for about 5 years now.

Get Super here:

http://www.afterdawn.com/software/audio_video/convert_video/super.cfm

RobsoN
2nd February 2013, 00:14
Tally, Thanks for your reply. Weapon sound still doesn't work. I think cod2 just doesnt support .mp3 format for weapons (in script .mp3 format works).

Tally
2nd February 2013, 08:08
Tally, Thanks for your reply. Weapon sound still doesn't work. I think cod2 just doesnt support .mp3 format for weapons (in script .mp3 format works).

Don't be silly. Of course COD2 supports MP3. The stock game has tons of MP3 files. Just look in iw_05.iwd/sound/music. Every sound file in there is an MP3 file.

The problem is probably your soundalias file and not the MP3 file at all. You need to set the "type" to stream for a start. MP3 files MUST be streamed.

EDIT - I that is the problem right there - because weapons don't stream sound files, they play them through a local channel, I think I remember that the IW devs said weapon sounds have to be .WAV files, and wont play MP3 files.

Ni3ls
2nd February 2013, 12:07
So Robson is right. Weapons files can't be mp3 and must be wav