Raised This Month: $32 Target: $400
 8% 

[EXTENSION] Socket (3.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
maitredede
Senior Member
Join Date: May 2005
Old 05-26-2008 , 06:09   Re: [EXTENSION] Socket (2.3.1)
Reply With Quote #31

Hi,

This looks like a really interesting extension with a great potential...

Do you have more doc/samples ?

I would like to create a plugin that uses this lib, but I have some questions...
- How can I do to have a request/reply mechanism for a plugin ? Like if a player say "meteo" and then the plugin connects to a meteoserver, and reply back to player ?
- Can you add native text functions to make communication easier, like Readline read buffer until found a LF char). So communication with a telnet server would become really easy, and someone could develop a webserver ;)

Thanks
__________________
make brain && make install
maitredede is offline
gM@X
Junior Member
Join Date: Nov 2007
Old 05-27-2008 , 09:01   Re: [EXTENSION] Socket (2.3.1)
Reply With Quote #32

in thread IRC Relay v2.0.1

Quote:
Originally Posted by gM@X View Post
don't work
Quote:
L 05/24/2008 - 11:55:58: SourceMod error session started
L 05/24/2008 - 11:55:58: Info (map "gg_autumn") (file "errors_20080524.log")
L 05/24/2008 - 11:55:58: [irc-relay-core.smx] socket error 3 (errno 10049)
L 05/24/2008 - 12:05:52: Error log file session closed.
Quote:
SourceMod Version Information:
SourceMod Version: 1.0.1.2166
JIT Version: JIT (x86), 1.0.1.2166
JIT Settings: Generic i686
http://www.sourcemod.net/
also don't work with 1.0.0

