I'd like to be able to check the size of a player's KVP and have our system react accordingly. Is this possible? Might also require access to the max size per KVP as well, although we could goofy that by hardcoding a value.
I'd like to be able to check the size of a player's KVP and have our system react accordingly. Is this possible? Might also require access to the max size per KVP as well, although we could goofy that by hardcoding a value.
Please take a peek following forum discussion as your reference: https://community.playfab.com/questions/13766/player-data-title-data-value-size.html
I'm referring to checking the existing size of a player's KVP via code. The forum post linked doesn't cover this concept.
Would it be possible to reliably calculate this ourselves? The approach I'm considering is taking the length of the KVP data string and multiplying it by 1 byte. In this scenario I'm assuming that we're only using ASCII characters, no unicode characters.
The value is simply a string, so if you mean calculating the total size in bytes, that should be straightforward. However, yes, due to the need to support all languages, it's not simple ASCII - the full Unicode range is supported.
3 People are following this question.