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: Tables

Previous Thread :: Next Thread 
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
08 Jul 2015 08:53 PM
How can you transfer table values from servers back to the lobby?

So you can get the server's instance id and server count, etc. etc.

And people in different servers in the lobby will get the same updated value.
Report Abuse
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
08 Jul 2015 08:55 PM
If it's the same game/universe, use datastore
if it's a different game, encode to json, then decode the json in the new game.
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
08 Jul 2015 09:01 PM
It's in the same universe.

I insert the new sever instance id to the data store when someone joins the server, but i don't know how to update it for all the servers back in the lobby.
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
08 Jul 2015 09:10 PM
bump
Report Abuse
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
08 Jul 2015 09:11 PM
Datastore is for the entire game/universe. Doesn't matter which place, as long as it's in your game
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
08 Jul 2015 09:17 PM
So would i need to use a while loop to keep constantly checking the value?
Report Abuse
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
08 Jul 2015 09:32 PM
Or use this
http://wiki.roblox.com/index.php?title=OnUpdate
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
08 Jul 2015 09:47 PM
omg thanks

so what happens if a server dies and i want to remove it?
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
08 Jul 2015 10:31 PM
and how would i get all the keys and values of those keys once it updates?
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