PatmanSan Unlimited

eXtreme+ Modification for Call Of Duty 5: World at War => CoD:WaW General Server Support => Topic started by: Mooton on February 08, 2009, 01:14:10 pm

Title: Sound Problems
Post by: Mooton on February 08, 2009, 01:14:10 pm
Hi Guys,

I am just wondering, during the development of X5 did you run into any problems with sounds, by problems i mean the size of the sound files.

When i was running X4 on our cod4 server i had a number of mp3s for spawning, end of map etc. I changed the file names to what they should be for WaW and uploaded them. They didnt work and i then noticed that WaW uses .Wav format rather than mp3.

So now ive got a bit of a problem, if you cant use mp3 on WaW and only Wav, then the iwd for the music files is MASSIVE. A 20MB file from cod4 has now turned into a 100+MB file!! Obviously this is too large, who is gonna hang around waiting for a file that size to download? lol

So i ask you guys, did you ever run into this problem?

Did you just have to bite the bullet and use Wav? or did you find a way around it?

Thanks in advance  for any info/advice on this problem.
Title: Re: Sound Problems
Post by: Joker{eXtreme} on February 08, 2009, 04:12:36 pm
Sounds must be compiled through the Mod Tools for WaW and must be in WAV format now
Title: Re: Sound Problems
Post by: Mooton on February 08, 2009, 04:15:31 pm
Thanks Joker, ill have a look into that
Title: Re: Sound Problems
Post by: Mooton on February 15, 2009, 04:18:52 pm
Could you please just clarify something for me joker? (or anyone else)

If we wanted to add our own music/sounds like on cod4 and did it how it now has to be done through the mod tools, then does that mean i would have to compile them together into a mod.ff file? Meaning it could not be used in conjunction with the X5 mod (or any other mod for that matter).

If that isnt the case how exactly would it work and could it be used alongside the X5 mod?

Thanks for any help/info.
Title: Re: Sound Problems
Post by: Joker{eXtreme} on February 15, 2009, 07:33:12 pm
If your output is just an IWD with the sounds in it ((meaning you are still using the same file names as stock or X5)) then it should work just fine in conjunction with X5

If you wanted to script in NEW sounds with a soundaliases CSV that would require building it with the mod.ff
Title: Re: Sound Problems
Post by: Mooton on February 15, 2009, 07:42:20 pm
Thanks Joker,

I have an IWD named sound.iwd (who would of thought of that name ;)) that is from our previous cod4 server. If i change the filenames to the stock spawns and convert them from mp3 to Wav then that should work?

Thanks m8
Title: Re: Sound Problems
Post by: Joker{eXtreme} on February 15, 2009, 07:48:29 pm
Yes, probably m8 -- please give it a try and let us know how it worked out
Title: Re: Sound Problems
Post by: Mooton on February 15, 2009, 09:08:40 pm
So far i cant get it to play the sounds, as a test i swapped out some of the extreme sounds from the mp_x5.iwd file (firstblood, whyami etc) so i could give it a quick test.

Unfortunatly they do not seem to work, the txt still comes up but there are no sounds to go with it. Made sure i had them in Wav format too.


Rather tired now lol so it is possible it is my lack of sleep causing it, will give it another bash tomorrow and let u know how it goes.
Title: Re: Sound Problems
Post by: Mooton on February 16, 2009, 01:32:58 pm
Still cant get them to work.

Do you know the filename for the main menu music for mp?, i think this would be the easiest place to start as i dont have to keep uploading the x5 iwd to our server, if i change the menu music i can just play around with it on my pc until i get it to work. Then apply whatever i do to the other sounds once its working.

Thanks a bunch!
Title: Re: Sound Problems
Post by: Mooton on February 17, 2009, 04:07:51 am
Hi Joker,

I have made some progress in changing the spawn music, i cannot get my Wav files to play when spawning but i extracted the hallelujah.wav from the X5.iwd and that works as spawn music when i change the file name and add it to my iwd.

So my question now is, exactly what Wav format are the extreme sounds saved as? IE: PCM signed 16 bit mono etc.

If you can answer this i believe i will be able to get it working!

