Hi there, I'm trying to serialize my descriptor, which is then sent to the server via CloudScripts.
Another client is then able to fetch this serialized string, and deserialize it again in order to connect to the network.
However, whenever I'm serializing my descriptor string, the char buffer doesn't get changed at all.
And the following error pops up:
"the network descriptor is a placeholder that cannot be used on this device at this time"
I've stumbled upon this question which didn't help me that much, and I'm hoping that this issue has been resolved already? (I'm currently using the latest version of the NuGet package)
This is the code snippet concerning the serialization:
void CloudScript_SetDescriptor(const Party::PartyNetworkDescriptor& descriptor) { ExecuteCloudScriptRequest cloudScriptRequest; cloudScriptRequest.authenticationContext = authenticationContext; cloudScriptRequest.FunctionName = "save_network_descriptor"; char descriptorChar[Party::c_maxSerializedNetworkDescriptorStringLength + 1] = {}; auto err = Party::PartyManager::GetSingleton().SerializeNetworkDescriptor(&descriptor, descriptorChar); if (PARTY_FAILED(err)) PrintErrorMessage(err); Json::Value functionParameters; functionParameters["roomId"] = "1"; functionParameters["networkDescriptor"] = descriptorChar; cloudScriptRequest.FunctionParameter = functionParameters; PlayFabClientAPI::ExecuteCloudScript(cloudScriptRequest, OnCloudScript_SetDescriptor, OnCloudScriptFail_SetDescriptor); }
I can confirm that this happens after the network is created.
I also tried to execute this when the localuser has connected to the network and even authenticated, neither of these seemed to be making a difference.
Could anyone help me out please?
Thanks in advance!
Sasha