[Mod] Internet Relay Chat [irc]

User avatar
CraigyDavi
Member
 
Posts: 575
Joined: Sat Aug 10, 2013 13:08
Location: Hampshire, UK
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
Moderator
 
Posts: 2156
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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
Moderator
 
Posts: 2156
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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
Location: Cape Town, South Africa
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: 410
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
Location: Spokane, WA
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
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:
Code: Select all
      package.cpath = package.cpath..
             ";/usr/lib/lua/5.1/?.so"


and change that to
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
Moderator
 
Posts: 2156
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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:
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
Location: Czech republic, Bohumin
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
Location: Spokane, WA
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:
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
Moderator
 
Posts: 2156
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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:
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: 151
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:
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.
System: Lenovo Thinkstation S30 = Intel Xeon E5-2665, 20GB DDR3 (1333MHz Non-ECC), Gigabyte GTX1060 6GB, 7.5TB Storage, Win 10 Pro x64.
------------------------------------------------------------------------------------------------------------
Find me on Discord! https://discord.gg/hE6nAQP
 

User avatar
Cryterion
Member
 
Posts: 94
Joined: Tue Jun 10, 2014 08:12
Location: Durban, South Africa
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?

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: 94
Joined: Tue Jun 10, 2014 08:12
Location: Durban, South Africa
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: 91
Joined: Fri Mar 28, 2014 11:36
Location: Germany
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
Moderator
 
Posts: 2156
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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
 

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

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

by fireglow » Mon Jan 04, 2016 19:30

Thanks for your answer.
Yes, I thought it would be rejected, after all, minetests #1 feature is stagnation.
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

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

by Don » Tue Jan 05, 2016 16:24

fireglow wrote:after all, minetests #1 feature is stagnation.

I think that is not fair to the devs. They put in a lot of time for free. They made the game what it is. I think they deserve a lot more respect.
If this is something that you really want then you can do the code or hire someone to do it.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

Amaz
Member
 
Posts: 337
Joined: Wed May 08, 2013 08:26
GitHub: Amaz1
IRC: Amaz
In-game: Amaz

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

by Amaz » Tue Jan 05, 2016 17:03

fireglow wrote:Thanks for your answer.
Yes, I thought it would be rejected, after all, minetests #1 feature is stagnation.

It was never said that it was rejected, just that it wasn't worth coding, as it would require too much change for too little benefit...

And actually, it turns out that it wasn't too much change: https://github.com/minetest/minetest/pull/3537
So, maybe there's no need for so much pessimism?
 

DarGod
New member
 
Posts: 4
Joined: Thu Oct 09, 2014 15:38
Location: Russia
GitHub: dargow
IRC: Dargod
In-game: Dargod

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

by DarGod » Wed Jan 06, 2016 21:57

Don't work with Unicode(
Code: Select all
<minetest> <Dormi> Character conversion failed!
 

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

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

by fireglow » Sun Jan 17, 2016 14:58

Hello, we're running the latest git head of this mod and getting
<UserName> <invalid wstring>
in IRC whenever a in-game message includes ö,ü,ä, or ß.
Is there a fix for this issue?
 

im-poke
Member
 
Posts: 1080
Joined: Sat Apr 18, 2015 15:50
Location: Somewhere in the Universe, on a weird planet called Earth/
IRC: poke
In-game: poke

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

by im-poke » Wed Jan 20, 2016 07:15

How to change the channel it reveives?
ARE YOU A NYAN CAT?????
--ABJ
 

User avatar
kaeza
Moderator
 
Posts: 2156
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

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

by kaeza » Wed Jan 20, 2016 16:30

im-poke wrote:How to change the channel it reveives?

Have you tried reading the README?
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
fireglow
Member
 
Posts: 91
Joined: Fri Mar 28, 2014 11:36
Location: Germany
IRC: fireglow
In-game: fireglow

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

by fireglow » Sat Jan 23, 2016 20:39

fireglow wrote:Hello, we're running the latest git head of this mod and getting
<UserName> <invalid wstring>
in IRC whenever a in-game message includes ö,ü,ä, or ß.
Is there a fix for this issue?

kaeza,
is there anything I can do to help you identify the problem?
Most of my users are speaking German, so we get a lot of those "<invalid wstring>" messages to IRC and other servers.
 

User avatar
kaeza
Moderator
 
Posts: 2156
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

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

by kaeza » Sun Jan 24, 2016 04:32

fireglow wrote:kaeza,
is there anything I can do to help you identify the problem?
Most of my users are speaking German, so we get a lot of those "<invalid wstring>" messages to IRC and other servers.

I haven't been able to reproduce the bug in the server I tried. Getting in touch with the owner for more info.

What I would like to know, is if the users having those problems are using a recent version of the client. Some (illegal) clients on Android and iOS are based on very old versions (or the users could just be using an old version) which may be encoding strings incorrectly, or something.

Note: I'm just guessing here as I have no idea where the problem may lurk. There are a few other places where something could be wrong.
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
fireglow
Member
 
Posts: 91
Joined: Fri Mar 28, 2014 11:36
Location: Germany
IRC: fireglow
In-game: fireglow

Re: [Mod] Internet Relay Chat [irc]

by fireglow » Sun Jan 24, 2016 13:40

Ah, okay.
I can give the following information:
Server is 0.4.13-9f988e3, running on FreeBSD, cmake is
Code: Select all
 cmake -DBUILD_SERVER=1 -DBUILD_CLIENT=0 -DENABLE_LEVELDB=1 -DRUN_IN_PLACE=1 -DUSE_GETTEXT=1 -DUSE_SOUND=0 -DUSE_CURL=1 -DUSE_FREETYPE=1 -DUSE_LUAJIT=1 ..


The tested clients are:
0.4.13 on windows, official download
0.4.13 on linux (mint), launchpad.net/minetestdevs/stable/ubuntu PPA
0.4.13-9f988e3 on FreeBSD

All clients send "öäü", which is displayed correctly on any other client (when on the above server).
All umlaut strings, from any client, are relayed as <invalid wstring> to IRC.

Edit:
kaeza helped me identifying the issue:
LANG must be set in the shell session that launches minetestserver.
In my case, LANG wasn't set.
After setting LANG=en_US.UTF-8, everything works as expected.
Thanks kaeza! :-)
 

PreviousNext

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 2 guests