Thanks.
Title: Re: Sound Problems
Post by: stufz on February 18, 2009, 06:43:33 pm
WaW is default 16 bit, that much i know, Morton
Title: Re: Sound Problems
Post by: Mooton on February 19, 2009, 08:53:04 am
Thanks for that, i managed to figure out what Wav format the extreme sounds are in. I open them in goldwave and it is displayed at the bottom, weird thing is i saved one of my sounds as the same format uploaded to the server as ja_spawn_airfield and it didnt work. I took one of the extreme sounds uploaded that as ja_spawn_airfield and it worked! weird.

i'm going to have another play with it this weekend i think.
Title: Re: Sound Problems
Post by: Joker{eXtreme} on February 19, 2009, 09:53:54 am
You are probably going to have to use the COD5 Tools to get the right settings for the sounds here is what we did:

self made sound files go in "root game directory"/sound_assets/raw/sound/
your custom extreme.csv file goes into 'CoDWaW root directory'/Mods/SoundMod/soundaliases/
a copy of the extreme.csv into raw/soundaliases/

tick build sound and click on build mod

new sounds are now in raw/sound/  
copy those to Mods/SoundMod/sound

to compile the rest of the mod just use the build mod.ff and iwd options, you can place the new sounds from the Mods/SoundMod/sound dir into the iwd
Title: Re: Sound Problems
Post by: Mooton on February 19, 2009, 02:19:43 pm
Ah, nice one joker,

Just one question what should be in the csv file?

Thanks
Title: Re: Sound Problems
Post by: Joker{eXtreme} on February 19, 2009, 02:55:15 pm
@Mooton -- I'll have to post that once I get home from work
Title: Re: Sound Problems
Post by: Mooton on February 20, 2009, 08:07:15 am
Ok, if you could please m8.

Thanks
Title: Re: Sound Problems
Post by: Joker{eXtreme} on February 20, 2009, 09:13:21 am
Ok, for your sounds when using the COD5 Compile Tools?

In your mod.csv this is what I have ((not all of it, just a sample))

Quote
sound,extreme,,all_mp
sound,extreme/domintating.wav
sound,extreme/firstblood.wav
sound,extreme/fatality.wav
sound,extreme/fight.wav
sound,extreme/godlike.wav
sound,extreme/hallelujah.wav
sound,extreme/headshot.wav
sound,extreme/holyshit.wav
sound,extreme/humiliation.wav
sound,extreme/killingspree.wav
sound,extreme/monsterkill.wav
sound,extreme/rampage.wav
sound,extreme/roadkill.wav
sound,extreme/slaughter.wav
sound,extreme/ultrakill.wav
sound,extreme/unstoppable.wav
Title: Re: Sound Problems
Post by: Mooton on February 20, 2009, 10:26:27 am
Thanks Joker i will give that a try this weekend!  

Thanks a bunch!
Title: Re: Sound Problems
Post by: Mooton on February 20, 2009, 08:08:25 pm
GOT IT WORKING!!

Thanks alot Joker i would of never got it going without your help.

