|
| 27 Feb 2015 03:00 PM |
While playing with my DataStores, it errored me a "Key too long"
This is the key:
local playerProductKey = "player_"..receiptInfo.PlayerId.."_purchase_"..receiptInfo.PurchaseId
player_ = 6 characters PlayerId - usually 7 characters _purchase_ = 10 characters PurchaseId = 8 characters --- 31 characters
The DataStore wikipage says a Key's character limit is 50,
what? ;l Wot am I doing incorrectly? |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 27 Feb 2015 03:13 PM |
Maybe it sticks a UUID at the end in the background...
Why don't you take a seat over there? |
|
|
| Report Abuse |
|
|
| |
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 27 Feb 2015 03:15 PM |
A UUID is a random string of numbers and letters that high level languages (Java, C++, etc) use to make a something unique.
UUID = Universally unique identifier
Why don't you take a seat over there? |
|
|
| Report Abuse |
|
|
|
| 27 Feb 2015 03:16 PM |
It's not that much worse to just save the numbers.
Id1 .. " " .. Id2
And then you can still get both Ids with
Id1, Id2 = Key:match("(%d+) (%d+)") |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 27 Feb 2015 03:17 PM |
My UUID thing is just a theory though.
Why don't you take a seat over there? |
|
|
| Report Abuse |
|
|
|
| 27 Feb 2015 03:42 PM |
I just used Roblox's example because it seemed well-ordered xD
Thanks. |
|
|
| Report Abuse |
|
|