Modding Sounds into the game

I am trying to put in some Star Wars voice clips and sound effects for fun into the game. (Like it needs any more fun.) I have taken the sounds that I've found on the Web, converted them into OGG files and stored them into a Sound Folder under my mod. I've pointed one of my cap ships to use the new files for various sound effects (attack, creation, etc.) with correct capilization, etc. Everything is right, as far as I can tell. When I get in game, I am spared the dreaded minidump, but instead, I get no sound for the effects I modded over. All of the other effects work still, just the ones that I replaced. I also tried copying my new files into the original game folder to no avail. Is there a certain size limit or something. I know there are other mods out there that use custom sounds, but I haven't found anywhere that tells me how to do it, so I've just been experimenting with it. Any ideas why this happens? Any help would be appreciated.
3,746 views 2 replies
Reply #1 Top
when i change a sound that i would like better i save them in format .ogg with a
frequency of 44 100mhz .. mono channel.. bit rate 128.. for music files i keep them
in mp3 format and go change the line in the SoundMusic.Sounddata file..
hope that helps u..
Reply #2 Top
Ha, your in luck, as on the off chance I have recently toyed with a few sound files already in-game, and they failed to show, but after some playing around I got them to work. Ok, here is what you need, and this will be brief as you seem to know what you're doing (if you need more info, get back to me):

- Firstly, and most importantly, you need to define the new files. You may have noticed that the sound references before did not have .OGG after them, but just their name. This is because, in a similar way to strings, they are listed and defined in a separate file. However, unlike the string file, there is 3 files you must look into;
SoundEffects.SOUNDDATA
SoundMusic.SOUNDDATA
SoundDialogue.SOUNDDATA

You must add your file and reference name, once again, in a similar way to the strings file, by giving the name of the file, with the .OGG included, and then linking that sound file to a reference name, which is usually the sound file, but without the .OGG on the end. An easy way to do all this is to copy one section, and edit it to include your new sound. Once you have added all you files, add the number you added it to the numEffects number at the very top of the .SOUNDDATA file you edited.

- This brings me on to my second point; you must have the right references in the right files. The Capital ship ones you speak of refer to the SoundDialogue.SOUNDDATA file. So if you add your new sound to 'Effects', but not 'Dialogue', the Capital Ship file will not read them. The easiest way around this is to edit one file and add your new sounds, then copy them straight into the bottom of the other 2 SOUNDDATA files, making sure you change the numEffects at the top again.

I hope thats clear enough, but if you are unsure, don't hesitate to ask.
Good luck. :D