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

Post Reply
bousket
New member
Posts: 9
Joined: Tue Feb 07, 2017 19:05
GitHub: bousket
IRC: bousket
In-game: bousket

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

by bousket » Post

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

User avatar
DS-minetest
Member
Posts: 1141
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

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

by DS-minetest » Post

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)
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

Nice! I've been planning on adding a feature like this to our "chat2" mod. Now I don't have to :P

User avatar
DS-minetest
Member
Posts: 1141
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

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

by DS-minetest » Post

Ehm, I what license does the sound have? I only found the code license.
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

bousket
New member
Posts: 9
Joined: Tue Feb 07, 2017 19:05
GitHub: bousket
IRC: bousket
In-game: bousket

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

by bousket » Post

True, I forgot it. It's added in the readme now.

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

User avatar
DS-minetest
Member
Posts: 1141
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

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

by DS-minetest » Post

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
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

bousket
New member
Posts: 9
Joined: Tue Feb 07, 2017 19:05
GitHub: bousket
IRC: bousket
In-game: bousket

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

by bousket » Post

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.

User avatar
DS-minetest
Member
Posts: 1141
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

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

by DS-minetest » Post

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.)
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

bousket
New member
Posts: 9
Joined: Tue Feb 07, 2017 19:05
GitHub: bousket
IRC: bousket
In-game: bousket

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

by bousket » Post

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 ?

User avatar
DS-minetest
Member
Posts: 1141
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

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

by DS-minetest » Post

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.
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

bousket
New member
Posts: 9
Joined: Tue Feb 07, 2017 19:05
GitHub: bousket
IRC: bousket
In-game: bousket

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

by bousket » Post

readme.txt updated with Sound Packs possibility.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests