|
| 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
|
  |
| 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
|
  |
| Joined: 24 Jan 2013 |
| Total Posts: 2618 |
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|