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 » Scripting Helpers
Home Search
 

Re: Important, simple question

Previous Thread :: Next Thread 
Kacper is not online. Kacper
Joined: 10 Dec 2007
Total Posts: 585
02 Jul 2014 10:20 AM
Is it okay to save e.g. 30 values in Data Store for each player who visits my game?
Can it cause any problems in the future?

Thanks,
Kacper
Report Abuse
luap2000 is not online. luap2000
Joined: 31 May 2014
Total Posts: 43
02 Jul 2014 10:25 AM
Combined, the key and value of an entry in the data store cannot exceed 64 kilobytes, or 2^16 characters.

To determine the length of a string, call string.len

64kB fits 2^16 characters. Tables are stored in JSON, so the encoded JSON of a table should not exceed 2^16 characters. Numbers and booleans will never exceed this length.

There is a data limit per value. You cannot save any data which data size is more than 64 kilobyte, which equals 2 ^ 16 string characters. Tables are saved in JSON, which means that the encoded JSON string should not exceed a length of 2 ^ 16 characters. Numbers and booleans will never exceed this length. For strings, you can call the function on it: if this returns less than 2 ^ 16, you can be sure that this key can save. If this data limit is exceeded, all save functions will throw an error, and the data provided will not be saved on the roblox servers.

from: http://wiki.roblox.com/index.php?title=Data_store
Report Abuse
Kacper is not online. Kacper
Joined: 10 Dec 2007
Total Posts: 585
02 Jul 2014 11:20 AM
I save only simple numbers, but there are about 30 values to save. So this won't cause any problem?
Report Abuse
Kacper is not online. Kacper
Joined: 10 Dec 2007
Total Posts: 585
02 Jul 2014 11:21 AM
30 simple values to save for each player. Maybe 9 of them are containing 2-3 digit numbers.
Report Abuse
luap2000 is not online. luap2000
Joined: 31 May 2014
Total Posts: 43
02 Jul 2014 11:51 AM
I assume not. Other games, like rpg's, store way more than that i think
Report Abuse
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
02 Jul 2014 11:54 AM
You have to be wary of the request limit, however.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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