My first try on modding NS2 (Sound Mod)
WinterActual
Join Date: 2012-09-11 Member: 159027Members
Hi guys! I wanted to replace some NS2 sounds so I started reading the forum. I have found 2 great tutorials but I am stuck because something is not coming up right. Everything is fine until I have to check the sound length. All vanilla files have length of -1ms for some reason, even if they are playing fine in the Event Player. Why is that and how to deal with it?
Also when I built the files the error appeared with similar problem - "Error! Length wasn't cached for sound file " (and "Error : Build failed : An error occurred while writing ....." but I think thats because of the previous error). This error is for my replacement file, not for the vanilla files' length. But again - why this error pops up? The sound is playing fine if I try to preview it in the Browse window, I don't think the file is broken or something, its a standard MP3 file.
I will be glad if someone can help me.
Also when I built the files the error appeared with similar problem - "Error! Length wasn't cached for sound file " (and "Error : Build failed : An error occurred while writing ....." but I think thats because of the previous error). This error is for my replacement file, not for the vanilla files' length. But again - why this error pops up? The sound is playing fine if I try to preview it in the Browse window, I don't think the file is broken or something, its a standard MP3 file.
I will be glad if someone can help me.
Comments
The sound files, if you haven't found that yet, are set in the *Effects.lua files (e.g. PlayerEffects.lua). If you want to replace the sounds, I would try to overwrite those and set the path to your new custom sounds. The sound length needs to be specified in your own soundinfo file.
I hope that helps you a bit.
Btw why in Fmod it says "file not found" when I try to preview some sound files I added? I didn't moved the file from where it was obviously.