[Mod] Chat channel [v2.1] [chat_channel] (chatplus merged)
- fairiestoy
- Member
- Posts: 191
- Joined: Sun Jun 09, 2013 19:25
- Location: Germany
[Mod] Chat channel [v2.1] [chat_channel] (chatplus merged)
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
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
Last edited by fairiestoy on Fri Aug 16, 2013 01:42, edited 1 time in total.
Interesting about new things is, to figure out how it works ...
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Nice!
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
- fairiestoy
- Member
- Posts: 191
- Joined: Sun Jun 09, 2013 19:25
- Location: Germany
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
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
Last edited by fairiestoy on Thu Aug 08, 2013 21:15, edited 1 time in total.
Interesting about new things is, to figure out how it works ...
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
In the chatplus branch I got this error
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 ========
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
- fairiestoy
- Member
- Posts: 191
- Joined: Sun Jun 09, 2013 19:25
- Location: Germany
Should be fixed now.BrandonReese wrote:In the chatplus branch I got this error
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 ========
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.
Interesting about new things is, to figure out how it works ...
- fairiestoy
- Member
- Posts: 191
- Joined: Sun Jun 09, 2013 19:25
- Location: Germany
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.
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.
Last edited by fairiestoy on Fri Aug 16, 2013 01:46, edited 1 time in total.
Interesting about new things is, to figure out how it works ...
- Mossmanikin
- Member
- Posts: 599
- Joined: Sun May 19, 2013 16:26
- Location: where we don't speak english.
Cool thing. One can learn some English by looking at the swearing_filter.txt.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.
- CraigyDavi
- Member
- Posts: 582
- Joined: Sat Aug 10, 2013 13:08
- GitHub: davisonio
- IRC: davisonio
- In-game: CraigyDavi
- Location: Hampshire, UK
- Contact:
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?
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?
- fairiestoy
- Member
- Posts: 191
- Joined: Sun Jun 09, 2013 19:25
- Location: Germany
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
- fairiestoy
- Member
- Posts: 191
- Joined: Sun Jun 09, 2013 19:25
- Location: Germany
Who is online
Users browsing this forum: No registered users and 47 guests