Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to send data to ALL servers online?

Asked by 6 years ago
Edited 6 years ago

Like making a server message that pops up in every server running, I have no idea, didn't found anything on how to do this, so I haven't created a script yet... I believe this is possible (I saw a message appear in roblox themepark tycoon 2 that said that they were shutting down servers in a certain amount of time) it would be very helful for a game I'm making :P

1 answer

Log in to vote
0
Answered by 6 years ago

You would need an external server to do that. I have set one up with python before - a simple webserver (apache, or nginx) which hooks into python (or node) code.

That server would have a "messages_to_broadcast" table, and you'd have game instances which poll it for new messages occasionally. If one is received, that game server would send it out to all players.

So the key thing to set up is an independent spot for all servers to get information from.

0
I just noticed something, can't I use datastores? User#20388 0 — 6y
0
You can use messaging service as well ;w; greatneil80 2647 — 2y
Ad

Answer this question