Sound Mod how to add .wav in .fsb file?

BlackbowBlackbow Join Date: 2012-11-10 Member: 169314Members
edited November 2012 in Modding
i'm trying to make a sound mod
i downloaded the fsb extractor
so i found what sound i have to change
i have some custom wav files but the question
is how add wav files into the .fsb ????

please need help !!!!!!!



btw imo ns2 = best multiplayer game of the year !!!!

Comments

  • JimWestJimWest Join Date: 2010-01-03 Member: 69865Members, Reinforced - Silver
    edited November 2012
    You can't edit, you have to create a new sound bank for this.
    Download the FMOD DEsigner 4.38 here:

    <a href="http://www.fmod.org/index.php/release/version/fmoddesigner43800win-installer.exe" target="_blank">http://www.fmod.org/index.php/release/vers...n-installer.exe</a>

    In FMOD Designer then:
    File -> New Project, save it in the ns2 mod folder under /sounds, then right-click under the tree at the left side and select "Add Event Group".

    Call it like your Mod, so for the combat mod i named it "combat". After that, right click on that new group and click again on "Add Event Group".
    This will create a subgroup into your new group (you could also load every sound in the main group, but its clearer to create subgroups).
    Now you can start adding some sounds, the easiest way to do that is just drag your file and drop it in the desired subgroup.

    When youre done, click Porject -> build, select your soundbank and press build.
    If you have not saved everything in your sound folder, copy your .fsb and .fsv file and copy it in the sound directory.

    To test it, you can add the following code into your mod:

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->testSound = PrecacheAsset("sound/yourFile.fev/balbla/soundblabla")
    function OnCommandSoundTest(client)

        local player = client:GetControllingPlayer()

        Print("Soundtest")    
        Server.PlayPrivateSound(player, testSound, player, 1.0, Vector(0, 0, 0))

    end

    Event.Hook("Console_soundtest",       OnCommandSoundTest)<!--c2--></div><!--ec2-->
  • BlackbowBlackbow Join Date: 2012-11-10 Member: 169314Members
    edited November 2012
    thx a lot for your help
    but i still have a problem when i build the project i got this error (check end of list )

    so i guess i do something wrong but what ....
    i will explain step by step how i produce

    1- i exctract all sound from marine_3.fsb with fsbexctractor (in wav) then i replace the sound i want by an other wav file
    2 - in FMOD Designer i build new project then i add event group
    3 - i drag and drop all my files in event group (in bank, file compression is in pcm )
    4 - i click on project/build... i select my bank sound then i press build and i got this error :

    Summary of build:
    <!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro--><b>SUCCESS: C:/Users/Blackbow/Desktop/work shop/M 41 A PULSE RIFLE/sound/alien_rifle_sound.fev
    FAIL : C:/Users/Blackbow/Desktop/work shop/M 41 A PULSE RIFLE/sound/alien_rifle_sound_bank00.fsb</b><!--colorc--></span><!--/colorc-->

    <b>edit :</b> ok i supose problem come from my wav files i extracted from the originale fsb file
    exept vlc, fmod designer or any other sound program cant read the new extracted wav file from fsb extractor
    what i have to do ????
    please !!!!! :'(

    (sry for my bad english)

    edit 2 : after spend lot of hours on google and tutorials ...
    it look my wav files was in adpcm and i had to encode it in pcm to work in fmod designer
    so i add all wav in fmod i build then i got a file of 42 mb instead of 8 mb
    and i changed only one sound
    so i replace the original fsb by the new one and in game i lost all sound from the marines_3.fsb
    like reload sound ...
    i'm on it since 2 days testing lot of programs and tutorials
    and i start to be crazy !!!

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Building project 'alien_rifle_sound'...
    Building project C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\alien_rifle_sound.fev...
    Unique sound defs 1/133
    Retrieving sound file info...
    Retrieving reverb info...
    FEV file written ok
    Unique Envelope Points: 0 of 0
    Unique Strings: 7388 characters of 7388
    Caching sound file details for ''...
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_hard_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_hard_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_living_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_living_12.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\arc.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\arc_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\arc_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\armory_close_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\armory_idle.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\armory_open_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\armory_resupply_oneshot.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\attack.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\attack_end_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\attack_loop_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\attack_start_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\button_press_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\catalist.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\countdown_oneshot.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\damaged beep.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\damaged.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\damaged_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\damaged_4.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\deploy_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\deply_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\destroyed.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\destroyed_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\distant.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\draw_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\empty_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\end15.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\end_reload_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\end_shell.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\end_shell_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\end_shell_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\end_shell_4.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\explode_distant_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\explode_distant_4.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\fade_step_10.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\fade_step_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\fade_step_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\fire_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\fire_grenade_12.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\fire_grenade_distant_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\fire_grenade_distant_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\fire_hit.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\flyby.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\flyby_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\flyby_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_left_1.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_left_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_left_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_left_4.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_left_5.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_left_6.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_right_1.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_right_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_right_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_right_4.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\footstep_right_5.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\grenade_bounce_1.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\grenade_bounce_4.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\grenade_bounce_5.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\idle.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\invalid_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\jetpack_burst.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\jetpack_burst_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\jetpack_burst_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\jetpack_empty.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\jetpack_end_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\jetpack_loop_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\jetpack_loop_fuel.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\jetpack_lowfuel.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\jetpack_start_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\layer_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\load_shell_4.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\load_shell_5.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\load_shell_6.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\loop15.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\loop_shell.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\loop_shell_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\marine_order_attack.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\move.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\pickup_ammo_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\pickup_gun.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\pickup_health.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\pickup_jetpack.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\pistol cowboy.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\pistol gangster.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\railgun_fire.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\reload.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\reload_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\reload_12.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\reload_7.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\reload_grenade_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\reload_shell.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\res_recived_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\robo_close.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\robo_open.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\scan_loop_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\scan_start_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\select_4.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\sentry_confused.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\sentry_scan_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\spend_metal.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\spend_nanites.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\spike_ricochet.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\spike_ricochet_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\spike_ricochet_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\spin_down_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\spin_up_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\sprint_loop.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\sprint_start_1.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\sprint_start_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\sprint_tierd_1.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\sprint_tierd_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\start_reload_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\take_damage_1.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\take_damage_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\take_damage_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\tooltip new_11.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\tooltip new_13.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\upgrade.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\wave.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\wave_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\wave_3.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\wave_4.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\wave_5.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\wave_6.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\welder attach_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\welder deploy_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\welder weld start_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\welder weld_loop_2.wav
    ..\fsbextractor12.07.03\extraction du marines 3 en wav\weldtarget2.wav
    Building 'alien_rifle_sound_bank00.fsb'
    Error processing C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_hard_3.wav:
        Source file has zero length.
    Error processing C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_hard_2.wav:
        Source file has zero length.
    Error processing C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_hard_3.wav:
        The format of the source file is invalid, see output for details.
    Error processing C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_hard_2.wav:
        The format of the source file is invalid, see output for details.
    Error : Failed to build wave bank 'C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\alien_rifle_sound_bank00.fsb'. Build cancelled.

    The following errors and warnings were detected:
    Error processing C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_hard_3.wav:
        Source file has zero length.
    Error processing C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_hard_2.wav:
        Source file has zero length.
    Error processing C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_hard_3.wav:
        The format of the source file is invalid, see output for details.
    Error processing C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\..\fsbextractor12.07.03\extraction du marines 3 en wav\alt_hit_hard_2.wav:
        The format of the source file is invalid, see output for details.
    Error : Failed to build wave bank 'C:\Users\Blackbow\Desktop\work shop\M 41 A PULSE RIFLE\sound\alien_rifle_sound_bank00.fsb'. Build cancelled.

    Summary of build:
    SUCCESS: C:/Users/Blackbow/Desktop/work shop/M 41 A PULSE RIFLE/sound/alien_rifle_sound.fev
    FAIL   : C:/Users/Blackbow/Desktop/work shop/M 41 A PULSE RIFLE/sound/alien_rifle_sound_bank00.fsb<!--c2--></div><!--ec2-->
  • JimWestJimWest Join Date: 2010-01-03 Member: 69865Members, Reinforced - Silver
    Well there are some files empty etc, just try it with one sound which is working 100% and look if it's working ingame
  • MetaMindMetaMind Join Date: 2012-12-06 Member: 174358Members, Reinforced - Gold
    I just want to have a differnet MainMenue_Theme
    so I loaded the music.fsb in FMOD, but I cant select the tracks.
    How can I change the MainMenue Music???
  • JimWestJimWest Join Date: 2010-01-03 Member: 69865Members, Reinforced - Silver
    No you can't you need to create a new file.
  • MetaMindMetaMind Join Date: 2012-12-06 Member: 174358Members, Reinforced - Gold
    I ve done it like JimWest has discribed it.
    - opened new roject,
    - rightclick on "untitled",
    - added new event group, named it to: MainMenue_Theme
    - drag and dropped the music.fsb file into it

    But I m unable to select the Intro Theme, its just one big audiofile
  • JimWestJimWest Join Date: 2010-01-03 Member: 69865Members, Reinforced - Silver
    You can't drop the fsb into it, you can only drop sound files into the FMOD Designer,
    you have to create your own fsb file.
  • MetaMindMetaMind Join Date: 2012-12-06 Member: 174358Members, Reinforced - Gold
    Ok I will create my own music.fsb file, but the game has to know which of these files are played as mainmenue_theme for expl.
    Or What .fsb file I ve to use to alter the mainmenue_theme?
  • MetaMindMetaMind Join Date: 2012-12-06 Member: 174358Members, Reinforced - Gold
    edited December 2012
    Update:
    Ok I succesfully created my modified .fsb file
    - I used the FSB Extractor:http://www.unknownworlds.com/ns2/forums/index.php?showtopic=118938&hl=fmod)
    - renamed my altered soundfile to the one i want to change and copied it into folder
    - drag&dropped all soundfiles in my event subfolder in FMOD
    - clicked build

    But I get the same problem as Blackbow: The .fsb file gets over 130mb big (before it was 22mb)
    My modified soundfiles are in .mp3 format (Lame 48000hz 320kbps stereo)
    Anybody knows a clue???

    <b><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->Update:<!--sizec--></span><!--/sizec--> </b>
    Ok got it right now:

    after drag&drop soundfiles to event subfolder click "Banks" in the top left corner, select you soundback on the left, change compression metho(right corner) to mp3, change "compression quality" to 100 and then go project->build->select your soundbank-> click build and youre done :)
Sign In or Register to comment.