[Mod] Internet Relay Chat [irc]

ghostshell
Member
 
Posts: 21
Joined: Sat May 05, 2012 20:53

by ghostshell » Fri Mar 29, 2013 23:42

we use this mod for Boomtown. check it out at freenode channel #boomtown

thanks, nice work !
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sat Mar 30, 2013 00:07

ghostshell wrote:we use this mod for Boomtown. check it out at freenode channel #boomtown

thanks, nice work !

Thanks! Glad you found this useful.
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
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Fri Apr 19, 2013 18:53

Why does it iterate through all online players and use chat_send_player(name, msg) instead of just doing minetest.chat_send_all(msg)?
 

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

by Calinou » Fri Apr 19, 2013 20:57

Traxie21 wrote:Why does it iterate through all online players and use chat_send_player(name, msg) instead of just doing minetest.chat_send_all(msg)?


Maybe to not send the message on IRC, minetest.chat_send_all is sent to IRC, no?
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Fri Apr 19, 2013 21:57

Nope, minetest.chat_send_all works fine, I modified it.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sat Apr 20, 2013 02:58

Oh sorry for the late reply.
It's because you can use /part and /join to set whether or not you want (as a player) to send your messages to the IRC channel.

So when the mod receives a message, it checks which users are "in" the channel and sends the message only to them.
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
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Sat Apr 20, 2013 03:02

There should be a setting to add everyone to the channel
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sat Apr 20, 2013 03:21

jojoa1997 wrote:There should be a setting to add everyone to the channel

Oh my g*d! how could I possibly miss such an useful feature??
https://github.com/kaeza/minetest-irc/blob/master/src/config.lua#L54
[ /sarcasm ]
Last edited by kaeza on Sat Apr 20, 2013 03:24, edited 1 time in total.
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
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Sat Apr 20, 2013 03:29

Maybe add an icon using the new lua HUD. Some icon in the upper right hand side would be nice.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sat Apr 20, 2013 03:32

Hmm... that's actually a nice idea.
I'm currently working on adding HUD to survival_modpack, and ShadowNinja is doing some heavy reformatting on the source code of IRC mod, so that'll have to wait.
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
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Wed Aug 21, 2013 03:30

BIG Update:

This mod was heavily rewritten by ShadowNinja, using a different LuaIRC library.

As a result, and as ShadowNinja says, "It is waaaaay smaller and more responsive." 100% guaranteed ;)

See first post for download link.
Last edited by kaeza on Wed Aug 21, 2013 03:33, edited 1 time in total.
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
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

by BrunoMine » Mon Jan 13, 2014 16:10

error
I received this error message:
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
ERROR: ModError: Failed to load and run
C:Users/Bruno/Desktop/Minetest-0.4.9/bin...mods/irc/init.lua


[spoiler=Debug]
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
-------------
  Separator 
-------------
14:07:23: ERROR[main]: ========== ERROR FROM LUA ===========
14:07:23: ERROR[main]: Failed to load and run script from
14:07:23: ERROR[main]: C:\Users\Bruno\Desktop\MinetestData\minetest-0.4.9\bin\..\mods\irc\init.lua:
14:07:23: ERROR[main]: cannot open C:\Users\Bruno\Desktop\MinetestData\minetest-0.4.9\bin\..\mods\irc\init.lua: No such file or directory
14:07:23: ERROR[main]: ======= END OF ERROR FROM LUA ========
14:07:23: ERROR[main]: Server: Failed to load and run C:\Users\Bruno\Desktop\MinetestData\minetest-0.4.9\bin\..\mods\irc\init.lua
14:07:23: ERROR[main]: ModError: ModError: Failed to load and run C:\Users\Bruno\Desktop\MinetestData\minetest-0.4.9\bin\..\mods\irc\init.lua
[/spoiler]

SO: Windows 7
Last edited by BrunoMine on Mon Jan 13, 2014 16:16, edited 1 time in total.
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Mon Jan 13, 2014 16:16

brunob.santos wrote:error
I received this error message:
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
ERROR: ModError: Failed to load and run
C:Users/Bruno/Desktop/Minetest-0.4.9/bin...mods/irc/init.lua

