Raised This Month: $51 Target: $400
 12% 

IRC Relay for SourceMod 2.5.0


Post New Thread Reply   
 
Thread Tools Display Modes
MRxV
New Member
Join Date: Oct 2008
Old 01-03-2009 , 18:52   Re: IRC Relay (v2.1.0) UPDATED!
Reply With Quote #261

I have this all working after 3 re-installs all commands work except

!trigger.msg <message>

Any help?


Plus how would i get the trigger to "register its nick?"

Last edited by MRxV; 01-03-2009 at 18:58.
MRxV is offline
Puntje
Member
Join Date: May 2004
Old 01-24-2009 , 14:58   Re: IRC Relay (v2.1.0) UPDATED!
Reply With Quote #262

Greetings,

First: Congrats on a very very nice looking plugin. I've thusfar enjoyed all the benefits this plugin gives me and my admin concerning bad behavior spotting (swearing and such) plus the occasional "/irc admin needed" requests from our players.

It seems my FortressForever server have gotten an issue when the bot has been running for a few maps and people are talking. It likes to repeat the line a player said for about 2 or 3 times. This seems to increase each time a new map is started and runs up till about 6 or 7 times, at which moment the bot will disconnect from the server with an excess flood.

Code:
Puntje: meh
Added to MSGQueue: PRIVMSG #ff_srv :(12Puntje): meh
Added to MSGQueue: PRIVMSG #ff_srv :(12Puntje): meh
Added to MSGQueue: PRIVMSG #ff_srv :(12Puntje): meh
Added to MSGQueue: PRIVMSG #ff_srv :(12Puntje): meh
Added to MSGQueue: PRIVMSG #ff_srv :(12Puntje): meh
Added to MSGQueue: PRIVMSG #ff_srv :(12Puntje): meh
Added to MSGQueue: PRIVMSG #ff_srv :(12Puntje): meh
Added to MSGQueue: PRIVMSG #ff_srv :(12Puntje): meh
Added to MSGQueue: PRIVMSG #ff_srv :(12Puntje): meh
After which the bot leaves with :
Quote:
20:42 -!- SRV_FF1 [[email protected]] has quit [Excess Flood]
After the bot excess floods of the irc server it reconnects back but doesn't join the channels, as specified in the channels.txt file.
I can query to the bot manually and let it join the channels, which it does. But this hardly seems like something you should do each time. Something I can't do when I'm not around myself

Some info about the server and the addons it runs, plus versions.

