Map Sounds Tutorial
Posted: Tue Oct 28, 2014 7:32 pm
Map Sounds Tutorial
written by DoNe, slightly edited by Index
As of client version 2.x you can use sounds in maps. The feature was coded by BeaR. His idea was to make little environmental sounds like singing birds or wind possible for maps. You can only hear the sounds if you use DDNet client. You can change the volume of map sounds for your client and even turn them off. Because only players using the DDNet client can hear the sounds you shouldn't use them to give information the players have to know. Map sounds are included to a map in the Opus(.opus) filetype.
How to convert my own sound to Opus?
The most music editing programs support the filetype Wav. Use this programm to convert Wav to Opus: http://www.foveon.de/sonstiges/opusdrop/index.htm. You can also use this online converter which supports almost every format for your input sound: http://audio.online-convert.com/convert-to-opus. Your output file should end with ".opus". Now put this file into your mapres directory.
Read a detailed explanation about opus: http://forum.ddnet.tw/viewtopic.php?p=26734#p26734
How to include my sound to a map?
In editor sounds are handled similar to quads. Klick on the button that switches between images, sounds and layer management until you get to the sounds section. You should see your sound file in the file browser. Add it like you would add a image and don't forget to embedd it. Switch back to layer management and rightclick on any group. Click on "Add sound layer". Rightclick on your new layer and select your sound file as you would do it with a quad layer. After that the "Add Source" button at the top right will be clickable. Click on it and a new sound source will appear. You can move it like a quad by clicking on the green dot. Rightclick on the green dot to modify your sound source. You can decide if the sound will loop or just play when you enter the sound circle. You can change the delay that is waited when you enter the sound circle until the sound is played. The sound will get louder if you get closer to the middle of the sound circle. You can change the radius of the sound circle by changing the distance. A sound source can also have a position envelope. It will work like on quads and just move the sound center around. You can also add a sound envelope if you created one.
How to use sound envelopes?
Sound envelopes control the volume of a sound. They are very similar to the other envelope types. In the envelopes menu you can click "Sound+" to add a sound envelope. The x-axis controls the time and the y-axis the volume of your sound.
written by DoNe, slightly edited by Index
As of client version 2.x you can use sounds in maps. The feature was coded by BeaR. His idea was to make little environmental sounds like singing birds or wind possible for maps. You can only hear the sounds if you use DDNet client. You can change the volume of map sounds for your client and even turn them off. Because only players using the DDNet client can hear the sounds you shouldn't use them to give information the players have to know. Map sounds are included to a map in the Opus(.opus) filetype.
How to convert my own sound to Opus?
The most music editing programs support the filetype Wav. Use this programm to convert Wav to Opus: http://www.foveon.de/sonstiges/opusdrop/index.htm. You can also use this online converter which supports almost every format for your input sound: http://audio.online-convert.com/convert-to-opus. Your output file should end with ".opus". Now put this file into your mapres directory.
Read a detailed explanation about opus: http://forum.ddnet.tw/viewtopic.php?p=26734#p26734
How to include my sound to a map?
In editor sounds are handled similar to quads. Klick on the button that switches between images, sounds and layer management until you get to the sounds section. You should see your sound file in the file browser. Add it like you would add a image and don't forget to embedd it. Switch back to layer management and rightclick on any group. Click on "Add sound layer". Rightclick on your new layer and select your sound file as you would do it with a quad layer. After that the "Add Source" button at the top right will be clickable. Click on it and a new sound source will appear. You can move it like a quad by clicking on the green dot. Rightclick on the green dot to modify your sound source. You can decide if the sound will loop or just play when you enter the sound circle. You can change the delay that is waited when you enter the sound circle until the sound is played. The sound will get louder if you get closer to the middle of the sound circle. You can change the radius of the sound circle by changing the distance. A sound source can also have a position envelope. It will work like on quads and just move the sound center around. You can also add a sound envelope if you created one.
How to use sound envelopes?
Sound envelopes control the volume of a sound. They are very similar to the other envelope types. In the envelopes menu you can click "Sound+" to add a sound envelope. The x-axis controls the time and the y-axis the volume of your sound.