[mod] KM Chat [0.2] [kmchat]

vegasd
New member
Posts: 1
Joined: Thu Feb 06, 2014 17:55

[mod] KM Chat [0.2] [kmchat]

by vegasd » Post

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
0.1 initial version
0.2 made syntax and formats more configurable
Code: GPLv3

Mod dependencies: default

Download: github
Last edited by vegasd on Sat Feb 15, 2014 07:12, edited 1 time in total.

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

by rubenwardy » Post

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.
Last edited by rubenwardy on Thu Feb 06, 2014 18:32, edited 1 time in total.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
AMMOnym
Member
Posts: 682
Joined: Tue Sep 10, 2013 14:18
IRC: AMMOnym
In-game: AMMOnym
Location: Slovakia

by AMMOnym » Post

THIS IS AWESOME !!!!

User avatar
Krock
Developer
Posts: 4683
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

by Krock » Post

1st post, signed up today, posted a perfect mod.
I CAN NOT UNDERSTAND THE WORLD ANYMORE
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Novacain
Member
Posts: 285
Joined: Sat Aug 31, 2013 01:03
Location: Skaaro

by Novacain » Post

vegasd wrote:d6
d8
...etc. to roll dice, just print "d10" and so on
are you suggesting we have a D&D server?
EXTERMINATE!!!
My Tronrealm modpack
My tronblocks mod

User avatar
hoodedice
Member
Posts: 1374
Joined: Sat Jul 06, 2013 06:33
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice
Location: world
Contact:

by hoodedice » Post

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.
Last edited by hoodedice on Thu Feb 06, 2014 19:53, edited 1 time in total.
7:42 PM - Bauglio: I think if you go to staples you could steal firmware from a fax machine that would run better than win10 does on any platform
7:42 PM - Bauglio: so fudge the stable build
7:43 PM - Bauglio: get the staple build

User avatar
hunterdelyx1
Member
Posts: 27
Joined: Fri Aug 10, 2012 02:14

by hunterdelyx1 » Post

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.
Last edited by hunterdelyx1 on Thu Feb 06, 2014 21:06, edited 1 time in total.
Still waiting for utf 8 minetest formspec support, looking at freeminer.

User avatar
hoodedice
Member
Posts: 1374
Joined: Sat Jul 06, 2013 06:33
GitHub: hoodedice
IRC: hoodedice
In-game: hoodedice
Location: world
Contact:

by hoodedice » Post

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.
7:42 PM - Bauglio: I think if you go to staples you could steal firmware from a fax machine that would run better than win10 does on any platform
7:42 PM - Bauglio: so fudge the stable build
7:43 PM - Bauglio: get the staple build

User avatar
hunterdelyx1
Member
Posts: 27
Joined: Fri Aug 10, 2012 02:14

by hunterdelyx1 » Post

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.
Last edited by hunterdelyx1 on Thu Feb 06, 2014 20:57, edited 1 time in total.
Still waiting for utf 8 minetest formspec support, looking at freeminer.

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

by philipbenr » Post

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.

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Calinou
Member
Posts: 3168
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

+1 for the separate chat console, but chat should be global by default, with \ prefix for local.

Sullome
New member
Posts: 6
Joined: Mon Nov 25, 2013 22:00

by Sullome » Post

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.

User avatar
LuxAtheris
Member
Posts: 169
Joined: Fri Oct 25, 2013 00:54
Location: Aether

by LuxAtheris » Post

This is what I really need!
what a neat mod. +1
Believe you can and you’re halfway there.

User avatar
LuxAtheris
Member
Posts: 169
Joined: Fri Oct 25, 2013 00:54
Location: Aether

by LuxAtheris » Post

So when will there be a download?
Believe you can and you’re halfway there.

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post


User avatar
LuxAtheris
Member
Posts: 169
Joined: Fri Oct 25, 2013 00:54
Location: Aether

by LuxAtheris » Post

Sorry bat i got this error:

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?
Believe you can and you’re halfway there.

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

by rubenwardy » Post

LuxAtheris wrote:Sorry bat i got this error:

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 ... it.lua#L34

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

! may not be a regex character.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
hunterdelyx1
Member
Posts: 27
Joined: Fri Aug 10, 2012 02:14

by hunterdelyx1 » Post

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.
Last edited by hunterdelyx1 on Sun Feb 09, 2014 12:46, edited 1 time in total.
Still waiting for utf 8 minetest formspec support, looking at freeminer.

User avatar
sparky
Member
Posts: 154
Joined: Sun Oct 05, 2014 00:54
GitHub: Elkien3
IRC: ircSparky
In-game: sparky
Location: USA
Contact:

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

by sparky » Post

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 '"'
I'm having this problem.

User avatar
Krock
Developer
Posts: 4683
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

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

by Krock » Post

sparky wrote:
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 '"'
I'm having this problem.
Have you got the latest version of this mod?
Code position in init.lua
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
sparky
Member
Posts: 154
Joined: Sun Oct 05, 2014 00:54
GitHub: Elkien3
IRC: ircSparky
In-game: sparky
Location: USA
Contact:

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

by sparky » Post

well I've re-downloaded it a couple of times.

User avatar
hunterdelyx1
Member
Posts: 27
Joined: Fri Aug 10, 2012 02:14

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

by hunterdelyx1 » Post

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

User avatar
Esteban
Member
Posts: 873
Joined: Sun Sep 08, 2013 13:26
In-game: Esteban
Contact:

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

by Esteban » Post

The mod works in 4.10-stable:
Image

I think I should get bigger fonts :P
EDIT: Can anyone suggest me a font pack?
Scan avatar or click here to read a Message of Hope (PDF)

Sokomine
Member
Posts: 4317
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

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

by Sokomine » Post

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).
A list of my mods can be found here.

Post Reply