Page 2 of 6
Posted: Sun Dec 02, 2012 19:52
by kaeza
fgr wrote:no real instruction included ... i compiled it, made the irc folder with the package.sh and placed it into the minetest mod folder, edited my irc server settings and channel, but no more instructions are available. Restartet the server and nothing happened.
after placed some ambigious command like /irc the server crashed.
Code: Select all
ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ../mods/irc/init.lua:107: attempt to index global 'player' (a nil value)
ERROR[main]: stack traceback:
In thread 7f1b23cec740:
/build/buildd/minetestc55-0.4.3/src/main.cpp:1741: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7f1b23cec740:
#0 int main(int, char**)
Fixed. Thanks for reporting.
guilleelcapoextra wrote:
but only good for the Linux version tanvien ubuntu or windows used for community
Let me clean this up for you. Maybe this is what you meant to say:
It's for Linux only. There are Ubuntu and Windows users in the community too.
First of all, Ubuntu IS a DISTRIBUTION of Linux. And maybe you didn't take the time to read the first post, but until someone can compile it on Windows, and post a link to a precompiled package, you'll have to compile it manually. Sorry.
Posted: Sun Dec 02, 2012 21:46
by leo_rockway
Great mod, 1K internets for you, my friend.
Posted: Mon Dec 03, 2012 09:24
by kaeza
leo_rockway wrote:Great mod, 1K internets for you, my friend.
Thanks! I will try to make it even better, and maybe someday this will get into master.
Posted: Mon Dec 03, 2012 10:55
by RAPHAEL
I am curious why this mod has FTP and HTTP related lua? How is it useful? I would suggest releasing a "trimmed down to barebones" mod of this. A simple mod that allows the sending/receiving of messages to/from an IRC channel. No special "features". (sorry but I'm a paranoid type)
Posted: Wed Dec 05, 2012 17:35
by guilleelcapoextra
nice
Posted: Thu Dec 06, 2012 01:00
by kaeza
Sorry for the late reply. That's a nice idea. Currently I'm unable to fix this since I'm currently without Internet access at home until December 16th. If you wanty to remove non-IRC related code, do so, and please post a patch/pull request/whatever. Thanks.
Posted: Sun Dec 16, 2012 12:58
by kaeza
I'm back with some small updates.
There's now a precompiled Windows version (untested). I used a Linux->MinGW32 crosscompiler, but since I haven't Windows handy, I cannot test it. I'll be thankful if someone tests this for me.
Also, RAPHAEL, the FTP and HTTP are not used, so there's nothing to worry about.
Posted: Sun Dec 16, 2012 16:44
by InfinityProject
I tried it out on windows, it crashed. Debug:
Code: Select all
11:40:41: ERROR[main]: ServerError: LuaError: error: ....4-win32\bin\..\games\minetest_game\mods\irc/irc.lua:964: attempt to index upvalue 'irc_sock' (a nil value)
11:40:41: ERROR[main]: stack traceback:
11:40:41: INFO[main]: Searching worlds...
11:40:41: INFO[main]: In C:\Users\InfinityProject\Downloads\Games\Minetest Games\0.4.4\minetest-0.4.4-win32\bin\..\worlds:
11:40:41: INFO[main]: 0.4.4 Testing CITY mauveworld
11:40:41: INFO[main]: 3 found.
11:40:41: INFO[main]: Waiting for other menus
11:40:41: INFO[main]: Waited for other menus
11:40:41: VERBOSE[main]: error_message = ServerError: LuaError: error: ....4-win32\bin\..\games\minetest_game\mods\irc/irc.lua:964: attempt to index upvalue 'irc_sock' (a nil value)
11:40:41: VERBOSE[main]: stack traceback:
11:40:41: INFO[main]: Created main menu
11:40:41: INFO[main]: locale has been set to:English_United States.1252
11:40:41: INFO[main]: locale has been set to:C
Posted: Sun Dec 16, 2012 16:54
by kaeza
InfinityProject wrote:I tried it out on windows, it crashed. Debug:
Code: Select all
11:40:41: ERROR[main]: ServerError: LuaError: error: ....4-win32\bin\..\games\minetest_game\mods\irc/irc.lua:964: attempt to index upvalue 'irc_sock' (a nil value)
11:40:41: ERROR[main]: stack traceback:
11:40:41: INFO[main]: Searching worlds...
11:40:41: INFO[main]: In C:\Users\InfinityProject\Downloads\Games\Minetest Games\0.4.4\minetest-0.4.4-win32\bin\..\worlds:
11:40:41: INFO[main]: 0.4.4 Testing CITY mauveworld
11:40:41: INFO[main]: 3 found.
11:40:41: INFO[main]: Waiting for other menus
11:40:41: INFO[main]: Waited for other menus
11:40:41: VERBOSE[main]: error_message = ServerError: LuaError: error: ....4-win32\bin\..\games\minetest_game\mods\irc/irc.lua:964: attempt to index upvalue 'irc_sock' (a nil value)
11:40:41: VERBOSE[main]: stack traceback:
11:40:41: INFO[main]: Created main menu
11:40:41: INFO[main]: locale has been set to:English_United States.1252
11:40:41: INFO[main]: locale has been set to:C
Thanks for testing.
Please compile from sources. I won't be providing updated binaries since the code is still in development. This bug has also been fixed (?).
Posted: Tue Dec 18, 2012 23:12
by kaeza
Some updates.
Now that I have set up a script for building both the Linux and Win32 versions, I'll be providing binaries again.
I really need testers for other platforms. Anyone can /join #minetest-irc-testing and share their knowledge with us, and see the mod in action.
Also, as always, the github link is for the bleeding-edge changes to the sources.
I'll try to keep the binaries as up to date as I can.
Thanks again to all of you for your support!
Posted: Sun Dec 23, 2012 19:51
by kaeza
Small update!
- Now supports auto-connecting to IRC network and auto-joining the channel. These two options are customizable in the `config.lua' file.
- Overriden /me chat command to "perform an action" (as in IRC). The text is also seen in the channel.
- Now the bot sends a message to the channel when a player joins/leaves the game.
- Added support for some "bot commands": `!who' to retrieve the list of players in the game, and `!whereis' to retrieve the location of an arbitrary player in the game world.
- Fixed a major bug that prevented the bot to join the channel under certain cases. Hopefully this will also fix that dreaded "Quit: Excess Flood" message some users were receiving.
Also fixed one of my maintainer scripts that was used to upload the binaries, so the link to the binaries will be pointing again to the latest binaries again.
Any more feature suggestions are welcome.
Posted: Sat Dec 29, 2012 02:45
by kaeza
Small updates here and there
See first post.
Posted: Sat Dec 29, 2012 09:30
by kaeza
New small update.
- Fixed a bug not auto-joining the players (only the ones at channel connect would get "joined").
- Updated binaries accordingly to latest git.
Posted: Mon Dec 31, 2012 17:29
by kaeza
Fixed a problem at `pack_mod' stage on CMake versions prior to 2.8.7 (?).
Thanks goes to xy and RAPHAEL for reporting the error.
New Features:
- /irc_disconnect and /irc_reconnect commands.
As always, latest binaries are available for Win32 and Linux.
(I desperately need Windows testers)
Posted: Thu Jan 03, 2013 01:12
by kaeza
Added binaries for Debian Squeeze 64 bits, generously contributed by vortexlabs/mrtux.
Many thanks to him for this contribution.
See first post for link.
Posted: Thu Jan 03, 2013 10:57
by kaeza
Added binaries for Ubuntu 12.10 AMD64, generously contributed by Calinou.
Many thanks to you Calinou!
Posted: Thu Jan 03, 2013 22:46
by jojoa1997
can you make this mod work without outside programs
Posted: Sat Jan 05, 2013 07:19
by xavier108
This is great
Posted: Sat Jan 05, 2013 08:14
by kaeza
jojoa1997 wrote:can you make this mod work without outside programs
Minetest does not export a networking API, so I must resort to external libraries to do it.
If you have problems compiling, catch me on ##mt-irc-mod or #minetest and I will help you.
BTW: As I said elsewhere, the Windows version is relatively
UNTESTED. You can help me by testing it and reporting any problems.
This works well on all Linux systems on which it was tested.
Posted: Sun Jan 06, 2013 11:47
by kaeza
Small bug fixes and updated documentation.
Added auto-reconnect on /kick
Posted: Sun Jan 06, 2013 16:17
by RAPHAEL
Already informed Kaeza but Windows binaries don't work. Sorry to those using Windows. Maybe it can get fixed lol
Posted: Sun Jan 06, 2013 17:35
by kaeza
RAPHAEL wrote:Already informed Kaeza but Windows binaries don't work. Sorry to those using Windows. Maybe it can get fixed lol
I'll take a look at the Win32 part of luasocket.
I may be able to test this under Wine, but I'm not 100% sure if this will a reliable indicator. Nevertheless, is as a good guess as any.
Posted: Tue Jan 15, 2013 20:25
by kaeza
AFAIK, the Windows binaries do not work. May be a faulty crosscompiler.
Awaiting someone to offer a precompiled version built using a native Windows compiler (MSVC, MinGW, etc)
Posted: Tue Jan 29, 2013 17:23
by kaeza
*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.
Posted: Tue Jan 29, 2013 18:51
by RAPHAEL
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).