[Mod] Internet Relay Chat [irc]

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

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

by fireglow » Mon Jan 04, 2016 19:30

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

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

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

by Don » Tue Jan 05, 2016 16:24

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
 

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

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

by Amaz » Tue Jan 05, 2016 17:03

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: 4
Joined: Thu Oct 09, 2014 15:38
In-game: dar

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

by DarGod » Wed Jan 06, 2016 21:57

Don't work with Unicode(
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
<minetest> <Dormi> Character conversion failed!
 

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

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

by fireglow » Sun Jan 17, 2016 14:58

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: 1042
Joined: Sat Apr 18, 2015 15:50
IRC: poke
In-game: poke

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

by im-poke » Wed Jan 20, 2016 07:15

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

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

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

by kaeza » Wed Jan 20, 2016 16:30

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

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

by fireglow » Sat Jan 23, 2016 20:39

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
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

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

by kaeza » Sun Jan 24, 2016 04:32

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

Re: [Mod] Internet Relay Chat [irc]

by fireglow » Sun Jan 24, 2016 13:40

Ah, okay.
I can give the following information:
Server is 0.4.13-9f988e3, running on FreeBSD, cmake is
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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! :-)
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: [Mod] Internet Relay Chat [irc]

by kaeza » Sun Jan 24, 2016 20:20

It seems to be a bug in the engine possibly affecting other mods as well.

Thank you again for the help in sorting this out. I've updated the first post with that note.
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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: [Mod] Internet Relay Chat [irc]

by kaeza » Mon Apr 04, 2016 22:50

I've finally got around to testing this under Windows, and it seems to actually work, but needs some work on the part of the server owner.

First of all, you will need a Minetest build linked against a Lua DLL (not statically linked). If your Minetest build contains a `lua51.dll` file, this should work.

Next, you will need to compile and link LuaSocket against the same DLL used by the engine. I have provided prebuilt LuaSocket binaries here for convenience. To use, follow these steps:

  • Install the mod and submodules as normal.
  • Download the archive linked above, and unpack it directly in the root of the IRC mod directory. You should get a subdirectory named `socket-lib`.
  • Add this code somewhere in `init.lua` after the regular path setup:
    Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
    Code: Select all
    local SD = modpath.."/socket-lib"
    ie.package.path = SD.."/?/init.lua;"..SD.."/?.lua;"..ie.package.path
    ie.package.cpath = SD.."/?/init.dll;"..SD.."/?.dll;"..ie.package.cpath

    For those that have the tools, there's a patch at `socket-lib/apply-this.patch` that will make the required changes.

For those that want to compile LuaSocket manually, I have provided a simple makefile for MinGW without all the cruft. You will need to put the LuaSocket sources in `mods/irc/luasocket`, and have `bin/lua51.dll`.

I can't guarantee this will work (WFM, YMMV).
Feedback is welcome.
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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

Re: [Mod] Internet Relay Chat [irc]

by DI3HARD139 » Tue Aug 02, 2016 02:59

Getting this error:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Loaded texture: C:/Users/Owner/Desktop/minetest-0.4.14/textures/hdx-256-master/menu_overlay.png
Loaded texture: C:/Users/Owner/Desktop/minetest-0.4.14/textures/hdx-256-master/menu_header.png
Loaded texture: C:/Users/Owner/Desktop/minetest-0.4.14/textures/base/pack/blank.png
Loaded texture: C:/Users/Owner/Desktop/minetest-0.4.14/textures/base/pack/server_flags_favorite.png
Loaded texture: C:/Users/Owner/Desktop/minetest-0.4.14/textures/base/pack/server_flags_creative.png
Loaded texture: C:/Users/Owner/Desktop/minetest-0.4.14/textures/base/pack/server_flags_damage.png
Loaded texture: C:/Users/Owner/Desktop/minetest-0.4.14/textures/base/pack/server_flags_pvp.png
2016-08-01 22:58:15: ERROR[Main]: mod "markers" has unsatisfied dependencies:  "areas"
2016-08-01 22:58:15: ERROR[Main]: mod "misc_overrides" has unsatisfied dependencies:  "biome_lib" "dryplants" "ferns" "technic_chests" "youngtrees"
2016-08-01 22:58:15: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2016-08-01 22:58:15: ERROR[Main]: ModError: Failed to load and run script from C:\Users\Owner\Desktop\minetest-0.4.14\bin\..\mods\irc\init.lua:
2016-08-01 22:58:15: ERROR[Main]: error loading module 'socket.core' from file 'C:\Users\Owner\Desktop\minetest-0.4.14\bin\..\mods\irc/socket-lib/socket\core.dll':
2016-08-01 22:58:15: ERROR[Main]:       %1 is not a valid Win32 application.
2016-08-01 22:58:15: ERROR[Main]: stack traceback:
2016-08-01 22:58:15: ERROR[Main]:       [C]: at 0x006fa700
2016-08-01 22:58:15: ERROR[Main]:       [C]: in function 'require'
2016-08-01 22:58:15: ERROR[Main]:       ...op\minetest-0.4.14\bin\..\mods\irc/socket-lib/socket.lua:12: in main chunk
2016-08-01 22:58:15: ERROR[Main]:       [C]: in function 'require'
2016-08-01 22:58:15: ERROR[Main]:       ...ner\Desktop\minetest-0.4.14\bin\..\mods\irc/irc/init.lua:1: in main chunk
2016-08-01 22:58:15: ERROR[Main]:       [C]: in function 'require'
2016-08-01 22:58:15: ERROR[Main]:       ...s\Owner\Desktop\minetest-0.4.14\bin\..\mods\irc\init.lua:39: in main chunk
2016-08-01 22:58:15: ERROR[Main]: Check debug.txt for details.
Loaded texture: C:/Users/Owner/Desktop/minetest-0.4.14/textures/hdx-256-master/menu_overlay.png
Loaded texture: C:/Users/Owner/Desktop/minetest-0.4.14/textures/hdx-256-master/menu_header.png
Servers: mt.rrhgameservers.ml = [RRH] MT-Creative (48250), RRH-Survival (48253), Unknown (48255), Minetest City (48262)
Specs = Intel Core i5-3570s 16GB DDR3 2TB HDD, Ubuntu Server 16.04.1 x64 XFCE
------------------------------------------------------------
System: Lenovo Thinkstation S30 = Intel Xeon E5-2665, 20GB DDR3 (1333MHz Non-ECC), Gigabyte GTX1060 6GB, 3.5TB Storage, Win 10 Pro x64.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: [Mod] Internet Relay Chat [irc]

by kaeza » Tue Aug 02, 2016 20:26

DI3HARD139 wrote:Getting this error:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
[...]
2016-08-01 22:58:15: ERROR[Main]: error loading module 'socket.core' from file 'C:\Users\Owner\Desktop\minetest-0.4.14\bin\..\mods\irc/socket-lib/socket\core.dll':
2016-08-01 22:58:15: ERROR[Main]:       %1 is not a valid Win32 application.
[...]

Not sure where that comes from.

Windows support is not really in my goals ATM, but try compiling using the Makefile provided above if you know how. If not, well, you're out of luck. Sorry.
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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

Previous

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 29 guests

cron