Quote:
Metamod:Source version 1.4.4.705
Loaded As: Valve Server Plugin
Compiled on: Jul 26 2008
Plugin interface version: 10:7
SourceHook version: 4
http://www.metamodsource.net/
Quote:
SourceMod Version: 1.0.4
JIT Version: JIT (x86), 1.0.4
JIT Settings: Generic i686
Compiled on: Sep 14 2008 01:25:50
Build ID: 2537
http://www.sourcemod.net/
Quote:
[SM] Listing 31 plugins:
01 "SlapSlay Commands" (1.0.4) by AlliedModders LLC
02 "Admin File Reader" (1.0.4) by AlliedModders LLC
03 "Anti-Flood" (1.0.4) by AlliedModders LLC
04 "TeamSwitch" (1.3) by MistaGee
05 "Basic Commands" (1.0.4) by AlliedModders LLC
06 "Basic Comm Control" (1.0.4) by AlliedModders LLC
07 "Admin Help" (1.0.4) by AlliedModders LLC
08 "Basic Chat" (1.0.4) by AlliedModders LLC
09 "Reserved Slots" (1.0.4) by AlliedModders LLC
10 "Admin loggin" (1.0) by vIr-Dan
11 "Fun Commands" (1.0.4) by AlliedModders LLC
12 "Basic Info Triggers" (1.0.4) by AlliedModders LLC
13 "Nextmap" (1.0.4) by AlliedModders LLC
14 "SourceBans" (1.3.5) by InterWave Studios Development Team
15 "Basic Votes" (1.0.4) by AlliedModders LLC
16 "Fun Votes" (1.0.4) by AlliedModders LLC
17 "Rock The Vote" (1.0.4) by AlliedModders LLC
18 "MapChooser" (1.0.4) by AlliedModders LLC
19 "Admin Menu" (1.0.4) by AlliedModders LLC
20 "IRC Relay - Access Module" (2.0.0) by Olly
21 "IRC Relay - Steam Community" (2.1.0) by Olly
22 "IRC Relay - Relay Module" (2.1.0) by Olly
23 "IRC Relay - Game Info Module" (2.1.0) by Olly
24 "IRC Relay - Game Players" (2.1.0) by Olly
25 "IRC Relay - Chat Relay Module" (2.1.0) by Olly
26 "IRC Relay - Admin Commands Module" (2.1.0) by Olly
27 "IRC Relay - Base Commands" (2.1.0) by Olly
28 "IRC Relay - Core Plugin" (2.1.0) by Olly
29 "IRC Relay - Bacon" (2.1.0) by Olly
30 "IRC Relay - Auth Module" (2.1.0) by Olly
Next to this there's also a few logged entries in the error_log files:
Quote:
L 01/24/2009 - 17:03:51: [SM] Native "CreateNative" reported: Fatal error creating dynamic native!
L 01/24/2009 - 17:03:51: [SM] Debug mode is not enabled for "irc-relay-core.smx"
L 01/24/2009 - 17:03:51: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 30 on
L 01/24/2009 - 17:04:23: [SM] Native "CreateNative" reported: Fatal error creating dynamic native!
L 01/24/2009 - 17:04:23: [SM] Debug mode is not enabled for "irc-relay-core.smx"
L 01/24/2009 - 17:04:23: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 30 on
L 01/24/2009 - 17:04:23: [SM] Native "PushArrayString" reported: Invalid Handle 0 (error: 4)
L 01/24/2009 - 17:04:23: [SM] Debug mode is not enabled for "irc-relay-core.smx"
L 01/24/2009 - 17:04:23: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
L 01/24/2009 - 17:04:23: [SM] Native "IRC_SendRaw" reported: Error encountered while processing a dynamic native
L 01/24/2009 - 17:04:23: [SM] Debug mode is not enabled for "irc-auth.smx"
L 01/24/2009 - 17:04:23: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 30 on
L 01/24/2009 - 17:57:27: Error log file session closed.
The reason I'm not updating to SourceMod 1.1.0 and Sourcebans 1.4.0 is that menu's don't seem to show up for sourcemod and sourcebans doesn't register the bans like it should. These issues have been addressed at here and here.

Hope there's a fix for it, seeing the versions of SM and SB I am running.
__________________
~ Nothing travels faster then the speed of light with the possible exception of bad news, which follows it's own laws! - Douglas Adams ~
Puntje is offline
Send a message via ICQ to Puntje
Puntje
Member
Join Date: May 2004
Old 01-24-2009 , 14:59   Re: IRC Relay (v2.1.0) UPDATED!
Reply With Quote #263

I've tried to look for a workaround regarding the restart of the bot and got the following:
Quote:
sm plugins reload 28
L 01/24/2009 - 20:56:42: [SM] Native "CreateNative" reported: Fatal error creating dynamic native!
L 01/24/2009 - 20:56:42: [SM] Debug mode is not enabled for "irc-relay-core.smx"
L 01/24/2009 - 20:56:42: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 31 on
[SM] Failed to reload plugin IRC Relay - Core Plugin.
sm plugins refresh
L 01/24/2009 - 20:56:46: [SM] Native "CreateNative" reported: Fatal error creating dynamic native!
L 01/24/2009 - 20:56:46: [SM] Debug mode is not enabled for "irc-relay-core.smx"
L 01/24/2009 - 20:56:46: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 31 on
L 01/24/2009 - 20:56:46: [SM] Native "PushArrayString" reported: Invalid Handle 0 (error: 4)
L 01/24/2009 - 20:56:46: [SM] Debug mode is not enabled for "irc-relay-core.smx"
L 01/24/2009 - 20:56:46: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 29 on
L 01/24/2009 - 20:56:46: [SM] Native "IRC_SendRaw" reported: Error encountered while processing a dynamic native
L 01/24/2009 - 20:56:46: [SM] Debug mode is not enabled for "irc-auth.smx"
L 01/24/2009 - 20:56:46: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 31 on
[SM] The plugin list has been refreshed and reloaded.
__________________
~ Nothing travels faster then the speed of light with the possible exception of bad news, which follows it's own laws! - Douglas Adams ~
Puntje is offline
Send a message via ICQ to Puntje
Sywolf
New Member
Join Date: Jan 2009
Old 01-26-2009 , 08:29   Re: IRC Relay (v2.1.0) UPDATED!
Reply With Quote #264

