“Secret” feature: Main menu music

User avatar
Wuzzy
Member
 
Posts: 3562
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

“Secret” feature: Main menu music

by Wuzzy » Sun Sep 08, 2019 19:52

There's a “secret” (Ok, not really) feature in Minetest that allows you to play main menu music in Minetest:

Just add “main_menu.ogg” into this directory:

  • GNU/Linux: $HOME/.minetest/sounds, where “$HOME” refers to your home directory.
  • macOS: same as for GNU/Linux.
  • Windows: into the “sounds” directory found in the main program folder in which you have installed Minetest. It is the directory containing the directories like bin (which in turn contains minetest.exe), builtin, client, doc, fonts, games, locale, mods, textures, etc.

You can add up to 11 different music files. Minetest will pick a track at random. The following file names are possible:

  • main_menu.ogg
  • main_menu.1.ogg
  • main_menu.2.ogg
  • main_menu.3.ogg
  • main_menu.4.ogg
  • main_menu.5.ogg
  • main_menu.6.ogg
  • main_menu.7.ogg
  • main_menu.8.ogg
  • main_menu.9.ogg
  • main_menu.0.ogg

Sadly, the main menu music stops in the loading screen. :-(

This guide is also available in the Minetest Wiki: https://wiki.minetest.net/Main_menu_music
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
TumeniNodes
Member
 
Posts: 2801
Joined: Fri Feb 26, 2016 19:49
Location: in the dark recesses of the mind
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes

Re: “Secret” feature: Main menu music

by TumeniNodes » Sun Sep 08, 2019 20:39

Wuzzy wrote:Sadly, the main menu music stops in the loading screen. :-(

This guide is also available in the Minetest Wiki: https://wiki.minetest.net/Main_menu_music


There must be some way to allow the music to play in the background during gameplay? (possibly at a reduced level)
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am
 

User avatar
Wuzzy
Member
 
Posts: 3562
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: “Secret” feature: Main menu music

by Wuzzy » Sun Sep 08, 2019 21:15

In-game music is implemented by, well, the game. There's also MPD: https://content.minetest.net/packages/orwell/mpd/

And some games already package music themselves.

But this thread is about main menu music …
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
Napiophelios
Member
 
Posts: 981
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: “Secret” feature: Main menu music

by Napiophelios » Mon Sep 09, 2019 00:28

Too bad they aren't game specific.
Would be cool to have custom themed music for each game in the game menu :)
 

User avatar
Wuzzy
Member
 
Posts: 3562
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: “Secret” feature: Main menu music

by Wuzzy » Mon Sep 09, 2019 16:34

I'm not sure if that would be a good idea, tbh. Every time you select a new game, music playback would reset …
And what to play while in settings/online/other tab?
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
Krock
Developer
 
Posts: 4346
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: “Secret” feature: Main menu music

by Krock » Mon Sep 09, 2019 18:25

It's amazing what you did in result of adding this single unknown sound name to the documentation.
>> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
Wuzzy
Member
 
Posts: 3562
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: “Secret” feature: Main menu music

by Wuzzy » Mon Sep 09, 2019 20:07

It's almost as if documenting a feature that nobody knew about is the same as adding a brand new feature!
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
TumeniNodes
Member
 
Posts: 2801
Joined: Fri Feb 26, 2016 19:49
Location: in the dark recesses of the mind
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes

Re: “Secret” feature: Main menu music

by TumeniNodes » Mon Sep 09, 2019 21:37

I knew about main_menu.ogg
But never knew about 0 - 9
Ich mag keine grünen Eier und Schinken, ich mag sie nicht Sam I Am
 

twoelk
Member
 
Posts: 1324
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany
GitHub: twoelk
IRC: twoelk
In-game: twoelk

Re: “Secret” feature: Main menu music

by twoelk » Tue Sep 10, 2019 11:57

lol
have been using this feature since at least version 0.4.10 in 2014
normally the Sintel song
and an old installation of mine of 0.4.15 from 2017 has 5 ogg files

and I remember discussing with HybridDog and RBA about possible content ... and there also was the testsounds folder
 


Return to Feature Discussion



Who is online

Users browsing this forum: Bing [Bot] and 6 guests