i had to go off the modwiki (LINK (http://wiki.treyarch.com/wiki/CoDWaWSound)) as well as follow your instructions but i now have custom music for spawning etc.

A note for anyone else who struggles:

Follow Jokers instructions in this thread, for the csv i found the easiest way to do it was to copy the multiplayer.csv from root/raw/soundaliases and rename it to whatever you want.
You will see all the spawn, round win sounds etc listed in there with a path. Change one of them to the destination of your source sound files, for example i named mine ja_spawn_airfield and placed it in root/sound_assets/raw/sound/extreme and changed the path in the csv to mp_spawn_japanese,3,extreme\ja_spawn_airfield.wav. Build sounds using the mod tools and you should now have a copy of your sound in root/raw/sound/extreme, add the file to an iwd (make sure you have the correct path ofcourse ;) and upload it.

Worked a treat!

Now i just need to find the multiplayer menu music which seems to be hiding in a very well hidden spot!

Again, thanks a lot Joker!
Title: Re: Sound Problems
Post by: evilswine on February 28, 2009, 05:47:53 pm
OK! I've kind of got lost here, i want to replace  the extreme sounds with my own custom sounds. I get lost where it comes to the csv. files. Where are these files or i have to make my own? I know it's a noob question. I miss the old COd  times!! :roll:
Title: Re: Sound Problems
Post by: Mooton on February 28, 2009, 06:17:24 pm
Ok m8,

First of all your gonna need the mod tools if you dont have them already, you can get them here: http://www.modsonline.com/index.php?mod=Banners&id=84&url=http%3A%2F%2Fwww.modsonline.com%2F.

Once there installed you will need to open the launcher app in root/bin folder. Once open click mod builder and click on sound mod.

Ok, now go to your codwaw root/sound_assets/raw/sound, in here create a new folder name it anything, lets stick with extreme to simplify. This is where you will need to put YOUR new sounds, it is more than possible to do all your sounds at once but just try one for the moment. ;)  Make sure it is in Wav format.

Now go into root/raw/soundaliases and find a file called multiplayer.csv. Copy this and paste it somewhere, rename it to extreme.csv and put it back in the soundaliases folder. Now, open it up and you will see lots of file paths etc. Pick one (i used mp_spawn_japanese,2,Stream\Music\mp\spawn\ja_spawn_airfield.wav which is near the top under "spawn music" use this for this tut).

Change the  file path on that line so that it now looks like this: mp_spawn_japanese,3,extreme\ja_spawn_airfield.wav   then save and close.

Now copy the extreme.csv file and go to root/mods/SoundMod, (if there isnt a SoundMod folder create it) now within the soundmod folder create another folder called "soundaliases"
paste the copy of the extreme.csv file into the soundaliases folder.

Ok almost done, your sound file which you have placed in root/sound_assets/raw/sound you need to rename to ja_spawn_airfield.wav.

Now in the launcher app click the build mod tab and select Sound Mod from the drop down menu. Tick build sounds and then click on build mod. You will get a few errors but thats ok, once its done go into root/raw/sound/extreme and you should see your new sound file in here, rename it to whatever you want it to be headshot.wav, firstblood etc. and put it into the relevent place in the mp_x5.iwd file.

Upload it to your server and redirect and you should now have your custom sound. :)

As you probably guessed you could do all your sounds at once but if im honest i found it took no time at all to just do them one at a time.

Hope this helps!!!
Title: Re: Sound Problems
Post by: evilswine on March 01, 2009, 08:56:56 am
Thanx!! Will try this one out, as soon i can!!
Title: Re: Sound Problems
Post by: evilswine on March 02, 2009, 10:52:12 am
Sorry!! But it doesn't work. The modbuilder get's an error and needs to close. Maybe my wav.  files are not OK? :cry:
Title: Re: Sound Problems
Post by: evilswine on March 02, 2009, 11:34:14 am
I've read the modwiki and i think that i mess up with the custom.csv file. What would be the extreme.csv?? Anybody got it?? Thanx in advance!!
Title: Re: Sound Problems
Post by: Mooton on March 02, 2009, 01:07:58 pm
You dont need to create one m8, use the multiplayer.csv.

Read my post above again and watch for this:

 "Now go into root/raw/soundaliases and find a file called multiplayer.csv. Copy this and paste it somewhere, rename it to extreme.csv and put it back in the soundaliases folder.  "


just take your time! ;)

Also, if you think it ust doesnt like your wav format try PCM signed 32bit mono, thats what i used an it worked fine.
Title: Re: Sound Problems
Post by: flash313 on March 02, 2009, 07:02:41 pm
Thank you guy's this info has really been helpful.i was stumped on how to get this to work. :D  :D
Title: Re: Sound Problems
Post by: Mooton on March 02, 2009, 07:04:23 pm
np's i wud'nt of figured it out without jokers help! :)
Title: Re: Sound Problems
Post by: evilswine on March 04, 2009, 10:39:00 am
i'M going nuts on this one. I've tryed it a few times now, but always i get the window that the Modsound.exe needs to close. I've done exactly what u posted here guys, but no luck for me!!  :cry: