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

Server Chat Relay v0.2 (2/18)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
FLOOR_MASTER
Senior Member
Join Date: Mar 2008
Plugin ID:
449
Plugin Version:
0.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Enable multi-server chat
    Old 07-06-2008 , 01:33   Server Chat Relay v0.2 (2/18)
    Reply With Quote #1

    Server Chat Relay (SCR) enables players on different servers to chat with each other.

    Configuration
    • sm_scr_server (default "0")
      • When non-zero, this game server becomes the Server Chat Relay server
    • sm_scr_ip (default "127.0.0.1")
      • IP of the Server Chat Relay server (ignored when sm_scr_server is 0)
    • sm_scr_port (default "51000")
      • Port of the Server Chat Relay server
    • sm_scr_tag (default "Server 1")
      • Tag to prefix messages broadcast from this server
    • sm_scr_relaysay (default "0")
      • When non-zero, broadcast all say messages from this server (except those that begin with '!')
    • sm_scr_clients_file (default "scr_clients.txt")
      • Specifies the filename to open with a list of allowed SCR client IP addresses. For TF2, the default value resolves to the location "orangebox/tf/scr_clients.txt". The file should contain a list of allowed IP addresses (no ports), one per line. Whitespace is trimmed. If the file cannot be opened, any client is allowed.
    Commands
    • !bc [text]
      • Broadcast the specified text to all servers. This is useful if sm_scr_relaysay is 0. Available to all players.
    Example Setup
    Exactly one game server must be an SCR server. For example, let's say you run two TF2 Servers with IPs 1.1.1.1 and 2.2.2.2, and one DOD server with IP 3.3.3.3. I'll designate the first TF2 server as the SCR server with the following config:
    Code:
    sm_scr_server    "1"
    sm_scr_port      "51000"
    sm_scr_tag       "2f2f (TF2)"
    sm_scr_relaysay  "1"
    (relaysay is optional) All remaining servers must be SCR clients (sm_scr_server 0). For the 2nd TF2 server, I'll use the following config:
    Code:
    sm_scr_server    "0"
    sm_scr_ip        "1.1.1.1"
    sm_scr_port      "51000"
    sm_scr_tag       "2f2f2 (TF2)"
    sm_scr_relaysay  "1"
    And for the DOD server, I'll use the following config:
    Code:
    sm_scr_server    "0"
    sm_scr_ip        "1.1.1.1"
    sm_scr_port      "51000"
    sm_scr_tag       "2f2f3 (DOD)"
    sm_scr_relaysay  "1"
    Load the plugin on the SCR server first, then load the plugin on the SCR clients in any order. Pay attention to the console messages to make sure the SCR server starts correctly before starting the SCR clients. If you have trouble starting the SCR server, make sure you unload the plugin on all the SCR clients first.

    After setup, the inter-server chat looks like this (as seen on the DOD server):


    Installation
    1. Ensure that the sockets extension is installed on your servers.
    2. Copy scr.smx to your servers' SourceMod plugins directories (addons/sourcemod/plugins). Because the plugin relies on sockets, online compile will fail. I compiled scr.smx on sourcemod-1.2.0-hg2562, but I recommend that you compile the source on your own setup.
    Version History
    • 2008-07-05 - v0.1
      • Initial release
    • 2009-02-18 - v0.2
      • Added client whitelist
    I wrote this quickly without thorough testing, so please be aware of that. There are a lot of potential features to add to this, so feel free to request them here. I'm sorry to say due to time constraints I can't spend time helping novice users get things up and running.

    Note that if you receive socket errors (e.g. error 3 or error 5), you should unload the plugin on both the SCR server and clients, wait at least 30 seconds or so, then load the plugin on the server first, followed by the clients. This is a process I hope to automate soon.
    Attached Files
    File Type: sp Get Plugin or Get Source (scr.sp - 1455 views - 9.8 KB)
    File Type: smx scr.smx (7.1 KB, 846 views)

    Last edited by FLOOR_MASTER; 02-18-2009 at 10:58.
    FLOOR_MASTER is offline
     


    Thread Tools
    Display Modes

    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 19:36.


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