Is there a simple way to reconnect the bot, at every map load ?
Currently, on l4d dedicated server, when the server hibernate, the plugin doesnt send the "pong", and timeout.

When a player connect, server stop hibernation, but doesnt reconnect, and we get error, each time somebody talk :

Code:
[SM] Native "SocketIsConnected" reported: Invalid handle: xxx
[SM] Displaying call stack trace for plugin "irc-relay-core.smx":
[SM]   [0]  Line xxx, irc-relay-core.sp::ProcessMessageQueue()
The error is here : if (SocketIsConnected(g_Socket))
If i check just before with a "if(g_Socket == INVALID_HANDLE)", to reinit the connection, the g_Socket is never an invalid_handle ?


-------------------
And Puntje, about your flood, just look here :
http://forums.alliedmods.net/showpos...&postcount=214
That worked for me ;)

Last edited by Sywolf; 01-26-2009 at 08:39.
Sywolf is offline
Atreus
SourceMod Donor
Join Date: Apr 2005
Location: San Diego, CA
Old 01-27-2009 , 05:31   Re: IRC Relay (v2.1.0) UPDATED!
Reply With Quote #265

Quote:
Originally Posted by Puntje View Post
Greetings,
A fix for that was posted quite a few pages back. I don't remember exactly what it was, but if you can't find it, I can simply post my copy of the plugin. Also, you may want to look some-pages back about the "sm" plugins I made, allowing any sourcemod command to be executed via the bot.

e: Oh, the post above gave you the post.

Quote:
Originally Posted by Sywolf View Post
Is there a simple way to reconnect the bot, at every map load ?
Currently, on l4d dedicated server, when the server hibernate, the plugin doesnt send the "pong", and timeout.
Also, I've been having to restart the bot every map as well --though not on L4D. The reason is that randomly during the night (or day) it'll just die and I'd have to restart it myself. Add "sm plugins reload irc-relay-core " to your server.cfg and it'll execute on every mapchange.


I wish Olly would update this plugin
Atreus is offline
Send a message via AIM to Atreus Send a message via MSN to Atreus
Puntje
Member
Join Date: May 2004
Old 01-27-2009 , 06:09   Re: IRC Relay (v2.1.0) UPDATED!
Reply With Quote #266

Quote:
Originally Posted by Sywolf View Post
-------------------
And Puntje, about your flood, just look here :
http://forums.alliedmods.net/showpos...&postcount=214
That worked for me ;)
editing the sp file will be sufficient or do I need to recompile some smx file over again?

Editted the file.
Recompiled using my own box (web recompile doesn't work since it hasn't got the extra socket include).

Getting a few errors with compiling on my linux box.
Error list.

Restarted the server.
Server boots up fine (and bot joins channel)
Changed the level manually and stuff hits the fan again:
Quote:
L 01/27/2009 - 122:15: [SM] Native "SocketConnect" reported: Socket is already connected
L 01/27/2009 - 122:15: [SM] Debug mode is not enabled for "irc-relay-core.smx"
L 01/27/2009 - 122:15: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 28 on
socket error 5 (errno 22)
L 01/27/2009 - 122:15: [irc-relay-core.smx] socket error 5 (errno 22)


