generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How would you check for existing servers?

Previous Thread :: Next Thread 
Dr_Doge is not online. Dr_Doge
Joined: 07 Dec 2011
Total Posts: 645
28 Oct 2016 08:20 PM
Im making a game that involves a single global table that is editable and saveable in game by anyone, however, with multiple servers there exists a problem of overwriting tables.
One server could undo everything from another servers tables saves when saving and vise versa.

To prevent this, Im trying to only allow one server at a time, so I need to know how roblox can understand when another server already exists so that it can shut itself down if another server does exist already.

Anyone have any ideas to solve my predicament?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
28 Oct 2016 08:35 PM
'single global table that is editable and saveable in game by anyone'

Can you explain a bit more?


Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
28 Oct 2016 08:35 PM
You could use DataStore's.
For instance you can have a datastore with a value and every time a server starts it will add 1 to the value, Then you check what that value is, If its 1 then a server already exist (Shutdown Server)


Report Abuse
Dr_Doge is not online. Dr_Doge
Joined: 07 Dec 2011
Total Posts: 645
29 Oct 2016 10:01 PM
Oh datastores exist outside of servers?

I thought that datastore stuff saves when the server shuts down.

Thanks!
Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
29 Oct 2016 10:06 PM
Yes, Datastores persist even when the game is not running


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image