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

Post Reply
User avatar
fairiestoy
Member
Posts: 191
Joined: Sun Jun 09, 2013 19:25
Location: Germany

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

by fairiestoy » Post

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
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 ...

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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

User avatar
fairiestoy
Member
Posts: 191
Joined: Sun Jun 09, 2013 19:25
Location: Germany

by fairiestoy » Post

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
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 ...

User avatar
rubenwardy
Moderator
Posts: 6977
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Very nice!

Well done.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
BrandonReese
Member
Posts: 839
Joined: Wed Sep 12, 2012 00:44
GitHub: bremaweb
IRC: BrandonReese
In-game: BrandonReese
Location: USA

by BrandonReese » Post

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 ========

User avatar
fairiestoy
Member
Posts: 191
Joined: Sun Jun 09, 2013 19:25
Location: Germany

by fairiestoy » Post

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 ========
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.
Interesting about new things is, to figure out how it works ...

User avatar
fairiestoy
Member
Posts: 191
Joined: Sun Jun 09, 2013 19:25
Location: Germany

by fairiestoy » Post

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.
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 ...

User avatar
Mossmanikin
Member
Posts: 599
Joined: Sun May 19, 2013 16:26
Location: where we don't speak english.

by Mossmanikin » Post

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.

Noob 4 life!
My stuff

User avatar
CraigyDavi
Member
Posts: 582
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi
Location: Hampshire, UK
Contact:

by CraigyDavi » Post

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?

User avatar
fairiestoy
Member
Posts: 191
Joined: Sun Jun 09, 2013 19:25
Location: Germany

by fairiestoy » Post

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)
Interesting about new things is, to figure out how it works ...

User avatar
rubenwardy
Moderator
Posts: 6977
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

You can request it be moved to old_mods
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
fairiestoy
Member
Posts: 191
Joined: Sun Jun 09, 2013 19:25
Location: Germany

by fairiestoy » Post

Thanks for the tip, i made a request in the related topic
Interesting about new things is, to figure out how it works ...

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 14 guests