[mod] Advanced chat modes [chat_modes]

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

[mod] Advanced chat modes [chat_modes]

by taikedz » Tue Feb 28, 2017 21:26

Chat Modes API - Advance features for player chatting

License: LGPL 3.0

Github: https://github.com/taikedz/minetest-chat_modes
ZIP: https://github.com/taikedz/minetest-cha ... master.zip

+++

This mod alters the chat behaviour so that player chats don't necessarily get broadcast to all.

It is implemented as an API so that other mods can register their own rules for chat propagation. The main modes shipped by default are as follows (and each one can be turned off individually through minetest.conf settings):

    * deaf mode -- players can turn off normal chat whilst still receiving messages from mods that explicitly send feedback via chat
    * shout -- just like normal chat, any message sent to chat gets sent to all players (except deaf players)
    * channel -- allows players to chat exclusively in named channels
    * proximity -- players' messages are broadcast only to other players within a given distance

Additional features include @mention chatting, where a message is sent to players directly. Turn off this feature with the "chat_modes.no_at_replies"

    * If there is a list of @players at the start of the message, the chat will ONLY be sent to them
    * f the list is not at the beginning, then the message will be sent to all who would be affected by the active mode, as well as the players in the @mentions

Example: @admin @moderator I want to report @cheater and @griefer will only be sent to "@admin" and "@moderator"

Example: Hey guys can @friend @niceguy and @ally join our channel? will send to all players who would normally receive the message in the player's mode, as well as to @friend, @niceguy and @ally

Setup

It is setup such that it needs to be explicitly activated, so it can be included in a subgame without affecting normal functions when it is not desired.

Steps to set up:

    * Download the mod and extract it to your mods folder
    * Edit your minetest.conf and add:

    Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
    Code: Select all
    chat_modes.active = true
    chat_modes.no_at_replies = true
    default_privs = shout,interact,cmodeswitch


This will activate the mod with the default pre-defined chat mode features (deaf, shout, proximity, channel, @mentions)

This mod is pretty much finished now. If you would like to suggest a mode or feature to include by default, please raise an "issue" on the github page, clearly indicating the intended behaviour.

If you wish to make a pull request, do this against the "dev" branch.

Ideally it could be included in minetest_game, so that the default game can benefit ab initio from advanced chat options after being explicitly activated.

Any thoughts or comments welcome.
Last edited by taikedz on Fri Mar 03, 2017 17:52, edited 7 times in total.
 

User avatar
GreenDimond
Member
 
Posts: 460
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [mod] Different chat modes (proximity, channels, etc)

by GreenDimond » Tue Feb 28, 2017 21:32

This is great! I plan to use this mod in a
+ subgame I am making.
I am Green. I tend to binge-post. "All of this over a 16x16 representation of a cartoon cat ?!?! what has this world come to..." -TenPlus1, 2017.
Diz mah mods! :D ↑ github.com/minetest/minetest_game/issues/1647#issuecomment-288134572 ↑
Sand Plus - Tac Nayn - Waffles - Coming Soon: Caverealms Plus
 

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

Re: [mod] Different chat modes (proximity, channels, etc)

by taikedz » Fri Mar 03, 2017 14:42

This mod is now complete and ready for beta testing :-D
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 36 guests

cron