Custom Music for Editor Use

Banzai¥Banzai¥ Join Date: 2012-02-06 Member: 143902Members, NS2 Map Tester
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!

Comments

  • persoperso Join Date: 2003-02-19 Member: 13740Members, WC 2013 - Supporter
    edited May 2012
    Hi,

    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
  • Banzai¥Banzai¥ Join Date: 2012-02-06 Member: 143902Members, NS2 Map Tester
    Can't use SoundInfo.exe
    Open it and it closes; drag and drop the fev file and it does the same...
  • persoperso Join Date: 2003-02-19 Member: 13740Members, WC 2013 - Supporter
    If you run SoundInfo.exe on the commandline, you should see it takes two parameters:
    <!--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.
  • Banzai¥Banzai¥ Join Date: 2012-02-06 Member: 143902Members, NS2 Map Tester
    Thanks; I tried to use the builder but it's not working properly. I'll pm you more details later to troubleshoot a bit if it's alright with you.
  • persoperso Join Date: 2003-02-19 Member: 13740Members, WC 2013 - Supporter
    edited May 2012
    It seems there's a bug in Builder or the builder_setup.xml. The build process keeps getting stuck at "fmod_designercl.exe":

    <!--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?
  • [AwE]Sentinel[AwE]Sentinel Join Date: 2012-06-05 Member: 152949Members
    Hello,

    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>
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    I made some custom water sound effects which duh_wolf put into a custom map he was working on for the proving grounds mod. I haven't seen him around much, but try contacting him to find out how he did it :)
  • HuzeHuze Insightful Join Date: 2003-11-12 Member: 22724Members, NS1 Playtester, NS2 Playtester, Squad Five Blue, Reinforced - Shadow
    I'm trying to get my first sound working. Has anyone experienced this error before? I think I probably messed up creating my fev.
    <img src="http://i.imgur.com/s1N1A.png" border="0" class="linked-image" />
Sign In or Register to comment.