So, after granting a character token to the user, and creating a character, I wanted to give this new character some CharacterReadOnlyData, by making this call from the server:
var Data:testReadOnlyData = {"progress":{"level":1,"exp":0}}; var updateReadOnlyDataRequest = {PlayFabId : currentPlayerId, CharacterId : newCharacterID, Data:testReadOnlyData }; var resultReadOnly = server.UpdateCharacterReadOnlyData( updateReadOnlyDataRequest );
This works, but the problem is that for some reason the PlayfabID and CharacterID are being added as well:
We use PlayfabId and CharacterId to make the call, but we don't want them in there. Is it a Playfab issue? or am I missing something?
Thank you.
,So, after granting the player a character token, and successfully added the character to the player, I wanted to give this new character some CharacterReadOnlyData, for this I call from the server:
var testReadOnlyData = { "progress": { "level": 1, "exp": 0 }}; var updateReadOnlyDataRequest = {PlayFabId : currentPlayerId, CharacterId : newCharacterID, Data : testReadOnlyData }; server.UpdateCharacterReadOnlyData( updateReadOnlyDataRequest );
This works, but for some reason the PlaybafId and CharacterId are being added in the CharacterReadOnlyData as well (we need those to make the call, but we don't want them in CharacterReadOnlyData) :
is it a Playfab issue? or am I missing something?
Thank you