Dued1
|
  |
| Joined: 26 Oct 2007 |
| Total Posts: 803 |
|
|
| 23 Dec 2013 10:30 PM |
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?
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 23 Dec 2013 10:31 PM |
| PlayerRemoving is not very safe, I would probably do every 2 or 3 items |
|
|
| Report Abuse |
|
|
YEGGOR
|
  |
| Joined: 02 Apr 2013 |
| Total Posts: 1150 |
|
|
| 23 Dec 2013 10:31 PM |
i would call it every time an object is placed, and have a debounce of about .5 on placing new items.
|
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 23 Dec 2013 11:19 PM |
| Apparently 500 times a minute or so, but ROBLOX is going to scale it down to 7-8 requests per a minute per a player. |
|
|
| Report Abuse |
|
|
YEGGOR
|
  |
| Joined: 02 Apr 2013 |
| Total Posts: 1150 |
|
| |
|
Dued1
|
  |
| Joined: 26 Oct 2007 |
| Total Posts: 803 |
|
|
| 24 Dec 2013 12:26 AM |
| Alight, PlayerRemoving it is. Data Store is reliable with PlayerRemoving right? |
|
|
| Report Abuse |
|
|
YEGGOR
|
  |
| Joined: 02 Apr 2013 |
| Total Posts: 1150 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 24 Dec 2013 03:44 PM |
| You should never use PlayerRemoving to save things. |
|
|
| Report Abuse |
|
|
Merely
|
  |
| Joined: 07 Dec 2010 |
| Total Posts: 17266 |
|
|
| 24 Dec 2013 03:46 PM |
| 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. |
|
|
| Report Abuse |
|
|
|
| 24 Dec 2013 10:07 PM |
Insert 2 HttpServices, and you can do 1000 requests.
Funny. |
|
|
| Report Abuse |
|
|
MettaurSp
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 3179 |
|
|
| 24 Dec 2013 11:32 PM |
| 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. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2013 08:41 AM |
You know you can insert 2+ and save the place; it works. |
|
|
| Report Abuse |
|
|
snick3r
|
  |
| Joined: 20 Aug 2012 |
| Total Posts: 3582 |
|
| |
|
|
| 25 Dec 2013 12:04 PM |
@Quenty
Nooooo:(
PlayerRemoving isn't reliable? How often does it not work? |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2013 12:10 PM |
I know this is off-topic but Dued1 you're awesome!
You're probably the only classic Roblox game developer still active. |
|
|
| Report Abuse |
|
|