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

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

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

by fairiestoy » Sun Aug 04, 2013 17:20

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
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sun Aug 04, 2013 17:32

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by fairiestoy » Thu Aug 08, 2013 21:14

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
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Aug 09, 2013 15:08

Very nice!

Well done.
 

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

by BrandonReese » Thu Aug 15, 2013 13:39

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

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

by fairiestoy » Thu Aug 15, 2013 17:25

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

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

by fairiestoy » Fri Aug 16, 2013 01:44

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

by Mossmanikin » Fri Aug 16, 2013 23:16

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: 565
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio or CraigyDavi
In-game: davisonio or CraigyDavi

by CraigyDavi » Mon Aug 26, 2013 17:58

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

by fairiestoy » Sat Sep 21, 2013 16:49

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
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sat Sep 21, 2013 18:58

You can request it be moved to old_mods
 

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

by fairiestoy » Sat Sep 21, 2013 19:32

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


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 47 guests

cron