That is not enough information. It's only saying it's failing, but not giving a reason.
Try pasting more lines from the console or debug.txt (hint: search for a line that says "=== ERROR FROM LUA ===").

Are you using the "source" tree as a mod? This "mod" is not meant to be put directly into the `mods' directory. Read the README for more info.

By the way, this mod does not currently work on Windows, so you may as well not waste your time.

EDIT: Saw your edit it seems you are using the source tree as a mod.
Last edited by kaeza on Mon Jan 13, 2014 16:17, edited 1 time in total.
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
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

by BrunoMine » Mon Jan 13, 2014 16:57

HOOOOOOO :(
Sadness!
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

ranta
Member
 
Posts: 15
Joined: Thu Feb 06, 2014 23:30

by ranta » Sun Feb 23, 2014 12:45

this mod is definatly not for someone who has little to no lua knowledge like me the instrutions make my head explode
 

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 » Thu Apr 10, 2014 14:41

kaeza wrote:By the way, this mod does not currently work on Windows, so you may as well not waste your time.

Is there any plan for this mod to support windows in the future?
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Thu Apr 10, 2014 15:48

CraigyDavi wrote:Is there any plan for this mod to support windows in the future?

Not in the foreseeable future.

IRC Mod crashes Minetest on Windows because they use "different" Lua libraries (they are actually the same, but Minetest uses a statically linked version, and the mod uses a DLL). This magically works on *nix, but not on Windows.

A possible solution would be to make Minetest use a Lua DLL instead of statically linked Lua, and make the mod use the same DLL, but I don't know if this would even work.
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
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by kaeza » Wed May 14, 2014 05:42

*BUMP*
New build for Ubuntu 14.04 AMD64 generously provided by Calinou. See first post for links.
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
 

ThatGraemeGuy
Member
 
Posts: 126
Joined: Thu Jul 31, 2014 11:02
GitHub: thatgraemeguy
IRC: ThatGraemeGuy
In-game: thatgraemeguy

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by ThatGraemeGuy » Tue Aug 19, 2014 18:49

OK, what am I missing. I figured I need LuaSocket and every Ubuntu package I've tried that i thought may satisfy the dependency hasn't helped. I found an "Installation" page at http://w3.impa.br/~diego/software/luaso ... ation.html, which tells me a lot, except how to install LuaSocket.
 

User avatar
stormchaser3000
Member
 
Posts: 407
Joined: Sun Oct 06, 2013 21:02

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by stormchaser3000 » Tue Aug 19, 2014 23:37

ThatGraemeGuy wrote:OK, what am I missing. I figured I need LuaSocket and every Ubuntu package I've tried that i thought may satisfy the dependency hasn't helped. I found an "Installation" page at http://w3.impa.br/~diego/software/luaso ... ation.html, which tells me a lot, except how to install LuaSocket.


what version of ubuntu are you using?
 

User avatar
Fritigern
Member
 
Posts: 43
Joined: Mon Sep 29, 2014 11:01
In-game: Fritigern

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by Fritigern » Mon Sep 29, 2014 11:16

ThatGraemeGuy wrote:OK, what am I missing. I figured I need LuaSocket and every Ubuntu package I've tried that i thought may satisfy the dependency hasn't helped. I found an "Installation" page at http://w3.impa.br/~diego/software/luaso ... ation.html, which tells me a lot, except how to install LuaSocket.


I'm using Kubuntu 14.10 Beta, and I was pulling out my hair because I couldn't get the mod to work.
Here's the big trick:

First off, the only additional package that you need to install is lua-socket
So (for those that read along, looking for a solution too) first run
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
sudo apt-get install lua-socket


Then open mods/minetest_irc/init.lua and find lines 20 and 21 which read as follows:
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
      package.cpath = package.cpath..
             ";/usr/lib/lua/5.1/?.so"


and change that to
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
      package.cpath = package.cpath..
 --          ";/usr/lib/lua/5.1/?.so"
             ";/usr/lib/x86_64-linux-gnu/lua/5.1/?.so"

This comments out the original search path (so it can be undone if needed) and adds the path where Debian/Ubuntu/etc. will install LuaSocket to.
I do believe that the path is slightly different for 32-bit systems, but I forgot how it is different.

You should be all set now. Don't forget to double check your IRC related config options to minetest.conf!

Hope this helps!
Last edited by Fritigern on Mon Nov 03, 2014 13:36, edited 1 time in total.
--
This is NOT a sig.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by kaeza » Mon Sep 29, 2014 11:44

If that fails, try these commands:
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
sudo apt-get install luarocks
sudo luarocks install luasocket
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
Pitriss
Member
 
Posts: 253
Joined: Mon Aug 05, 2013 17:09
GitHub: Pitriss
IRC: pitriss
In-game: pitriss

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by Pitriss » Sat Oct 04, 2014 22:52

Hi, please can you consider adding per user setting to disable autojoin?
I reject your reality and substitute my own. (A. Savage, Mythbusters)
I'm not modding and/or playing minetest anymore. All my mods were released under WTFPL. You can fix/modify them yourself. Don't ask me for support. Thanks.
 

User avatar
Fritigern
Member
 
Posts: 43
Joined: Mon Sep 29, 2014 11:01
In-game: Fritigern

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by Fritigern » Sun Oct 05, 2014 13:57

kaeza wrote:If that fails, try these commands:
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
sudo apt-get install luarocks
sudo luarocks install luasocket

Could you elaborate and explain what that would do?
--
This is NOT a sig.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by kaeza » Sun Oct 05, 2014 17:03

Fritigern wrote:
kaeza wrote:If that fails, try these commands:
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
sudo apt-get install luarocks
sudo luarocks install luasocket

Could you elaborate and explain what that would do?

It would AFAIK install luasocket into a standard directory where Lua can find it without adding paths to `init.lua`.
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
 

DI3HARD139
Member
 
Posts: 144
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by DI3HARD139 » Mon Apr 27, 2015 16:42

One of my servers keeps crashing with 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
terminate called after throwing an instance of 'ServerError'
  what():  /home/di3hard139/.minetest/mods/irc/chatcmds.lua:53: attempt to index a nil value
stack traceback:
   /home/di3hard139/.minetest/mods/irc/chatcmds.lua:53: in function 'func'
   /usr/share/minetest/builtin/game/chatcommands.lua:40: in function </usr/share/minetest/builtin/game/chatcommands.lua:29>
   /usr/share/minetest/builtin/game/register.lua:341: in function </usr/share/minetest/builtin/game/register.lua:329>
Aborted (core dumped)

It didn't dump in the debug.txt file so I pulled it from terminal. My 2nd server gets this same error but doesn't crash from it.
Servers: mt.rrhgameservers.ml = [RRH] MT-Creative (48250), RRH-Survival (48253), Unknown (48255), Minetest City (48262)
Specs = Intel Core i5-3570s 16GB DDR3 2TB HDD, Ubuntu Server 16.04.1 x64 XFCE
------------------------------------------------------------
System: Lenovo Thinkstation S30 = Intel Xeon E5-2665, 20GB DDR3 (1333MHz Non-ECC), Gigabyte GTX1060 6GB, 3.5TB Storage, Win 10 Pro x64.
 

User avatar
Cryterion
Member
 
Posts: 93
Joined: Tue Jun 10, 2014 08:12
GitHub: Cryterion
IRC: Cryterion
In-game: Cryterion

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by Cryterion » Sun May 17, 2015 18:08

If anyone can help with the following, have installed luasocker and lua-socket via both scenarios above. The server is 32bit. It indicates that the files cannot be found, could anyone indicate where it might be in ubuntu 14.04?

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
2015-05-17 20:01:18: ERROR[main]: ========== ERROR FROM LUA ===========
2015-05-17 20:01:18: ERROR[main]: Failed to load and run script from
2015-05-17 20:01:18: ERROR[main]: /home/server01/MT/minetest/bin/../games/dreambuiler/mods/irc/init.lua:
2015-05-17 20:01:18: ERROR[main]: .../minetest/bin/../games/dreambuiler/mods/irc/init.lua:37: module 'irc' not found:
2015-05-17 20:01:18: ERROR[main]:    no field package.preload['irc']
2015-05-17 20:01:18: ERROR[main]:    no file '/home/server01/MT/minetest/bin/../games/dreambuiler/mods/irc/irc/init.lua'
2015-05-17 20:01:18: ERROR[main]:    no file '/home/server01/MT/minetest/bin/../games/dreambuiler/mods/irc/irc.lua'
2015-05-17 20:01:18: ERROR[main]:    no file './irc.lua'
2015-05-17 20:01:18: ERROR[main]:    no file '/usr/local/share/lua/5.1/irc.lua'
2015-05-17 20:01:18: ERROR[main]:    no file '/usr/local/share/lua/5.1/irc/init.lua'
2015-05-17 20:01:18: ERROR[main]:    no file '/usr/local/lib/lua/5.1/irc.lua'
2015-05-17 20:01:18: ERROR[main]:    no file '/usr/local/lib/lua/5.1/irc/init.lua'
2015-05-17 20:01:18: ERROR[main]:    no file '/usr/share/lua/5.1/irc.lua'
2015-05-17 20:01:18: ERROR[main]:    no file '/usr/share/lua/5.1/irc/init.lua'
2015-05-17 20:01:18: ERROR[main]:    no file './irc.so'
2015-05-17 20:01:18: ERROR[main]:    no file '/usr/local/lib/lua/5.1/irc.so'
2015-05-17 20:01:18: ERROR[main]:    no file '/usr/local/lib/lua/5.1/loadall.so'
2015-05-17 20:01:18: ERROR[main]:    no file '/usr/lib/x86_64-linux-gnu/lua/5.1/irc.so'
2015-05-17 20:01:18: ERROR[main]: stack traceback:
2015-05-17 20:01:18: ERROR[main]:    [C]: in function 'require'
2015-05-17 20:01:18: ERROR[main]:    .../minetest/bin/../games/dreambuiler/mods/irc/init.lua:37: in main chunk
2015-05-17 20:01:18: ERROR[main]: ======= END OF ERROR FROM LUA ========
2015-05-17 20:01:18: ERROR[main]: Server: Failed to load and run /home/server01/MT/minetest/bin/../games/dreambuiler/mods/irc/init.lua
2015-05-17 20:01:18: ERROR[main]: ERROR: An unhandled exception occurred: ModError: Failed to load and run /home/server01/MT/minetest/bin/../games/dreambuiler/mods/irc/init.lua
No trees or animals were hurt in the production of this message. However, a large number of Electrons were temporarily inconvenienced.
 

User avatar
Cryterion
Member
 
Posts: 93
Joined: Tue Jun 10, 2014 08:12
GitHub: Cryterion
IRC: Cryterion
In-game: Cryterion

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by Cryterion » Tue May 19, 2015 12:58

Nevermind, got it working :)
No trees or animals were hurt in the production of this message. However, a large number of Electrons were temporarily inconvenienced.
 

User avatar
fireglow
Member
 
Posts: 72
Joined: Fri Mar 28, 2014 11:36
IRC: fireglow
In-game: fireglow

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by fireglow » Mon Jan 04, 2016 06:43

Very cool mod, absolutely love it!
Suggestion: Display the reason for a player leaving the minetest server in the IRC message.
While on IRC, I see a few players always joining/quitting the minetest servers, so it'd be nice to see if they, for example, time out or not.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: [Mod] IRC Chat (Huge rewrite!) [irc]

by kaeza » Mon Jan 04, 2016 07:14

Thank you.

While I agree that the feature is needed and would be welcome by several server owners, as far as I know there's no way in the Minetest API to distinguish if a player left because of timeout or just disconnected. It may be possible to patch the engine for support (if there's no way already).

Edit: After a little bit of discussion on the dev channel, it would involve too many changes for a feature that maybe one or two mods may find useful. Sorry, but won't implement at this point.
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
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 6 guests

cron