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

How do you shut every server down automatically after an update?

Asked by 6 years ago

I don't have the slightest clue on how to do this. What I'm imagining is what mad games used to do when loleris still put effort into it. For those of you who don't know what happened after he updated that game, it basically put a timer for 5 minutes telling everyone to rejoin the game, or the server will shut itself down when the timer reaches 0. This amazed me because I didn't know that studio could somehow communicate with a server that was using an outdated version of that game. At first I thought you would have to change a variable, but then I realized that the variable wouldn't change until the server reset.

1
Could probably be doing occasional checks of MarketplaceService to see if the Updated string changes. Although, I think that Mad Studios had their own website they could push information through like that. local Info = game:GetService("MarketplaceService"):GetProductInfo(26838733, Enum.InfoType.Asset) print(Info.Updated) M39a9am3R 3210 — 6y
1
https://scriptinghelpers.org/questions/67559/saving-limited-items-in-datastores That's how I shutdown servers in my game (with shutdown message) hellmatic 1523 — 6y

1 answer

Log in to vote
1
Answered by 6 years ago

i would imagine that you use a datastore, and every minute or so a script in the game would detetct if the current version stored in a datastore is different than the one stored in some value in the server, if there is a difference, shut the server down, presumably by kicking all players since a server with no players is shutdown automatically

Ad

Answer this question