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: Access stored datastore information?

Previous Thread :: Next Thread 
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
21 Jul 2017 05:46 PM
Say I want to load players data without them being in-game, how could I do that?


Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
21 Jul 2017 06:27 PM
Well, you can GetAsync by user id assuming that's the key you're saving to


Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
21 Jul 2017 07:57 PM
Say I don't have a specified user id and I am attempting to load a random player's data for matchmaking?


Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
21 Jul 2017 08:08 PM
The only solution I can think of would be to store the userids of every user that joins the game if that userid is not already stored, then randomly select a userid in a preloaded table that lists all userids and call the said userid in the datastore key for userids, check its stats, if it isn't applicable for the fight (not in a valid level range) then it removes that said userid from the preloaded table and checks for another one until it reaches a valid level. The only issue with this is, couldn't the datastore crash from too much data being stored? Since the limit is ####### ### #################
Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
21 Jul 2017 08:09 PM
The only solution I can think of would be to store the userids of every user that joins the game if that userid is not already stored, then randomly select a userid in a preloaded table that lists all userids and call the said userid in the datastore key for userids, check its stats, if it isn't applicable for the fight (not in a valid level range) then it removes that said userid from the preloaded table and checks for another one until it reaches a valid level.



The only issue with this is, couldn't the datastore crash from too much data being stored?


Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
21 Jul 2017 08:16 PM
hmm yes


Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
21 Jul 2017 09:58 PM
Any solutions or advice on the datastore overload situation with storing userids?


Report Abuse
Wrathsong is online. Wrathsong
Joined: 05 Jul 2012
Total Posts: 22393
21 Jul 2017 11:49 PM
tbh not sure how i'd tackle that. i mean most games with mechanics like this just have 50 person servers to serve as a hub


Report Abuse
Zawie is not online. Zawie
Joined: 04 Jul 2010
Total Posts: 6338
21 Jul 2017 11:58 PM
tbh for this it is probably best to set up your own server and use HTTPService.

You could also try to do something with ordered datastores, idk how complex your match making is...
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