[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 » Thu Feb 06, 2014 18:14

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
Last edited by vegasd on Sat Feb 15, 2014 07:12, edited 1 time in total.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Thu Feb 06, 2014 18:31

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.
 

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

by AMMOnym » Thu Feb 06, 2014 19:07

THIS IS AWESOME !!!!
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

by Krock » Thu Feb 06, 2014 19:25

1st post, signed up today, posted a perfect mod.
I CAN NOT UNDERSTAND THE WORLD ANYMORE
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

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

by Novacain » Thu Feb 06, 2014 19:47

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: 1372
Joined: Sat Jul 06, 2013 06:33

by hoodedice » Thu Feb 06, 2014 19:53

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 » Thu Feb 06, 2014 19:54

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: 1372
Joined: Sat Jul 06, 2013 06:33

by hoodedice » Thu Feb 06, 2014 20:36

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 » Thu Feb 06, 2014 20:54

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: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

by philipbenr » Thu Feb 06, 2014 21:32

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.
"The Foot is down!"
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Feb 07, 2014 11:48

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.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Fri Feb 07, 2014 12:32

+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 » Fri Feb 07, 2014 14:28

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

by LuxAtheris » Sat Feb 08, 2014 13:38

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

by LuxAtheris » Sat Feb 08, 2014 14:25

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

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Sat Feb 08, 2014 15:32

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

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

by LuxAtheris » Sun Feb 09, 2014 00:35

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

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Feb 09, 2014 12:23

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.
 

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

by hunterdelyx1 » Sun Feb 09, 2014 12:38

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: 61
Joined: Sun Oct 05, 2014 00:54
IRC: STHGOM
In-game: sparky

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

by sparky » Wed Oct 08, 2014 00:30

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.
-"Never look down on someone unless you're helping them up"
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

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

by Krock » Wed Oct 08, 2014 10:31

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
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
sparky
Member
 
Posts: 61
Joined: Sun Oct 05, 2014 00:54
IRC: STHGOM
In-game: sparky

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

by sparky » Wed Oct 08, 2014 22:35

well I've re-downloaded it a couple of times.
-"Never look down on someone unless you're helping them up"
 

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

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

by hunterdelyx1 » Fri Oct 10, 2014 23:32

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: 872
Joined: Sun Sep 08, 2013 13:26
GitHub: Esteban-
IRC: Esteban
In-game: Esteban

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

by Esteban » Fri Oct 10, 2014 23:43

The mod works in 4.10-stable:
Image

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

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

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

by Sokomine » Fri Oct 10, 2014 23:50

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.
 

User avatar
sparky
Member
 
Posts: 61
Joined: Sun Oct 05, 2014 00:54
IRC: STHGOM
In-game: sparky

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

by sparky » Sat Oct 11, 2014 23:53

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!
-"Never look down on someone unless you're helping them up"
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

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

by Minetestforfun » Tue Oct 14, 2014 16:57

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 ?
 

User avatar
sparky
Member
 
Posts: 61
Joined: Sun Oct 05, 2014 00:54
IRC: STHGOM
In-game: sparky

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

by sparky » Mon Oct 27, 2014 17:27

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.
-"Never look down on someone unless you're helping them up"
 

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

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

by hunterdelyx1 » Thu Oct 30, 2014 17:01

0.3 added FUDGE dices and dozen of bugfixes

Image
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

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

by Minetestforfun » Fri Oct 31, 2014 12:17

Thank you for this update !
(maybe you want rename the title of this topic to "0.3" instead of "0.2" :))
 

Next

Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 56 guests

cron