Custom Music for Editor Use
I've been toying with the editor for a bit now and was really interested in trying to get custom-music working on a small map I was working on; has anyone figured out how to add their own custom-music in the editor to play using the ambient-entity? I used Fmod to make the appropriate files but I can't get it to work still :S
Thanks in advance!
Thanks in advance!
Comments
I think you need three kinds of files:
<ul><li>fev (you get this from fmod designer by building the project)</li><li>fsb (you get this from fmod designer by building the project)</li><li>soundinfo (you get this by using the SoundInfo.exe in ns2 directory on the fev file)</li></ul>
Then just put those files in ns2/sound directory and it should work.
It took me fiddling to get it to work but I can't remember any details anymore. Next time I'll post some steps in the wiki... :d
Open it and it closes; drag and drop the fev file and it does the same...
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Usage: soundinfo.exe inputpath\file.fev outputpath\
Outputs ProjectName.soundinfo into the working directory<!--c2--></div><!--ec2-->
So for example, if you already had your <i>fev</i> and <i>fsb</i> files in the ..\ns2\sound directory, you could run the following commandline:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->"C:\Steam\steamapps\common\natural selection 2\SoundInfo.exe" "C:\Steam\steamapps\common\natural selection 2\ns2\sound\something.fev" "C:\Steam\steamapps\common\natural selection 2\sound"<!--c2--></div><!--ec2-->
On the other hand you could use Builder to automate the process, rather than do it manually. See this thread for instructions on how to set up the builder: <a href="http://www.unknownworlds.com/ns2/wiki/index.php/Builder" target="_blank">http://www.unknownworlds.com/ns2/wiki/index.php/Builder</a>. After setting it up you should be able to just save the project file (fdp) in the soundsrc directory and the builder should take care of the rest.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->1> Executing '"[...]\natural selection 2\utils\fmod_designercl.exe" -pc -r "[...]\source\soundsrc\ns2_plant.fdp" -b "[...]\natural selection 2\ns2\sound\"'<!--c2--></div><!--ec2-->
Copy pasting and running the same command in command line seems to work though.
Could some dev check this?
did you manage to use your sound file in the editor? Maybe you or perso could help me out a bit ^^
I created fev and fsb files with fmod and a soundinfo file as well. But if i select it in the editor or place it into a map, it doesn't play any sound at all.
Did you have the same problem? Do we have to set some important values in fmod so it will work with ns2?
Even if i don't want to work with fmod effects/multilayers (or do not know if ns2 would support it), i found those tutorials usefull:
<a href="http://www.youtube.com/watch?v=HIil0OFtqxc" target="_blank">fmod tutorial youtube</a>
<a href="http://audio.tutsplus.com/tutorials/sound-design/how-to-make-simple-events-with-fmod-designer/" target="_blank">fmod simple event tutorial</a>
<img src="http://i.imgur.com/s1N1A.png" border="0" class="linked-image" />