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

[NATIVE] Server Comm


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-20-2011 , 17:27   Re: [NATIVE] Server Comm
Reply With Quote #11

I've not been able to find an include for one-way server communication(retreive data only). Would not require a new module, afaik, like this one.

Nevermind, found it.
__________________

Last edited by fysiks; 02-20-2011 at 17:43.
fysiks is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-20-2011 , 18:49   Re: [NATIVE] Server Comm
Reply With Quote #12

Quote:
Originally Posted by ot_207 View Post
Well what can I say this is a really nice example that shows how to use socket listen. Really neat job exolent.
There are other examples in the sockets_hz module's thread, but glad this helped you

Quote:
Originally Posted by LaineN View Post
What if you want to send data between servers on the same IP but on different ports?
Done.

Quote:
Originally Posted by mabaclu View Post
x2

Nice job but please fix Linux link.
Fixed link.

Quote:
Originally Posted by fysiks View Post
I've not been able to find an include for one-way server communication(retreive data only). Would not require a new module, afaik, like this one.

Nevermind, found it.
Don't know exactly what you mean.
Maybe you wanted an example of only listening for data incoming?
If so, then I guess you did find what you wanted.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-20-2011 , 19:58   Re: [NATIVE] Server Comm
Reply With Quote #13

Cross-Server Chatting
Version 0.0.2
by Exolent



Introduction:

This allows multiple servers to have players chat to each other.
The chat system is the same as the default such as team say and dead chat.


Configuration:

Add your server IPs that you want chatting to each other in the server_chat.ini file (create this file yourself).
Each IP must be on it's own line and nothing else on the line.
To comment a line (hide it from being used), put a semicolon ';' before the line or a double slash "//".
Example file:
Code:
123.64.32.1:27015
;123.64.66.101:27017
Place this file in addons/amxmodx/configs/ folder.


Requirements:

AMX Mod X version 1.8.0 or higher
Server Comm plugin running


Changelog:

Version 0.0.2
  • Updated to use ports from the Server Comm update.
Version 0.0.1
  • Original release


Notes:

IPs in the file must contain the port at the end.

This plugin needs to be compiled locally with the server_comm.inc include from the Server Comm plugin.
Compiling locally: https://forums.alliedmods.net/showthread.php?t=130511

Something like this was already made by hackziner (http://forums.alliedmods.net/showthread.php?p=545178).
This plugin was only created for an example usage for the Server Comm functions.

All suggestions and comments are welcome.
Attached Files
File Type: sma Get Plugin or Get Source (cross-server_chatting.sma - 1156 views - 4.8 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 02-26-2011 at 12:10.
Exolent[jNr] is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 02-21-2011 , 02:42   Re: [NATIVE] Server Comm
Reply With Quote #14

Quote:
Originally Posted by Exolent[jNr] View Post
There are other examples in the sockets_hz module's thread, but glad this helped you
Not just me, but also other users who try learning this part.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 02-21-2011 , 07:01   Re: [NATIVE] Server Comm
Reply With Quote #15

Exolent you forgot uploading the Cross-server chatting plugin.
And I tested the plugin and it returned "Data Sent" despite the ammount of times I try it. But when i wrote restart in the server console it didn't work anymore. If I force the server to crash by deleting a model and then restarting it the plugin outputs "Data Sent" again. I don't know what may be the reason for this...

Last edited by mabaclu; 02-21-2011 at 17:34. Reason: Found an issue
mabaclu is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 02-22-2011 , 18:03   Re: [NATIVE] Server Comm
Reply With Quote #16

This is great. I'll be using it for sure.
__________________
"There is no knowledge, that is not power"
fezh is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 02-23-2011 , 08:23   Re: [NATIVE] Server Comm
Reply With Quote #17

Good job!
You should use set_fail_state when you can't create the socket reader entity, and UDP since you're doing one-way only comm.

Also, why does your sockets_hz.inc file have an extra native called socket_getpeeraddress which doesn't exist?
Seta00 is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 02-23-2011 , 10:40   Re: [NATIVE] Server Comm
Reply With Quote #18

Quote:
Originally Posted by Seta00 View Post
Good job!
You should use set_fail_state when you can't create the socket reader entity, and UDP since you're doing one-way only comm.

Also, why does your sockets_hz.inc file have an extra native called socket_getpeeraddress which doesn't exist?
Probably exo has a secret module.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-23-2011 , 22:49   Re: [NATIVE] Server Comm
Reply With Quote #19

Quote:
Originally Posted by Seta00 View Post
Good job!
You should use set_fail_state when you can't create the socket reader entity, and UDP since you're doing one-way only comm.
Why not use TCP since it should only create the socket if the server is listening for the data?

Quote:
Originally Posted by Seta00 View Post
Also, why does your sockets_hz.inc file have an extra native called socket_getpeeraddress which doesn't exist?
Can't remember where I got that from, but I did not do it myself.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fmfs10
Senior Member
Join Date: Mar 2009
Location: Brasil
Old 02-25-2011 , 17:12   Re: [NATIVE] Server Comm
Reply With Quote #20

Quote:
Originally Posted by Exolent[jNr] View Post
Cross-Server Chatting
Version 0.0.1
by Exolent



Introduction:

This allows multiple servers to have players chat to each other.
The chat system is the same as the default such as team say and dead chat.
Configuration:

Add your server IPs that you want chatting to each other in the server_chat.ini file (create this file yourself).
Each IP must be on it's own line and nothing else on the line.
To comment a line (hide it from being used), put a semicolon ';' before the line or a double slash "//".
Example file:
Code:
123.64.32.1:27015
;123.64.66.101:27017
Place this file in addons/amxmodx/configs/ folder.
Requirements:

AMX Mod X version 1.8.0 or higher
Server Comm plugin running
Notes:

IPs in the file must contain the port at the end.

This plugin needs to be compiled locally with the server_comm.inc include from the Server Comm plugin.
Compiling locally: https://forums.alliedmods.net/showthread.php?t=130511

Something like this was already made by hackziner (http://forums.alliedmods.net/showthread.php?p=545178).
This plugin was only created for an example usage for the Server Comm functions.

All suggestions and comments are welcome.
Add a optional server tag to know from wich server the message in coming from
fmfs10 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 16:57.


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