Dued1Join Date: 2007-10-26 Post Count: 803 |
How often can GetAsync and UpdateAsync be called? In a building game that save players creations, should UpdateAsync be call every time a building item is placed or should UpdateAsync be call once though PlayerRemoving?
|
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
PlayerRemoving is not very safe, I would probably do every 2 or 3 items |
|
|
i would call it every time an object is placed, and have a debounce of about .5 on placing new items.
|
|
|
|
Dued1Join Date: 2007-10-26 Post Count: 803 |
Alight, PlayerRemoving it is. Data Store is reliable with PlayerRemoving right? |
|
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
You should never use PlayerRemoving to save things. |
|
MerelyJoin Date: 2010-12-07 Post Count: 17266 |
The problem with PlayerRemoving is that if the server crashes, the data is never saved. I'd suggest doing it at 5 minute intervals or something reasonable, but only do it if something has actually changed. |
|
|
MettaurSpJoin Date: 2010-03-20 Post Count: 3179 |
One does not simply insert a service. They are sorta already there when the game starts, GetService and service both just reveal them, not create them. |
|
|
snick3rJoin Date: 2012-08-20 Post Count: 3582 |
@Merley Hey big boi ;) |
|
|
@Quenty
Nooooo:(
PlayerRemoving isn't reliable? How often does it not work? |
|
devTreeJoin Date: 2012-12-26 Post Count: 2596 |
I know this is off-topic but Dued1 you're awesome!
You're probably the only classic Roblox game developer still active. |
|