How to make custom DDNet sounds
Posted: Mon Jul 25, 2022 8:10 pm
How to change the default DDNet sound files for custom sound effects
In this tutorial I will show you how to find and replace the default DDNet audio files with custom ones! (Plus a custom scifi themed soundpack I put together myself)
To get started, lets begin by locating our DDNet directory. Depending on your Operating System, the folder will be located in different places.
Windows:
Linux:
(Use backslash on Windows and forward slash on Linux)
Once we are inside our DDnet folder, we need to create a new folder to stick our audio files inside of.
For this, just create a new folder called "audio"
Great! Now that we have made a place to put our audio, Its time to go and look for our very own custom sound effects!
Finding custom sound effects can be hard. Most good sound effects can only be obtained by paying for a subscription to a sound effects site, however, some sites have free sound effects, the selection is much smaller but you can still find decent sound effects if you scour different places. Some sites i like to use are:
https://elements.envato.com/sound-effects
https://mixkit.co/free-sound-effects
Many of them are water marked, but if you find short enough ones, they wont be.
You can also record your own sound effects using a mic and then using something like Audacity, to record your own sounds.
Awesome! Now that we have our new sound effects and we know where to put them, its time to start putting them in!
Before we can start replacing the files, there is one small issue, the files we downloaded end with .mp3, not .wv, like the old sound files do. To fix this we are going to use something called FFmpeg
To install FFmpeg follow these directions in respect to your Operating System.
Windows:
Linux:
Great! Now that we have all the things we need, its time to start converting our files so they will actually work when we open DDnet!
In order to convert the .mp3 files to .wv we are going to use an FFmpeg command through the command line. But first we need to rename each of our audio files with the ones we want to replace in the
laser_gun.mp3 wp_laser_fire-01
You can right click on a sound file and press Rename to rename it.
To find out which audio file is which, you can go HERE to find which one you want to replace.
Now that we have renamed our files, we can now start converting them to .wv using the command line. Open a command prompt to the folder your new audio files are in.
Replace SOUND_EFFECT in both places with your audio file name, and boom, that sound effect is done! The process for converting a large amount of files can be tedious, however, necessary.
And that's about it! All we have to do now is drop our new sound files in the
Open up the game and enjoy your new sounds!
If you have any questions or something was not clear, feel free to leave a comment!
And if you stayed all the way to the end, here is a download link to a mostly-complete scfi themed soundpack i put together
SCIFI SOUNDPACK DOWNLOAD:
In this tutorial I will show you how to find and replace the default DDNet audio files with custom ones! (Plus a custom scifi themed soundpack I put together myself)
To get started, lets begin by locating our DDNet directory. Depending on your Operating System, the folder will be located in different places.
Windows:
Old: %appdata%\Teeworlds
New: %appdata%\DDNet
Linux:
Old: ~/.teeworlds
New: ~/.local/share/ddnet
(Use backslash on Windows and forward slash on Linux)
Once we are inside our DDnet folder, we need to create a new folder to stick our audio files inside of.
For this, just create a new folder called "audio"
Great! Now that we have made a place to put our audio, Its time to go and look for our very own custom sound effects!
Finding custom sound effects can be hard. Most good sound effects can only be obtained by paying for a subscription to a sound effects site, however, some sites have free sound effects, the selection is much smaller but you can still find decent sound effects if you scour different places. Some sites i like to use are:
https://elements.envato.com/sound-effects
https://mixkit.co/free-sound-effects
Many of them are water marked, but if you find short enough ones, they wont be.
You can also record your own sound effects using a mic and then using something like Audacity, to record your own sounds.
Awesome! Now that we have our new sound effects and we know where to put them, its time to start putting them in!
Before we can start replacing the files, there is one small issue, the files we downloaded end with .mp3, not .wv, like the old sound files do. To fix this we are going to use something called FFmpeg
To install FFmpeg follow these directions in respect to your Operating System.
Windows:
SpoilerShow
Installing on Windows is more complicated so I'm just going to leave a link to a site with the instructions
https://www.wikihow.com/Install-FFmpeg-on-Windows
Good job! Lets now move on to the final part!
https://www.wikihow.com/Install-FFmpeg-on-Windows
Good job! Lets now move on to the final part!
SpoilerShow
Open your command prompt, (cntrl + alt + t), next, run these commands as shown
This will update the package index of your system just in case it forgot how to install FFmpeg
Congrats! you now have installed FFmpeg and can continue to the next part.
Code: Select all
sudo apt update
Code: Select all
sudo apt install ffmpeg
Great! Now that we have all the things we need, its time to start converting our files so they will actually work when we open DDnet!
In order to convert the .mp3 files to .wv we are going to use an FFmpeg command through the command line. But first we need to rename each of our audio files with the ones we want to replace in the
/audio/
directory, for instance: laser_gun.mp3 wp_laser_fire-01
You can right click on a sound file and press Rename to rename it.
To find out which audio file is which, you can go HERE to find which one you want to replace.
Now that we have renamed our files, we can now start converting them to .wv using the command line. Open a command prompt to the folder your new audio files are in.
Code: Select all
ffmpeg -i SOUND_EFFECT.mp3 -ar 48000 -ac 1 -sample_fmt s16p SOUND_EFFECT.wv
And that's about it! All we have to do now is drop our new sound files in the
/audio/
directory. Open up the game and enjoy your new sounds!
If you have any questions or something was not clear, feel free to leave a comment!
And if you stayed all the way to the end, here is a download link to a mostly-complete scfi themed soundpack i put together
SCIFI SOUNDPACK DOWNLOAD: