Help:Sound modding: Difference between revisions

Shared a method of circumventing the BFWAV duration limit using Switch Toolbox and slightly reworded surrounding text. Also added Switch Toolbox to the prerequisites.
(added a link to the foorbar2000 FAQ)
(Shared a method of circumventing the BFWAV duration limit using Switch Toolbox and slightly reworded surrounding text. Also added Switch Toolbox to the prerequisites.)
 
Line 37: Line 37:
#NW4F Wave converter for converting Wav files to BFWAV
#NW4F Wave converter for converting Wav files to BFWAV
#[https://www.foobar2000.org/ Foobar2000 Media Player] and [https://github.com/vgmstream/vgmstream vgmStream plugin] for previewing/converting BFWAV and BFSTM files. Foobar2000's [https://www.foobar2000.org/FAQ FAQ] page has instructions for installing the plugin.
#[https://www.foobar2000.org/ Foobar2000 Media Player] and [https://github.com/vgmstream/vgmstream vgmStream plugin] for previewing/converting BFWAV and BFSTM files. Foobar2000's [https://www.foobar2000.org/FAQ FAQ] page has instructions for installing the plugin.
#[https://github.com/KillzXGaming/Switch-Toolbox/releases Switch Toolbox] for editing sample limits of BFWAV files


==Creating a new sound==
==Creating a new sound==
Line 89: Line 90:


====Sound effects (SFX) and BFWAVs====
====Sound effects (SFX) and BFWAVs====
Almost every sound effect in the game is in .bfwav format, and are also stored in .bars files. Any replacement BFWAV you make has to be the shorter than or the exact same length as the original file you are modding, which you can check by opening it in Foobar2000. Assuming you have made your new sound effect in .wav format comply with this, you can simply drag it over the NW4FWaveConverter.exe and it should output a new bfwav of your file. Then, using the Bars tool as previously mentioned, replace the old bfwav with your new one and implement the new .bars file into your mod.
Almost every sound effect in the game is in .bfwav format, and are also stored in .bars files. If a replacement BFWAV you make is not shorter than or the exact same length as the original file you are modding (which you can check by opening it in Foobar2000), you can open the .bars file with Switch Toolbox and edit the limit. Edit the "Unknown" paramater in the Meta Data for your .bfwav to be equal to or greater than the sample count of your new sound. If/when your new sound effect in .wav format complies with this limit, you can simply drag it over the NW4FWaveConverter.exe and it should output a new bfwav of your file. Then, using the Bars tool as previously mentioned, replace the old bfwav with your new one and implement the new .bars file into your mod.


[[Category:Guides]]
[[Category:Guides]]