Page 1 of 1

[Mod] Chat channel [v2.1] [chat_channel] (chatplus merged)

PostPosted: Sun Aug 04, 2013 17:20
by fairiestoy
Version: 2.1
License: WTFPL
Dependencies: none
Description:
This mod allows users to define and use chat channels in the game. This way, private conversations keep private. Its also possible to define a maximum distance in which users can hear this chat. As example:
By default, the channel 'local' is registered with a distance of 7. So only players within a 14x14x14 radius are capable of receiving messages within this channel.

Future planned features:
> Currently none

Latest Update!
The other branches now includes a simple swearing filter with most common english swear words. If you want this feature, download the merged mod.

Source:
@Github

Download:
From github source

Other branches:
The following branch merges together the chatplus mod from rubenwardy which i forked from BrandonReese
with the chat channels mod
Source @Github
Greetings

PostPosted: Sun Aug 04, 2013 17:32
by kaeza
Nice!

PostPosted: Thu Aug 08, 2013 21:14
by fairiestoy
Update:
Merged together the chatplus code with the channels possibility. Most significant changes to the base code were the splitting of log and base code (i moved the log part to another file for better readability) and the transfer from globalsteps to a minetest.after() routine for the HUD element.

Download

Chatplus Branch @Github

PostPosted: Fri Aug 09, 2013 15:08
by rubenwardy
Very nice!

Well done.

PostPosted: Thu Aug 15, 2013 13:39
by BrandonReese
In the chatplus branch I got this error

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
09:11:12: ERROR[main]: ========== ERROR FROM LUA ===========
09:11:12: ERROR[main]: Failed to load and run script from
09:11:12: ERROR[main]: /home/minetest/minetest/bin/../mods/chat_channel/init.lua:
09:11:12: ERROR[main]: /home/minetest/minetest/bin/../mods/chat_channel/s_log.lua:39: attempt to concatenate local 'message' (a table value)
09:11:12: ERROR[main]: stack traceback:
09:11:12: ERROR[main]:  /home/minetest/minetest/bin/../mods/chat_channel/s_log.lua:39: in function 'write'
09:11:12: ERROR[main]:  /home/minetest/minetest/bin/../mods/chat_channel/s_log.lua:33: in function 'init'
09:11:12: ERROR[main]:  /home/minetest/minetest/bin/../mods/chat_channel/init.lua:342: in main chunk
09:11:12: ERROR[main]: =======END OF ERROR FROM LUA ========

PostPosted: Thu Aug 15, 2013 17:25
by fairiestoy
BrandonReese wrote:In the chatplus branch I got this error

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
09:11:12: ERROR[main]: ========== ERROR FROM LUA ===========
09:11:12: ERROR[main]: Failed to load and run script from
09:11:12: ERROR[main]: /home/minetest/minetest/bin/../mods/chat_channel/init.lua:
09:11:12: ERROR[main]: /home/minetest/minetest/bin/../mods/chat_channel/s_log.lua:39: attempt to concatenate local 'message' (a table value)
09:11:12: ERROR[main]: stack traceback:
09:11:12: ERROR[main]:  /home/minetest/minetest/bin/../mods/chat_channel/s_log.lua:39: in function 'write'
09:11:12: ERROR[main]:  /home/minetest/minetest/bin/../mods/chat_channel/s_log.lua:33: in function 'init'
09:11:12: ERROR[main]:  /home/minetest/minetest/bin/../mods/chat_channel/init.lua:342: in main chunk
09:11:12: ERROR[main]: =======END OF ERROR FROM LUA ========


Should be fixed now.
Warning
This fix enables the log as default by logging all. So keep an eye on it if you want to just log to file or only to console.

PostPosted: Fri Aug 16, 2013 01:44
by fairiestoy
Update
Added a very basic Swearing filter with most common english swear words. The message send from each player gets filtered with all words inside this file and will be given back to the normal code after formatting it.

PostPosted: Fri Aug 16, 2013 23:16
by Mossmanikin
fairiestoy wrote:Update
Added a very basic Swearing filter with most common english swear words. The message send from each player gets filtered with all words inside this file and will be given back to the normal code after formatting it.


Cool thing. One can learn some English by looking at the swearing_filter.txt.

PostPosted: Mon Aug 26, 2013 17:58
by CraigyDavi
This would be even better if it auto banned people for using words in the swearing filter! Would that be possible?

Cool I think you can add words to the swearing filter.

This mod is brilliant! People can inbox me in the chat when I'm offline to get privs and things?

What happens when someone uses a word in the swearing filter?

PostPosted: Sat Sep 21, 2013 16:49
by fairiestoy
Is it possible to delete this topic? I deleted the chatchannels repo because there is a new project coming up where the chatplus merged branch will be included. Would be nice (thanks to the moderator in advance)

PostPosted: Sat Sep 21, 2013 18:58
by rubenwardy
You can request it be moved to old_mods

PostPosted: Sat Sep 21, 2013 19:32
by fairiestoy
Thanks for the tip, i made a request in the related topic