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