question

Robin Smekens avatar image
Robin Smekens asked

How does the custom inventory instance data limit work?

Hi,

There is a 100 bytes limit for inventory instance data. I didn't find a clear description of what this actually applied to as it can be interepreted in multiple ways.

  • Is this a limit for the value per key? (so 100bytes per value for each key)
  • Is this a total for all characters combined in the value fields? (so 100bytes for all value's combined)
  • Is this a total for all characters combined in both key and value fields?
  • Is there a limit on the amount of keys?

Would be awesome to have a clear answer on this so we exactly know how we can best store our data without exceeding of the limits.

Friendly regards,
Smekens Robin

screenshot-2021-11-23-165825.png

data
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Rick Chen avatar image
Rick Chen answered

The 100 bytes limit for Inventory item data value size is for the value per key. And the soft limit on the amount of key/value pairs should be the same as the Inventory item data updates per request, which is 5 pairs.


limit1.png (25.2 KiB)
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Robin Smekens avatar image Robin Smekens commented ·

Thanks for the answer just a follow up question. Is the limit of key/value pairs per inventory item also 5? (is there a hard limit) Or can an inventory item have 10+ key/value pairs but then send updates in batches of 5?

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ Robin Smekens commented ·

There is no hard limit for inventory item data key/value pairs per item. You can put 5+ pairs of key/value on an item with multiple requests (each request is limited to update 5 pairs). However, it is recommended to keep the usage under 5 pairs. Or it could add up when there are many players who have many items and may affect the performance of your title.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.