So I have a game where users can upload their creations to a public datastore, but the datastore size limit has already been broken within two days (41 creations). Each of these creations are about 100kB large.
Is there an alternative to datastore or a way to abuse the datastore system to exceed 4MB of data?
You can create multiple datastores to save more data, you can also shorten the ammount of data by making your system more efficient.
If you want to easily save extra stores you just need to add a number to the name of the store and check how much total data there is. You might also have to split data up
The only issue with using os time as the identifier is keeping the times would need another store, your better of just adding like so
βββ
If string.length > 200k then
β Split data
for i = 1, #Split do
SaveData(Storename β¦ tostring(i),Data)
end
end
And then whem retrieving data you do
local Data = {}
local Comp = {}
Comp[1] = 0
while Comp[2] = nil do
table.insert(Data, GetData(StoreName .. tostring(Comp[1])
If Data[#Data].Length > 200k then
-- repeat
else
Comp[2] = true
end