We are implementing Execute Cloud Script on our Dedicated Server.
We have setup Developer Secret Key and the Title Id:
IPlayFabModuleInterface::Get().GetServerAPI()->SetTitleId(TEXT("TitleID")); IPlayFabModuleInterface::Get().GetServerAPI()->SetDevSecretKey(TEXT("OurDevKey"));
IPlayFabModuleInterface::Get().GetServerAPI()->SetTitleId(TEXT("TitleID")); IPlayFabModuleInterface::Get().GetServerAPI()->SetDevSecretKey(TEXT("OurDevKey"));<br><br>PlayFab::ServerModels::FExecuteCloudScriptServerRequest AcceptSessionRequest; AcceptSessionRequest.FunctionName = TEXT("acceptSession"); AcceptSessionRequest.FunctionParameter.readFromValue(MakeShareable(new FJsonValueObject(JsonParam))); AcceptSessionRequest.RevisionSelection = PlayFab::ServerModels::CloudScriptRevisionOption::CloudScriptRevisionOptionLatest; bool bWasRequestSent = IPlayFabModuleInterface::Get().GetServerAPI()->ExecuteCloudScript( AcceptSessionRequest, PlayFab::UPlayFabServerAPI::FExecuteCloudScriptDelegate::CreateUObject(this, &UOnlineTaskAcceptSession::ReceivedAcceptSessionSuccess), PlayFab::FPlayFabErrorDelegate::CreateUObject(this, &UOnlineTaskAcceptSession::ReceivedError) );
Looking at the Documentation , PlayFabId is Required for Server Side Execute Cloud Script. How does this Apply to Limitation. In Our Case Dedicated Servers Will invoke a Cloud Script once they are Launched so we don't have a Player List yet. Is it recommended to use a Dummy Player Id , if So what are the Limits?
Answer by Citrus Yan · Nov 19, 2020 at 08:21 AM
The Server/ExecuteCloudScript API was intended to run actions on any players you specify, therefore PlayFabId is required. There is no “hard” limit applied regarding this, however in your case, I would suggest that you use CloudScript/ExecuteEntityCloudScript instead, which requires no PlayFabId, executes as the title itself, and makes more sense.
My Apologies as i didn't see the Answer earlier.
Thanks for your detailed answer.
GetPlayerCombinedInfoRequest no longer includes DisplayName in response 2 Answers
TypeError when trying to declare a call to server.GetPlayersInSegment(); 1 Answer
GetObjects/SetObjects InternalError 0 Answers
Request timeout 3 Answers
How am I supposed to connect more than 100-1k players to the Servers 2.0? 1 Answer