“Secret” feature: Main menu music

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

“Secret” feature: Main menu music

by Wuzzy » Post

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: 2853
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: “Secret” feature: Main menu music

by TumeniNodes » Post

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: 3992
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: “Secret” feature: Main menu music

by Wuzzy » Post

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: 1018
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: “Secret” feature: Main menu music

by Napiophelios » Post

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: 3992
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: “Secret” feature: Main menu music

by Wuzzy » Post

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: 4539
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: “Secret” feature: Main menu music

by Krock » Post

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

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

Re: “Secret” feature: Main menu music

by Wuzzy » Post

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: 2853
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: “Secret” feature: Main menu music

by TumeniNodes » Post

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

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

Re: “Secret” feature: Main menu music

by twoelk » Post

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

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

Re: “Secret” feature: Main menu music

by Wuzzy » Post

Here's a nice track for the main menu:

Underwater Theme by CleytonKauffman.

But you need to convert it to Ogg first.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
Hamlet
Member
Posts: 764
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: “Secret” feature: Main menu music

by Hamlet » Post

Wuzzy wrote:There's a “secret” (Ok, not really) feature in Minetest that allows you to play main menu music in Minetest:
I'm having a déjà vu: viewtopic.php?f=5&t=18495
My repositories: Codeberg.org | My ContentDB's page | I'm on PureOS with XFCE

Post Reply

Who is online

Users browsing this forum: freshreplicant and 1 guest