I have 2 servers on the same box, 2 different game modes. I would like the chat visible at another server though
Example
@Server1 : Hey guys whats up
-->Chat sent to server 2
@Server2 : Not much
-->Chat Sent to server 1
Universal Server to server chat
Discussion in 'Plugin Requests' started by [X] Meep, Aug 9, 2015.
-
Wulf Community Admin
You'd most likely have to have a website or database in-between both serving as mediator.
-
Needs to be as light as possible. I didnt want to run SQL just to handle this. It cant be written to a file and read by another server? Web request adds unreasonable amount of server load to Rust
-
Wulf Community Admin
-
Fine then...
*Punches old lady nextdoor* *Goes to court* *blames Wulf* -
Wulf Community Admin
The only other way I can see it MIGHT working, is if you were able to store a file on the server on the same machine, but pretty sure we limit each server to the Oxide directory, aside from what Rust has available for logging. -
I think it's possible to create another server for messages (via plugin). But you need to open another port for it.
-
Wulf Community Admin
-
As Wulf said you need the mediator or direct connection between two plugins. There are many methods of communicating between 2 processes, but most straightforward and supported by oxide is web requests.
-
If you have access to the servers file system and are allowed to create symlinks, you could create a file for both servers that are symlinked to a single file on the server. Thus if all goes well your two servers could read and write to the same file using the symlinked files residing in the server directory. Not sure how Rust handles opening a file which is opened in another Rust instance though.
-
-
Wulf is it possible to use stuff from System.IO.Pipes? Named pipes would be an easy way to implement this without having to use webrequests.
-
Wulf Community Admin
-
-
I don't think Windows has symlinks........
That said, if you ask nicely maybe the Oxide team would be nice enough to wrap the Named pipe stuff and allow you to use that -
Wulf Community Admin
We can't really grant plugins access to place files anywhere on the system, so I'm not sure how we could allow you to use any of System.IO. -
That would be bad ass, I would love that but I would have to also have the rest of the stuff done too... I have no idea what I am doing with most of this , I am still lorning.
-
-
Wulf Community Admin
-
Couldnt you use the IRC system?
[DOUBLEPOST=1439634261][/DOUBLEPOST]oh and Windows + symlins = junctions (mklink /J Source Target)