Page 1 of 1

How to make custom DDNet sounds

Posted: Mon Jul 25, 2022 8:10 pm
by Kujire
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.


Old: %appdata%\Teeworlds

New: %appdata%\DDNet


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:
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.
Installing on Windows is more complicated so I'm just going to leave a link to a site with the instructions :roll:

Good job! Lets now move on to the final part!
Open your command prompt, (cntrl + alt + t), next, run these commands as shown

Code: Select all

sudo apt update
This will update the package index of your system just in case it forgot how to install FFmpeg

Code: Select all

sudo apt install ffmpeg
Congrats! you now have installed FFmpeg and can continue to the next part. :lol:

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 :arrow: 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
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 /audio/ directory. :D

Open up the game and enjoy your new sounds! :D

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 :D


Re: How to make custom DDNet sounds

Posted: Sun Jul 31, 2022 1:30 am
by Edge
If I make a new sound myself and put it, will it give an error?

Re: How to make custom DDNet sounds

Posted: Tue Aug 02, 2022 2:42 am
by Kujire
Edge wrote: Sun Jul 31, 2022 1:30 am If I make a new sound myself and put it, will it give an error?
I am not sure that I understand your question.. If you mean; "Will new sound files i made myself work in ddnet?" then the answer is, yes, if you did all the steps correctly.

Re: How to make custom DDNet sounds

Posted: Sat Aug 06, 2022 7:54 am
by Nora
Nice tutorial

Re: How to make custom DDNet sounds

Posted: Tue Aug 09, 2022 2:32 am
by Kujire
Nora wrote: Sat Aug 06, 2022 7:54 amNice tutorial
Thankyou! :D