[Mod] Internet Relay Chat bridge [irc]

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

RAPHAEL wrote:
kaeza wrote:*BUMP*
This mod isn't dead; I'm just too lazy to update every small change I do.
I'm proud to say that this mod is since 2 months or so ago featured in all of OldCoder's and MarkTraceur's worlds.
Still waiting for someone to be able to compile natively on Windows though.
I have a Windows install here but no idea how to setup a compile environment on Windows. If someone could give a detailed howto or at least a howto I could give it a shot (never successfully compiled anything on Windows).
I recommend installing MinGW32 (a port of GCC for Windows platforms, along some basic utilities).
You'll also need CMake.
Just follow the instructions on the README to compile.
Last edited by kaeza on Tue Jan 29, 2013 19:36, 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

User avatar
mrtux
Member
Posts: 141
Joined: Mon Jun 25, 2012 02:41
Contact:

by mrtux » Post

While attempting to build on Windows... (mingw32)

Code: Select all

Colin@MAINCOMPUTER /c/minetest-irc-master
$ cmake .
CMake Warning at CMakeLists.txt:6 (project):
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.


-- The C compiler identification is unknown
-- Check for working C compiler: cl
CMake Warning at CMakeLists.txt:2 (PROJECT):
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.


CMake Error: your C compiler: "cl" was not found.   Please set CMAKE_C_COMPILER
to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: cl -- broken
CMake Error at c:/MinGW/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (mes
sage):
  The C compiler "cl" is not able to compile a simple test program.

  It fails with the following output:





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


CMake Error: your C compiler: "cl" was not found.   Please set CMAKE_C_COMPILER
to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
This is a bit strange. Might be a problem on my end; I don't quite know.
Last edited by mrtux on Thu Jan 31, 2013 03:56, edited 1 time in total.
thanks doge

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

vortexlabs wrote:While attempting to build on Windows... (mingw32)

Code: Select all

Colin@MAINCOMPUTER /c/minetest-irc-master
$ cmake .
CMake Warning at CMakeLists.txt:6 (project):
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.


-- The C compiler identification is unknown
-- Check for working C compiler: cl
CMake Warning at CMakeLists.txt:2 (PROJECT):
  To use the NMake generator, cmake must be run from a shell that can use the
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.


CMake Error: your C compiler: "cl" was not found.   Please set CMAKE_C_COMPILER
to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: cl -- broken
CMake Error at c:/MinGW/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (mes
sage):
  The C compiler "cl" is not able to compile a simple test program.

  It fails with the following output:





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


CMake Error: your C compiler: "cl" was not found.   Please set CMAKE_C_COMPILER
to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
CMake tries to use MSVC by default under Windows, so you need to tell it to use the "MinGW Makefiles" generator via the -G command line option:

Code: Select all

cmake . -G "MinGW Makefiles"
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

fgr
Member
Posts: 87
Joined: Mon Sep 17, 2012 08:22

by fgr » Post

we have another error.... i dont know if this is only on 0.4.3 a problem but here it is:

Code: Select all

 
ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...minetest/bin/../games/minetest/mods/irc/callback.lua:142: attempt to concatenate local 'part_msg' (a nil value)
17:25:57: ERROR[main]: stack traceback:

In thread 7f3b42f59720:
/home/minetest/minetest/src/main.cpp:1741: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7f3b42f59720:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void ServerMap::saveBlock(MapBlock*))
(Leftover data: #4  void ItemStack::serialize(std::ostream&) const)

Code: Select all

irc.register_callback("part", function ( servinfo, from, part_msg )
    local text = "*** "..from.." left "..mt_irc.channel.." ("..part_msg..")";
    for k, v in pairs(mt_irc.connected_players) do
        if (v) then minetest.chat_send_player(k, text); end
    end
end);
Server crashes if someone parts the channel...

any idea?

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

by rubenwardy » Post

This mod is amazing!

(just tried it)
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Likwid H-Craft
Member
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Post

this really works on, SP?
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)

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

by rubenwardy » Post

Likwid H-Craft wrote:this really works on, SP?
yes, it works on single player
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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

rubenwardy wrote:This mod is amazing!

(just tried it)
Thanks! :)
fgr wrote:we have another error.... i dont know if this is only on 0.4.3 a problem but here it is:

(code)

any idea?
Hmm... this looks like an oversight in my code. Actually, the LuaIRC documentation is pretty scarce, and I have not tested all the corner cases. In this case, it seems LuaIRC is passing a nil "quit message". I will fix it later.

To make your life easier, for now change the following line...

Code: Select all

local text = "*** "..from.." left "..mt_irc.channel.." ("..part_msg..")";
...to...

Code: Select all

local text = "*** "..from.." left "..mt_irc.channel.." ("..(part_msg or "")..")";
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

Kacey
Member
Posts: 133
Joined: Sat May 05, 2012 16:20

by Kacey » Post

please don't use non-english (lol bad language i know) letters in here. they cause alot of stress trying to take them out and or replace them.
on a scale of 1 to 10 i am OVER 9000!!!!!!!!!!!!!!!!

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

Small update: Fixed the long standing bug where the `!who' bot command returned all players, even those already disconnected.
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

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

by ghostshell » Post

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

thanks, nice work !

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

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

User avatar
Traxie21
Member
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.
Contact:

by Traxie21 » Post

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
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

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
Location: McKinney, Texas U.S.A.
Contact:

by Traxie21 » Post

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

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

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

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

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
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

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/b ... ig.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

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

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
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

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

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

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

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

by BrunoMine » Post

error
I received this error message:

Code: Select all

ERROR: ModError: Failed to load and run
C:Users/Bruno/Desktop/Minetest-0.4.9/bin...mods/irc/init.lua
Spoiler

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
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
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

brunob.santos wrote:error
I received this error message:

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

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

by BrunoMine » Post

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 » Post

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

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests