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

Previous Thread :: Next Thread 
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
26 Jun 2015 01:10 PM
I noticed how apocalypse rising reborn has a server list with all the IDs and stuff; how did they get these ids for each server? Did they have to generate their own random ID? And if they did, how would the teleport service knows which server to teleport the player too after they joined a server with a specific id?
Report Abuse
Zecrit is not online. Zecrit
Joined: 24 Jan 2013
Total Posts: 2618
26 Jun 2015 01:13 PM
I've never played it but they problem use this data store thing to generate ID's by making the game generate a random number sequence each time it's played and setting that as a unique data store "ID" for it.
The teleport service isn't capable of picking servers, it just throws you to a random one based on the amount of players in the servers.
Report Abuse
Zecrit is not online. Zecrit
Joined: 24 Jan 2013
Total Posts: 2618
26 Jun 2015 01:13 PM
*probably.
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
26 Jun 2015 01:13 PM
http://wiki.roblox.com/index.php?title=API:Class/TeleportService/TeleportToPlaceInstance
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
26 Jun 2015 01:16 PM
^ Thanks ozzy!

And to get the amount of players in that server, do they just add 1 when a player joins and subtract 1 when a player leaves and just add that to some table?
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
26 Jun 2015 01:17 PM
They would use :IncrementAsync of DataStores for tracking all the players in a server.

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
26 Jun 2015 01:17 PM
my friend actually made today a server list with all the pings and amount of players using httpservice but AR probably uses data stores/httpservice to save the id from getplayerplaceinstanceasync whatever it was from TPS
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