Page 1 of 2

[mod] KM Chat [0.2] [kmchat]

PostPosted: Thu Feb 06, 2014 18:14
by vegasd
Adds minecraft-like chat with aditional features. Features local chat (default radius is 18 blocks), shout (default radius is 68 blocks), whisper (default radius is 3 blocks), ooc-chat (for roleplay servers) and global chat, also have a privelege to see all messages not in range for moderators. Also added dices.

Image

chat syntax is pretty simple:
just say something and you will talk in local chat
!hey, start your message with "!" and you will shout
=psss, start your message wit "=" and you will whisper
(( take your message into "(( ))" to talk in ooc ))
?start your message with "?" to talk in global chat
d6
d8
...etc. to roll dice, just print "d10" and so on

[spoiler=changelog]
0.1 initial version
0.2 made syntax and formats more configurable
[/spoiler]

Code: GPLv3

Mod dependencies: default

Download: github

PostPosted: Thu Feb 06, 2014 18:31
by rubenwardy
Nice, this is pretty cool.

Freeminer has colors in chat stream.

I recommend that you host mods in individual repos, rather than one big one.

PostPosted: Thu Feb 06, 2014 19:07
by AMMOnym
THIS IS AWESOME !!!!

PostPosted: Thu Feb 06, 2014 19:25
by Krock
1st post, signed up today, posted a perfect mod.
I CAN NOT UNDERSTAND THE WORLD ANYMORE

PostPosted: Thu Feb 06, 2014 19:47
by Novacain
vegasd wrote:d6
d8
...etc. to roll dice, just print "d10" and so on


are you suggesting we have a D&D server?

PostPosted: Thu Feb 06, 2014 19:53
by hoodedice
Krock wrote:1st post, signed up today, posted a perfect mod.
I CAN NOT UNDERSTAND THE WORLD ANYMORE


These are people who are epic. And then there are people with 683 posts (as of this posting) and not a single completed mod. Oh, hello there, mirror.

PostPosted: Thu Feb 06, 2014 19:54
by hunterdelyx1
Novacain wrote:are you suggesting we have a D&D server?

No, we aren't. We have our RP-server. We are going to migrate to minetest(we are using minecraft now).

We made this mod for us but decided to share it with other people.

PostPosted: Thu Feb 06, 2014 20:36
by hoodedice
hunterdelyx1 wrote:
Novacain wrote:are you suggesting we have a D&D server?

No, we aren't. We have our RP-server. We are going migrate to minetest(we are using minecraft now).

We made this mod for us but decided to share it with other people.


That's great hunter! I and another person are also working on getting some Minecraft players over to Minetest! It would be helpful for us if you could post a link to your website, forum or IRC chan.

PostPosted: Thu Feb 06, 2014 20:54
by hunterdelyx1
hoodedice wrote:That's great hunter! I and another person are also working on getting some Minecraft players over to Minetest! It would be helpful for us if you could post a link to your website, forum or IRC chan.

>http://konungstvo.ru
Here you are.
And we have jabber-conference.

But we are russian-speaking community. So I don't think that it'll be useful for you.

PostPosted: Thu Feb 06, 2014 21:32
by philipbenr
Krock wrote:1st post, signed up today, posted a perfect mod.
I CAN NOT UNDERSTAND THE WORLD ANYMORE


+1 lol I am glad that the modding community has grown so much right now. I really am beginning to enjoy this mod though.

PostPosted: Fri Feb 07, 2014 11:48
by rubenwardy
Krock wrote:1st post, signed up today, posted a perfect mod.
I CAN NOT UNDERSTAND THE WORLD ANYMORE


PilzAdam did the same. First post was a Mod.

PostPosted: Fri Feb 07, 2014 12:32
by Calinou
+1 for the separate chat console, but chat should be global by default, with \ prefix for local.

PostPosted: Fri Feb 07, 2014 14:28
by Sullome
Calinou wrote:+1 for the separate chat console, but chat should be global by default, with \ prefix for local.

We host roleplay server. Global chat? Only for gods.

PostPosted: Sat Feb 08, 2014 13:38
by LuxAtheris
This is what I really need!
what a neat mod. +1

PostPosted: Sat Feb 08, 2014 14:25
by LuxAtheris
So when will there be a download?

PostPosted: Sat Feb 08, 2014 15:32
by Jordach

PostPosted: Sun Feb 09, 2014 00:35
by LuxAtheris
Sorry bat 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
08:33:52: ERROR[main]: Failed to load and run script from
08:33:52: ERROR[main]: D:\minetest-0.4.8\bin\..\mods\kmchat\init.lua:
08:33:52: ERROR[main]: D:\minetest-0.4.8\bin\..\mods\kmchat\init.lua:34: invalid escape sequence near '"'

