Fangous
|
  |
| Joined: 03 Jul 2010 |
| Total Posts: 4448 |
|
|
| 29 Apr 2017 03:07 PM |
| Datastores don't save player data when a server shuts down. Any way to fix this? |
|
|
| Report Abuse |
|
SPACEDUDZ
|
  |
| Joined: 12 Jul 2014 |
| Total Posts: 257 |
|
|
| 29 Apr 2017 03:10 PM |
Make it save every 10 seconds.
|
|
|
| Report Abuse |
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 29 Apr 2017 03:13 PM |
The best route, I believe, would probably be using OnClose.
OnClose is a callback which prolongs the server shutdown (by up to 30 seconds), giving you time to finish (or do) any saving which needs to be done. Doing it incrementally, as suggested by Fangous, wouldn't really be the best route. |
|
|
| Report Abuse |
|
| |