question

Lothar avatar image
Lothar asked

Where can I store a Match runtime Data?

Hi All, I need an help
I'm developing a turn based indie game and I'm little stuck about the autoritative server. I choose playfab for cost and benefit and now I'm looking for a way to store the match situation each turn to verify if the movements of the player are right and are not cheated

in My Idea CludScript will help me to accept and verify a move, but where can I store the Match status?
my game it is a sort of chess and I need to store the Pieces position and power
do you have any suggestions?
This is a Indie Game and I've not a big budget... :-(

10 |1200

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

Sarah Zhang avatar image
Sarah Zhang answered

You can try to use PlayFab Shared Group Data to achieve this feature that storing the temporary data of a turn-based match. Please refer to the discussion in the following threads for more information.

https://community.playfab.com/questions/515/207129407-Persistent-turn-based-games-.html

https://community.playfab.com/questions/6154/turn-based-game-data-storage.html

https://community.playfab.com/questions/8998/can-playfab-do-async-turn-based-games.html

Besides, you can check the documentation -- Using Shared Group Data for the CloudScript code example which achieved a turn-based multiplayer async game using Shared Group Data.

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.

Lothar avatar image Lothar commented ·

Let me try, thanks a lot for your suggestions

0 Likes 0 ·
Lothar avatar image
Lothar answered

Ok, I red all posts. It was really hold when PlayFab miss the match macking.

At the end my Player can play only one Match at time and the maximum number of player per match will be only 2.

If I understood well the best choice will be the Shared Group Data becouse it will be updated for both player live if it is managed only by Cloud script.

is it right?

Do I need also a Photon Server? Becouse I can't pay for the beginning a lot of money.

Fianlly, I need to create a MatchMaking queue set only for two.

When the Match Start both Player will ask, via cloud script to store their moves.
Server Validate the move and possible attack checkin the situation stored into the Shared Group Data and send to the client a confirmation of the move.

Client execute the move and the attack result.

This will happen each turn.

is this right?

10 |1200

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

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.