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

How to I automatically shutdown a server once the game is updated?

Asked by
Sirade -2
8 years ago

I've recently seen in a couple of games, that once their game is updated the server(s) automatically shutdown. I have no idea how to script this, help?

2 answers

Log in to vote
2
Answered by 8 years ago

This is actually done several ways you can do this manually by:

Roblox Website

  1. Go to the roblox website
  2. Go the the develop page
  3. Locate your game in your place's list.
  4. Click on the drop down next to the "Edit" button
  5. Locate the "Shut down all instances"

Your game now has all servers shut down

Or you can do this via scripting

You can create a script that checks if the game has been updated every say 10 minutes by checking the place's version over the server's version if the are alike then the game has not updated.

http://wiki.roblox.com/index.php?title=API:Class/AssetService/GetAssetVersions

get the last version in that table and check it. ( As of the date of this post that function does not work properly )

ANOTHER way you can do this is by using HttpService

You can use Httpservice if you have your own website for example. You can store the current place version on a file on your website and update it when you update the game.

And then have a script in your game to check that file to see if the game is updated or not.

http://wiki.roblox.com/index.php?title=API:Class/HttpService

Q: Easiest way to do it? --- A: The very first way I showed you.

Ad
Log in to vote
-1
Answered by
Sirade -2
8 years ago

I've found that the best way to do this is with making a roblox model, and after the model is updated the server will auto shutdown.

Answer this question