[Edit]
Hah! It works!
  1. Go to scripts directory.
  2. Delete all the content of the "compiled" directory.
  3. Edit the irc-relay-core.sp (changes to the file can be found here).
  4. Save the file and exit your editor.
  5. Run the "./compile.sh" command.
  6. Move all irc-*.smx files from "compiled/" to your "addons/sourcemod/plugins/" directory.
  7. Restart the server (don't refresh your plugin list)!!
  8. Seems to work for me now o/
__________________
~ Nothing travels faster then the speed of light with the possible exception of bad news, which follows it's own laws! - Douglas Adams ~

Last edited by Puntje; 01-27-2009 at 06:51.
Puntje is offline
Send a message via ICQ to Puntje
Sywolf
New Member
Join Date: Jan 2009
Old 01-27-2009 , 15:24   Re: IRC Relay (v2.1.0) UPDATED!
Reply With Quote #267

Quote:
Originally Posted by Atreus View Post
Add "sm plugins reload irc-relay-core " to your server.cfg and it'll execute on every mapchange.
Thanks, it works (it's not really clean, but it's better than reloading manually the plugin :p)


Quote:
Originally Posted by Puntje View Post
Hah! It works!
Good !
Sywolf is offline
ReLaX
SourceMod Donor
Join Date: Nov 2005
Location: Denamrk
Old 02-03-2009 , 05:35   Re: IRC Relay (v2.1.0) UPDATED!
Reply With Quote #268

Quote:
Originally Posted by Puntje View Post
editing the sp file will be sufficient or do I need to recompile some smx file over again?

Editted the file.
Recompiled using my own box (web recompile doesn't work since it hasn't got the extra socket include).

Getting a few errors with compiling on my linux box.
Error list.

Restarted the server.
Server boots up fine (and bot joins channel)
Changed the level manually and stuff hits the fan again:




[Edit]
Hah! It works!
  1. Go to scripts directory.
  2. Delete all the content of the "compiled" directory.
  3. Edit the irc-relay-core.sp (changes to the file can be found here).
  4. Save the file and exit your editor.
  5. Run the "./compile.sh" command.
  6. Move all irc-*.smx files from "compiled/" to your "addons/sourcemod/plugins/" directory.
  7. Restart the server (don't refresh your plugin list)!!
  8. Seems to work for me now o/
Ill get this error when i try to compile

Code:
//// irc-relay-core.sp
// irc-access.sp(486) : warning 204: symbol is assigned a value that is never used: "qHost"
// irc-relay-core.sp(623) : error 017: undefined symbol "command_Join"
// irc-relay-core.sp(624) : error 017: undefined symbol "command_Part"
// irc-relay-core.sp(625) : error 017: undefined symbol "command_Commands"
// irc-relay-core.sp(626) : error 017: undefined symbol "command_Die"
// irc-relay-core.sp(627) : error 017: undefined symbol "command_raw"
// irc-relay-core.sp(669) : error 017: undefined symbol "OnSocketError"
// irc-relay-core.sp(770) : error 017: undefined symbol "RestartPlugin"
// irc-relay-core.sp(1119) : warning 217: loose indentation
// irc-relay-core.sp(1143) : warning 217: loose indentation
// irc-relay-core.sp(1143) : error 029: invalid expression, assumed zero
// irc-relay-core.sp(1143) : warning 221: label name "IRC_Tag_CommandCallback" shadows tag name
// irc-relay-core.sp(1143) : error 017: undefined symbol "command_Join"
// irc-relay-core.sp(1143) : error 029: invalid expression, assumed zero
// irc-relay-core.sp(1143) : fatal error 127: too many error messages on one line
//
// Compilation aborted.
// 11 Errors.
//
// Compilation Time: 0,44 sec
// ----------------------------------------
__________________
//ReLaX - Get free help for your Counter-Strike: Source server in Danish!
Microsoft Certified IT Professional

Last edited by ReLaX; 02-03-2009 at 05:38.
ReLaX is offline
tcviper
Veteran Member
Join Date: Oct 2005
Location: Netherlands
Old 02-06-2009 , 08:50   Re: IRC Relay (v2.1.0) UPDATED!
Reply With Quote #269

Maybe someone should recompile the core plugin if possible and fix that annoying bug and sent me the file after which i will add it to the first page.
__________________
tcviper is offline
Send a message via MSN to tcviper
Puntje
Member
Join Date: May 2004
Old 02-06-2009 , 12:16   Re: IRC Relay (v2.1.0) UPDATED!
Reply With Quote #270

Quote:
Originally Posted by tcviper View Post
Maybe someone should recompile the core plugin if possible and fix that annoying bug and sent me the file after which i will add it to the first page.
Look at your inbox, I've send you the link!
__________________
~ Nothing travels faster then the speed of light with the possible exception of bad news, which follows it's own laws! - Douglas Adams ~
Puntje is offline
Send a message via ICQ to Puntje
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode