[Mod] Internet Relay Chat [irc]

User avatar
CraigyDavi
Member
Posts: 582
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi
Location: Hampshire, UK
Contact:

by CraigyDavi » Post

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: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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

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

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

by kaeza » Post

*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

ThatGraemeGuy
Member
Posts: 139
Joined: Thu Jul 31, 2014 11:02
GitHub: thatgraemeguy
IRC: ThatGraemeGuy
In-game: thatgraemeguy
Location: Cape Town, South Africa

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

by ThatGraemeGuy » Post

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: 419
Joined: Sun Oct 06, 2013 21:02
GitHub: stormchaser3000

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

by stormchaser3000 » Post

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
Location: Spokane, WA

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

by Fritigern » Post

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: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

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

by kaeza » Post

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

User avatar
Pitriss
Member
Posts: 254
Joined: Mon Aug 05, 2013 17:09
GitHub: Pitriss
IRC: pitriss
In-game: pitriss
Location: Czech republic, Bohumin

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

by Pitriss » Post

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
Location: Spokane, WA

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

by Fritigern » Post

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: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

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

by kaeza » Post

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

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

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

by DI3HARD139 » Post

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.

User avatar
Cryterion
Member
Posts: 94
Joined: Tue Jun 10, 2014 08:12
GitHub: Cryterion
IRC: Cryterion
In-game: Cryterion
Location: Durban, South Africa

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

by Cryterion » Post

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
GitHub: Cryterion
IRC: Cryterion
In-game: Cryterion
Location: Durban, South Africa

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

by Cryterion » Post

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: 93
Joined: Fri Mar 28, 2014 11:36
IRC: fireglow
In-game: fireglow
Location: Germany

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

by fireglow » Post

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: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

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

by kaeza » Post

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

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

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

by fireglow » Post

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

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

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

by Don » Post

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

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

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

by Amaz » Post

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: 6
Joined: Thu Oct 09, 2014 15:38
GitHub: dargow
IRC: Dargod
In-game: Dargod
Location: Russia
Contact:

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

by DarGod » Post

Don't work with Unicode(

Code: Select all

<minetest> <Dormi> Character conversion failed!

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

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

by fireglow » Post

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: 1084
Joined: Sat Apr 18, 2015 15:50
IRC: poke
In-game: poke
Location: Somewhere in the Universe, on a weird planet called Earth/

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

by im-poke » Post

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

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

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

by kaeza » Post

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

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

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

by fireglow » Post

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: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

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

by kaeza » Post

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

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

Re: [Mod] Internet Relay Chat [irc]

by fireglow » Post

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! :-)

Post Reply

Who is online

Users browsing this forum: MoNTE48 and 11 guests