Also is this for 0.4.9?

PostPosted: Sun Feb 09, 2014 12:23
by rubenwardy
LuxAtheris wrote:Sorry bat 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
08:33:52: ERROR[main]: Failed to load and run script from
08:33:52: ERROR[main]: D:\minetest-0.4.8\bin\..\mods\kmchat\init.lua:
08:33:52: ERROR[main]: D:\minetest-0.4.8\bin\..\mods\kmchat\init.lua:34: invalid escape sequence near '"'

Also is this for 0.4.9?


Try changing https://github.com/vegasd/minetest-mods/blob/master/kmchat/init.lua#L34

to ["!(.+)"] = {"%s (shouts): %s", 68, 0xFFFFFF, nil },

! may not be a regex character.

PostPosted: Sun Feb 09, 2014 12:38
by hunterdelyx1
Yeah. I've already fixed it. Vegasd just decided to be on the safe side and added escape sequence to "!".

There wasn't error on linux.

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Wed Oct 08, 2014 00:30
by sparky
8:33:52: ERROR[main]: Failed to load and run script from
08:33:52: ERROR[main]: D:\minetest-0.4.8\bin\..\mods\kmchat\init.lua:
08:33:52: ERROR[main]: D:\minetest-0.4.8\bin\..\mods\kmchat\init.lua:34: invalid escape sequence near '"'

I'm having this problem.

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Wed Oct 08, 2014 10:31
by Krock
sparky wrote:
8:33:52: ERROR[main]: Failed to load and run script from
08:33:52: ERROR[main]: D:\minetest-0.4.8\bin\..\mods\kmchat\init.lua:
08:33:52: ERROR[main]: D:\minetest-0.4.8\bin\..\mods\kmchat\init.lua:34: invalid escape sequence near '"'

I'm having this problem.

Have you got the latest version of this mod?
Code position in init.lua

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Wed Oct 08, 2014 22:35
by sparky
well I've re-downloaded it a couple of times.

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Fri Oct 10, 2014 23:32
by hunterdelyx1
I've removed all escape sequences in patterns. So it should work now.

Redownload it again, please. Apparently you are using a last version of minetest from github, where this bug appeared

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Fri Oct 10, 2014 23:43
by Esteban
The mod works in 4.10-stable:
Image

I think I should get bigger fonts :P
EDIT: Can anyone suggest me a font pack?

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Fri Oct 10, 2014 23:50
by Sokomine
Esteban wrote: think I should get bigger fonts :P

That's right. Colored chat in general would be very welcome. But I'd prefer slightly diffrent use of colors. Instead of distance, the type of chat messages would be more intresting (normal, server message, emote, reply from a command), and player names ought to be highlighted in the text. People who are moderators/admins ought to have another color than normal players (so that those who can grant interact can be identified more easily), and players without interact require yet another color (so that other players can tell them to ask for interact).

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Sat Oct 11, 2014 23:53
by sparky
I've removed all escape sequences in patterns. So it should work now.

Redownload it again, please. Apparently you are using a last version of minetest from github, where this bug appeared


now it works! :D nice mod!

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Tue Oct 14, 2014 16:57
by Minetestforfun
Esteban wrote:The mod works in 4.10-stable:
Image

I think I should get bigger fonts :P
EDIT: Can anyone suggest me a font pack?


Is it normal the text in the top left of your screen WITH the text in the KMchat position ?

I want add this mod to my server but i want the text only in the bottom left of the screen...

And how can we reduce the vertical spacing between two messages ?

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Mon Oct 27, 2014 17:27
by sparky
Minetestforfun wrote:
Esteban wrote:The mod works in 4.10-stable:
Image

I think I should get bigger fonts :P
EDIT: Can anyone suggest me a font pack?


Is it normal the text in the top left of your screen WITH the text in the KMchat position ?

I want add this mod to my server but i want the text only in the bottom left of the screen...

And how can we reduce the vertical spacing between two messages ?


the normal chat only shows commands and what the player says.

shouldn't be too hard try messing with TOP_INDENT or something.
EDIT: not TOP_INDENT. FONT_WIDTH is what you want. 16 is good.

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Thu Oct 30, 2014 17:01
by hunterdelyx1
0.3 added FUDGE dices and dozen of bugfixes

Image

Re: [mod] KM Chat [0.2] [kmchat]

PostPosted: Fri Oct 31, 2014 12:17
by Minetestforfun
Thank you for this update !
(maybe you want rename the title of this topic to "0.3" instead of "0.2" :))