[mod] Background Music [0.2] [bgm]

Post Reply
timnxx20
New member
Posts: 2
Joined: Sun Jul 22, 2018 16:38

[mod] Background Music [0.2] [bgm]

by timnxx20 » Post

Adds randomly selected and timed background music.

I've included some (imho) suitably ambient music but it is configurable, as are the probability and interval between tracks. The code is commented with instructions for changing the music. Other settings can be changed from the Minetest advanced settings menu.

I know it's been done before but this is my first mod and I've never used Lua before so feedback is welcome.

Code license: LGPLv2.1+
Music license: CC BY-NC 4.0 Blue Dot Sessions https://www.sessions.blue

v0.2 Download: https://gitlab.com/timnxx20/bgm/-/archi ... m-v0.2.zip

Changes:
v0.2:
  • Added some debug output
  • Moved settings to Minetest advanced menu
  • Added option to prevent songs playing twice in a row
v0.1:
  • Initial release
Old versions:
v0.1: https://gitlab.com/timnxx20/bgm/-/archi ... m-v0.1.zip
Last edited by timnxx20 on Tue Jul 31, 2018 19:41, edited 1 time in total.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [mod] Background Music [0.1] [bgm]

by texmex » Post

Code checks out! I’ve been meaning to write a mod like this, so I will definitely try this out.

User avatar
Andrey01
Member
Posts: 2579
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [mod] Background Music [0.1] [bgm]

by Andrey01 » Post

Oho, is there already other music mod?? This has already been third by count! I`ll test it with enjoying!

timnxx20
New member
Posts: 2
Joined: Sun Jul 22, 2018 16:38

Re: [mod] Background Music [0.2] [bgm]

by timnxx20 » Post

Thanks for looking at my mod, I've made a few changes and fixed a couple of things. I'd be grateful to hear how it worked out. Also, if there is anything you think should be added/changed I would be interested in some feedback.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [mod] Background Music [0.2] [bgm]

by texmex » Post

It’s serene to play during this music. Unfortunately I’m in dev mode so it’s a lot of restarts which breaks inmersion xD

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [mod] Background Music [0.2] [bgm]

by runs » Post

Youtube claims this music!!!! I've made a Minetest video with this music playing. It is CC.

Why???

Nooo :-(
Last edited by runs on Mon Aug 12, 2019 20:38, edited 1 time in total.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [mod] Background Music [0.2] [bgm]

by runs » Post

I know it already, CC is for no commercial use. THIS IS WHY CC SHOULD BE PROHIBITED IN MINETEST!!!

:-(

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [mod] Background Music [0.2] [bgm]

by runs » Post

In http://soundimage.org/ there is a lot of GPL Music, hahaha.

Minetest should use them.

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [mod] Background Music [0.2] [bgm]

by benrob0329 » Post

Runs, there are multiple CreativeCommons licenses. Any -NC varient will be noncommercial. Always read up on licenses before using them :-)

User avatar
Linuxdirk
Member
Posts: 3219
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [mod] Background Music [0.2] [bgm]

by Linuxdirk » Post

benrob0329 wrote:Any -NC varient will be noncommercial.
NC licenses are non-free licenses and should not be used under any circumstances.

User avatar
Diamond knight
Member
Posts: 475
Joined: Sun Apr 19, 2015 19:50
GitHub: Diamondknight
In-game: Ferrumprinceps
Location: Chilling in Constantinople
Contact:

Re: [mod] Background Music [0.2] [bgm]

by Diamond knight » Post

Suggestion: support for a different music set playing at night like the old ambience mod

Edit: since that feature was not mentioned in the OP did not know it was already there, but checked and it is, so nevermind

User avatar
NoctisLabs
New member
Posts: 6
Joined: Mon Sep 30, 2019 00:44
GitHub: NoctisLabs
IRC: NoctisLabs
In-game: NoctisLabs
Location: Falcon Heavy, LEO

Re: [mod] Background Music [0.2] [bgm]

by NoctisLabs » Post

Suggestion: change music to instrumentals by Josh Woodward (joshwoodward.com) licensed under CC-BY 4.0

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 37 guests