This plugin and Python script allows you to chat between any number of servers without actually playing in them. For example, you could connect 3 servers together using this, and then talk with people in the 2nd and 3rd servers while you're in the 1st server.
How it Works
A Python script is provided which acts as the master server to receive all server messages. Each server pings the master server every second, with a payload including all messages that have been sent on this server in the last second, and the master server replies with all messages sent by other servers in the last second.
You must install the SteamTools
extension to use this.
You must also have access to a server capable of running Python 2.7.x scripts, with an open port that is not in use.
- sm_csc_host (string) (def. "http://YOURHOST.com:8000) - The host and port that the master server Python script resides at.
- sm_csc_prefix (string) (def. "") - The prefix to use for sending messages. A blank prefix means that all messages are networked. An example prefix is "#", which would mean that all messages you want networked must be of the format "#message", e.g. "#hi hawk".
- sm_csc_admin_only (string) (def. "0") - Whether or not cross-server chat should be restricted to admins only. For this to be "1", sm_csc_prefix must also be set to something non-blank (e.g. "#").
- Install the SteamTools extension, if you haven't already.
- Install the plugin on every game server you want networked. See installing plugins.
- Install the Python script on the server you want to be the master server.
- Copy the cross-server-chat.py script to somewhere that you can run it.
- Edit it and be sure to change the following:
HOST_NAME = 'YOURHOSTNAME.com'
PORT_NUMBER = 8000
- Run it by typing:
You may consider running it in a Screen session or as a daemon so that it doesn't get terminated when you close the terminal.
- Restart the game server(s).
- 1.0, Jan 6, 2014
- 1.1, Jan 9, 2014
- Added sm_csc_admin_only cvar.
- Added chat flooding detection for non-admins.