question

choi dong geun avatar image
choi dong geun asked

UpdateUserInventoryItemCustomData not working

hi.

I am using Microsoft Azure.

I want to serialize the class called Stat and put it in Custom Data.

Below is the source code.

List substat = new List();

substat.add(~~~~~)

Dictionary customdata = new Dictionary();

customdata["level"] = "1";

customdata["substat"] = JsonConvert.SerializeObject(substat);

So we used UpdateUserInventoryItemCustomData. There is no error, but it cannot be saved. As a result of the test, if there is nothing saved in the substat, the result comes out well, but if there is something saved, it doesn't come out properly What's the reason?

5974-1.png

5975-2.png

Character Data
1.png (16.2 KiB)
2.png (14.3 KiB)
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

·
choi dong geun avatar image
choi dong geun answered

Fixed it. I think it's because of the 100 byte limit.

1 comment
10 |1200

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

Gosen Gao avatar image Gosen Gao commented ·

Glad to hear you've solved the problem, if you have any other questions feel free to post.

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.