Sound Packs

From Luanti Wiki
Revision as of 21:16, 25 November 2024 by DS-minetest (talk | contribs) (Rewrite big parts, includes fixes for outdated and false information (it was never possible to override sounds, afaik))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Luanti supports sound packs, which are client provided folders containing sound files, which are used as fallback for non-existent sounds. They can not override sounds.

Historically, they were used to reduce the amount of media which needs to be loaded, reducing the player join time. The server didn't have the sound, and the player was responsible for providing it manually via their sound pack. Nowadays, there is lazily streamed sound loading in another thread, which makes sound loading time unnoticeable, and dynamic media, which server mods can use to send sounds after joining, so this use-case no longer makes sense.

Installation

Sound packs are located at path_share/sounds/ and path_user/sounds/. So you have to put sounds for example to /usr/share/minetest/sounds/somemod_craw.ogg or ~/.minetest/sounds/somemod_fox.1.ogg. Subdirectories are not supported.

In older versions of Luanti, the user path was not supported. It was useful to link the sounds folder so that you don't need to change the rights of your global Luanti folder. Example:
$ sudo ln -r -s ~/.minetest/ingame_sounds /usr/share/minetest/sounds

For Technic

If you want to use the music box of technic, you usually need to put the tracks into the sounds folder. You can easily download them automatically using following command(s):

1. ensure that you are in the right folder, e.g.

cd ~/.minetest/sounds

2. Download them all at once (parallel) using curl:

for i in {1..9}; do if [ ! -e technic_track${i}.ogg ]; then curl -s https://raw.githubusercontent.com/minetest-technic/technic_game/master/mods/ambience/sounds/technic_track${i}.ogg > technic_track${i}.ogg; fi & done

See also