Quote:
[SM] Listing 44 plugins:
01 "Admin File Reader" (1.0.1.2166) by AlliedModders LLC
02 "SQL Admins (Threaded)" (1.0.1.2166) by AlliedModders LLC
03 "Admin Help" (1.0.1.2166) by AlliedModders LLC
04 "Admin Menu" (1.0.1.2166) by AlliedModders LLC
05 "Advertisements" (0.2) by Tsunami
06 "Anti-Flood" (1.0.1.2166) by AlliedModders LLC
07 "Basic Chat" (1.0.1.2166) by AlliedModders LLC
08 "Basic Comm Control" (1.0.1.2166) by AlliedModders LLC
09 "Basic Commands" (1.0.1.2166) by AlliedModders LLC
10 "Basic Info Triggers" (1.0.1.2166) by AlliedModders LLC
11 "Basic Votes" (1.0.1.2166) by AlliedModders LLC
12 "Crazy Drug" (0.1) by Fredd
13 "Fun Commands" (1.0.1.2166) by AlliedModders LLC
14 "Fun Votes" (1.0.1.2166) by AlliedModders LLC
15 "Damage report" (1.1. by [30+]Gemeni
16 "HLstatsX Plugin" (2.1) by Tobi17
17 "HANSE Reserved Slots" (1.3.1-r1) by red!
18 "IRC Relay - Admin Commands Module" (2.0.0) by Olly
19 "IRC Relay - Auth Module" (2.0.1) by Olly
20 "IRC Relay - Bacon" (2.0.1) by Olly
21 "IRC Relay - Base Commands" (2.0.1) by Olly
22 "IRC Relay - Game Players" (2.0.1) by Olly
23 "IRC Relay - Relay Module" (2.0.1) by Olly
24 "IRC Relay - Game Info Module" (2.0.1) by Olly
25 "IRC Relay - Core Plugin" (2.0.1) by Olly
26 "IRC Relay - Steam Community" (2.0.1) by Olly
27 "Nextmap" (1.0.1.2166) by AlliedModders LLC
28 "SlapSlay Commands" (1.0.1.2166) by AlliedModders LLC
29 "Players Votes" (1.2.2) by pZv!
30 "Quake Sounds" (1. by dalto
31 "RateChecker" (0.2) by pRED*
32 "Reserved Slots" (1.0.1.2166) by AlliedModders LLC
33 "Rock The Vote" (1.0.1.2166) by AlliedModders LLC
34 "Say Sounds" (1.19) by Hell Phoenix
35 "PlayersList" (0.3) by O!KAK
36 "SourceBans" by SteamFriends Development Team
37 "SourceBans Sample Plugin" (1.0.0 RC2) by SteamFriends Development Team
38 "SQL Admin Manager" (1.0.1.2166) by AlliedModders LLC
39 "SrcTV demorecord" (0.1) by O!KAK
40 "Teamswitch Menu" (0.2.6) by R-Hehl
41 "Teamswitch Menu" (0.2.4) by R-Hehl
42 "TeamIdRetriver" (0.0.1) by R-Hehl
43 "Matrix Plugin" (1.0) by V0gelz
44 "Weapon Logging" (2.1) by Tobi17
databases.cfg
Code:
"Databases"
{
"driver_default"		"mysql"
	
	"sourcebans"
	{
		"driver"			"default"
		"host"				"192.168.111.11"
		"database"			"sourcebans"
		"user"				"sourcebans"
		"pass"				"7SctbQW6D3bDTNfE"
		//"timeout"			"0"
		"port"			"3306"
	}


	"irc_relay"
	{
		"driver"            "mysql"
		"host"            "192.168.111.11"
		"database"      "sourcebans"
		"user"            "sourcebans"
		"pass"            "7SctbQW6D3bDTNfE"
		//"timeout"            "30"
	}
}
PS
Socket (2.3.1) installed
Quote:
Originally Posted by Olly View Post
#10049 normally means that you either have the IP set to 0.0.0.0, or the port set to 0
Quote:
Originally Posted by gM@X View Post
thx
change irc hostname to 192.168.111.10 (another irc server in LAN)
start server with ip 0.0.0.0

i get another error:
Quote:
L 05/27/2008 - 00:17:56: SourceMod error session started
L 05/27/2008 - 00:17:56: Info (map "gg_autumn") (file "errors_20080527.log")
L 05/27/2008 - 00:17:56: [irc-relay-core.smx] socket error 6 (errno 0)
L 05/27/2008 - 00:18:48: Error log file session closed.
PS
ircrelay.cfg
Code:
//*********************************************************
//*  IRC Relay Core

//*********************************************************

irc_server "192.168.111.10"
irc_port 6697
irc_password ""
irc_nickname "CSSBot"

// NAME CANNOT CONTAIN SPACES, OR QUOTES (This will be the bot trigger too!)
irc_name "hl.homeftp.org"
// The delay from each message dispatch from the message queue
irc_flood_limit 0.5
// Group list for triggers
irc_trigger_groups "css"
// The type of channel to send /irc messages from in-game to
//    * 1 = Public Channels
//    * 2 = Private Channels
//    * 3 = Both types
irc_relay_replytype 3
// Display raw IRC data in console, and log files
irc_debug 1
// Enable sending of colour codes
irc_color 1
//*********************************************************
//*  Authentication Module
//*********************************************************

// The auth string to send (Dont remove %s, that will be replaced by username/pass)
// GameSurge (ChanServ): AUTHSERV AUTH %s %s
// QuakeNet (Q): PRIVMSG [email protected] :auth %s %s
irc_auth_string "AUTHSERV AUTH %s %s"
// AuthServ login details (optional)
irc_auth_username "CSSBot"
irc_auth_password "csspassword"

//*********************************************************
//*  Sets the access levels required to run each command (0-300)
//*********************************************************
// Add User
irc_xs_adduser 300
// Make the relay speak in the channel
irc_xs_say 300
// Make the relay reload a module (SHOULD BE 300!)
irc_xs_reload 300
// Get player list
irc_xs_players 0
// Get information on a player
irc_xs_playerinfo 0
// Send a message to everyone in the server
irc_xs_msg 200
// Makes the relay perform an action (/me)
irc_xs_act 200
// Makes the relay perform an action (/me)
irc_xs_act 200
// Send a message to one player in the server
irc_xs_page 100
// Make the relay join a new channel
irc_xs_join 300
// Make the relay part from a channel
irc_xs_part 300
// == ADMIN COMMANDS ==
// Kick a player from the server
irc_xs_kick 150
// Bans a player from the server
irc_xs_ban 160
// Executes a command on the server (RCON)
irc_xs_rcon 250
Quote:
Originally Posted by Olly View Post
I have no idea what the error numbers in socket are, you should post that in the socket extension topic
gM@X is offline
disconnect81
Senior Member
Join Date: Jul 2006
Location: Ottawa, ON, Canada
Old 05-27-2008 , 09:42   Re: [EXTENSION] Socket (2.3.1)
Reply With Quote #33

gM@X, what game are you getting these errors on?
disconnect81 is offline
gM@X
Junior Member
Join Date: Nov 2007
Old 05-27-2008 , 11:25   Re: [EXTENSION] Socket (2.3.1)
Reply With Quote #34

Counter-Strike: Source
gM@X is offline
disconnect81
Senior Member
Join Date: Jul 2006
Location: Ottawa, ON, Canada
Old 06-03-2008 , 16:15   Re: [EXTENSION] Socket (2.3.1)
Reply With Quote #35

Looks like the developer isnt around
disconnect81 is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 06-11-2008 , 06:46   Re: [EXTENSION] Socket (2.3.1)
Reply With Quote #36

he was busy the past few weeks, i'll look into it.
sfPlayer is offline
disconnect81
Senior Member
Join Date: Jul 2006
Location: Ottawa, ON, Canada
Old 06-12-2008 , 08:39   Re: [EXTENSION] Socket (2.3.1)
Reply With Quote #37

Quote:
Originally Posted by sfPlayer View Post
he was busy the past few weeks, i'll look into it.
Grrreat, I really want to get this working on my dods and dodsbeta servers
disconnect81 is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 06-28-2008 , 08:30   Re: [EXTENSION] Socket (2.3.1)
Reply With Quote #38

Quote:
Originally Posted by gM@X View Post
0 means "No Error", but this way I can't get the received size. I can probably ignore the error, but idk if it'll fix it. Please contact me for a test build which tries to fix it for verification.
sfPlayer is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 06-28-2008 , 11:28   Re: [EXTENSION] Socket (2.3.1)
Reply With Quote #39

Quote:
Originally Posted by maitredede View Post
- How can I do to have a request/reply mechanism for a plugin ? Like if a player say "meteo" and then the plugin connects to a meteoserver, and reply back to player ?
check the example.sp for how to send and receive messages. You'll have to write your own server application for the gameserver to connect to. If #2 is also a gameserver you can do it similar to listenexample.sp

Quote:
Originally Posted by maitredede View Post
- Can you add native text functions to make communication easier, like Readline read buffer until found a LF char). So communication with a telnet server would become really easy, and someone could develop a webserver ;)
i'll look into it, but you can also implement it in a fairly easy way in sourcepawn.
sfPlayer is offline
flook
New Member
Join Date: Jul 2008
Old 07-09-2008 , 06:34   Re: [EXTENSION] Socket (2.3.1)
Reply With Quote #40

Hello

Im trying to getting Socket installed on my server, but im a noob at such things. But when i got it installed, and try to load it i get this error:

[06] <FAILED> file "socket.ext.so": /home/game1/cstrike/addons/sourcemod/extensions/socket.ext.so: cannot open shared object file: No such file or directory

When i check the directory, it seems like its ok, but i don't got: /home/game1/

i just got: ftp://<IP>/cstrike/...

Can anyone help me please?

Thx
flook is offline
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 17:28.


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