|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
| |
|
|
| 21 Jul 2017 09:58 PM |
Any solutions or advice on the datastore overload situation with storing userids?
|
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|