Page 1 of 1

Chat Bell - ring a bell on name's quote in chat

Posted: Wed Feb 08, 2017 07:47
by bousket
Hi all !
Tired of missing messages in chat ? Here is

Chat Bell
=========

Chat Bell is a tiny mod ringing a bell on player's name quote in chat.
The functionality can be enabled/disabled by /chatbell command.
Players preferences are saved on disk in <world>/chatbell by default

Mod dependencies: none

This mod should be replaced later by a client-side version.

Code: https://github.com/bousket/chatbell
Mod Zip: https://github.com/bousket/chatbell/archive/master.zip

Re: Chat Bell - ring a bell on name's quote in chat

Posted: Wed Feb 08, 2017 13:10
by Desour
Nice!
I always wanted such a mod in Minetest.
I can't wait for client side scripting to be implemented, that will be great, I hope! (#5088)

Re: Chat Bell - ring a bell on name's quote in chat

Posted: Wed Feb 08, 2017 14:11
by ExeterDad
Nice! I've been planning on adding a feature like this to our "chat2" mod. Now I don't have to :P

Re: Chat Bell - ring a bell on name's quote in chat

Posted: Wed Feb 08, 2017 15:53
by Desour
Ehm, I what license does the sound have? I only found the code license.

Re: Chat Bell - ring a bell on name's quote in chat

Posted: Wed Feb 08, 2017 18:53
by bousket
True, I forgot it. It's added in the readme now.

It's under Creative Commons Attribtution licence:
https://notificationsounds.com/notifica ... /coins-497

Re: Chat Bell - ring a bell on name's quote in chat

Posted: Thu Feb 09, 2017 12:04
by Desour
Btw if you don't add the sound to the mod, each player could have his or her own bell sound.
http://wiki.minetest.net/Sound_Packs

Re: Chat Bell - ring a bell on name's quote in chat

Posted: Thu Feb 09, 2017 16:10
by bousket
I m new to minetest and I am not sure to understand how sounds packs work.
If there is no sound file on the server, how the users know they can get chatbell working by putting some .ogg in their shared folder ?

I'd like to know more because it sounds better for the users. Then, you can chose your own or let it blank and chatbell is disabled. No need for the command and settings parts anymore, which makes it a 10 lines of code mod :D

For now, the sound is easily configurable (server side) in init.lua.

Re: Chat Bell - ring a bell on name's quote in chat

Posted: Thu Feb 09, 2017 18:01
by Desour
As much as I know, if there's no file with the right name found in the sounds folder in the mod folder then the file from the sounds folder in the minetest folder with the right name is taken.
=> You can delete the sounds folder in the mod folder (and the option commands) but play a sound like "chatbell_bell.ogg" or something like that, the players who don't have a sound with this name in the sounds folder don't hear it. (Perhaps you should add a setting command to change the gain.)

Re: Chat Bell - ring a bell on name's quote in chat

Posted: Thu Feb 09, 2017 18:24
by bousket
I agree on that part. But how a user connecting to a server using chatbell will know there's a missing sound and he can benefit this functionality ?

Re: Chat Bell - ring a bell on name's quote in chat

Posted: Thu Feb 09, 2017 19:20
by Desour
Um, the server can inform them.
Having that sound in the sounds folder makes no problem, everyone who wants to and sees this mod topic should add it. You should put here some information about it if you do it.
In future I will ask the admins of servers to install this mod to have the feature.
Edit: You should rename the sounds to something like "chatbell_coin", there could be other mods that want to use the same file name.

Re: Chat Bell - ring a bell on name's quote in chat

Posted: Thu Feb 09, 2017 20:37
by bousket
readme.txt updated with Sound Packs possibility.