Synchronized Chat On Multiple Servers

Discussion in 'Plugin Suggestions' started by IcyPhoenix, Aug 17, 2012.

  1. IcyPhoenix Member

    Is it even possible currently to create a global chat across multiple servers, I'm assuming you would need multiple chat channels (Server No# + 1) where the extra one is the global chat. Or would it be too hard for a plugin to manage?
  2. Olink TShock Developer

    It's "doable" but you would likely need an external tool running somewhere to handle the traffic of multiple servers.
  3. IcyPhoenix Member

    Would it be viable or completely stupid to :
    1. Suppress all chat
    2. send all chat text to a mysql table, with each chat using a new index number
    3. poll chat from table every 0.x seconds?
    cause I have no idea how to capture packets with a third party program currently without researching...
  4. Olink TShock Developer

    Completely stupid imo, as thats a shitton of mysql queries. Shitton of bandwidth, etc etc. Its an interesting proprosal, if you dont mind running an external server/application somewhere to manage all the servers. I might get a plugin out this weekend that will achieve this, using a redis server. I recently worked with a certain someone on a system eerily similar to this for minecraft.

    How it works:
    1) You launch a redis server, which simply is a framework for sending stuff over networks. Feel free to research this.
    2) A plugin would intercept chat packets and whatnot, send them to the redis server( #1 ).
    3) The redis server( #1) would distribute the message to all listening servers(2#...) .
  5. Colin TShock Plugin Developer

    You could probably use an IRC bridge to relay messages between servers as well, although it's not a very stable way of doing it.
  6. IcyPhoenix Member

    Hmm, will look into this then - My server itself should be able to handle the extra application with 3 terraria servers - currently all linked by one mysql table for SSI coverage between the 3 worlds.

Share This Page