question

fivefinger2015 avatar image
fivefinger2015 asked

The structure of the game needs a method you recommend.

We are making character collection and equipment collection games.

The character has about 300 slots, and the equipment has about 300 slots.

How do we design data for a game of this structure?

If we try to deal with player data, there is too much data to update at once.

Making each slot have one key will result in too many keys in player data at a time.

Is there any way you recommend?

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

·
Citrus Yan avatar image
Citrus Yan answered

May I know more details about the behaviors of characters & equipment in your game? Like, do characters need to have their own inventory, data, statistics, etc.? In that case you might want to use our Character system to manage characters, described in this blog: https://blog.playfab.com/blog/get-character-playfab. Or, if the characters & equipment are simply treated as items in your game, you can use our Economy System (Inventory, Catalog, Virtual Currency, etc. ) to manage them, for more details please see: https://docs.microsoft.com/en-us/gaming/playfab/features/commerce/economy/

4 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.

fivefinger2015 avatar image fivefinger2015 commented ·

Characters have the following attributes:

index,

level,

rank,

Locked,

A list of equipment that is being equipped,

Equipment has the following properties:

index,

level,

Locked,

The owner with the equipment,

Random option list,

The equipment has a random option like "Diablo", so the data is large.

All users can have up to 300 characters.

All users can have up to 300 equipment.

There is no limit on the number of characters in the player data, but I have read that it recommends about 10 characters.

Is it okay if that character has more than 300 pieces of data?

Character equipment also has more than 300 pieces of data, how should this be handled?

Doesn't it matter if there are more than 300 keys in the player data (Title)?

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan fivefinger2015 commented ·

In your case, I'd suggest that the characters are considered as an item as well, and store the attributes in each item's custom data field, may I know the approximate size of the attributes you need to use(in bytes)?

0 Likes 0 ·
fivefinger2015 avatar image fivefinger2015 Citrus Yan commented ·

Each character has the following structure.

Each piece of equipment has the following structure.

Each user can own about 300 characters and equipment.

Doesn't it matter if there are more than 300 keys in the player data (Title)?

0 Likes 0 ·
gotiq.png (8.3 KiB)
ug9tk.png (11.4 KiB)
Show more comments

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.