[Mod] Internet Relay Chat [irc]

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

by kaeza » Tue Jan 29, 2013 19:36

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

by mrtux » Thu Jan 31, 2013 03:54

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
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Thu Jan 31, 2013 04:25

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: 86
Joined: Mon Sep 17, 2012 08:22

by fgr » Sun Feb 03, 2013 16:39

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: 5859
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
 

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

by Likwid H-Craft » Thu Feb 21, 2013 18:10

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

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

by rubenwardy » Fri Feb 22, 2013 15:46

Likwid H-Craft wrote:this really works on, SP?


yes, it works on single player
 

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

by kaeza » Mon Feb 25, 2013 19:24

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 » Wed Mar 27, 2013 18:16

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
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Thu Mar 28, 2013 10:47

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 » 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
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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
 

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

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
Moderator
 
Posts: 3156
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
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
Location: McKinney, Texas U.S.A.

by Traxie21 » Fri Apr 19, 2013 21:57

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

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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
 

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

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
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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
 

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

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
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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
 

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

by BrunoMine » Mon Jan 13, 2014 16:10

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=Debug]
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
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
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:
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: 1048
Joined: Thu Apr 25, 2013 17:29
Location: SP-Brasil
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
 

PreviousNext

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 26 guests