Since the Gamelift Server SDK 5.x documentation for unreal engine is flat out wrong, what is the correct usage of initSDK?

0

If we look at the documentation here:

https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-server-sdk5-unreal-actions.html#integration-server-sdk5-unreal-initsdk

  1. The variable is initialized as serverParameters but then later referred to as just parameters, which appears to be a mistake
  2. You can't use null as a value in C++, since the type of FServerParameters is a struct containing FStrings, the correct "empty" value for each property would be TEXT(""), but I've seen other examples that use nullptr, so, I don't know which is supposed to be correct.
  3. Considering the documentation is wrong... what is right? How do I properly call InitSDK in a managed EC2 environment in a way that's syntactically valid?
Vedgy
已提問 1 年前檢視次數 270 次
1 個回答
0

Hello Vedgy,

Thank you for bringing these points to our attention. I've alerted the team to look into the changes.

In the meantime, does providing a default ServerParameter object work for you?

Instead try without the assignments,

//Define the default server parameters
FServerParameters serverParameters;

//InitSDK will establish a local connection with GameLift's agent to enable further communication.
gameLiftSdkModule->InitSDK(serverParameters);

Regards,

Jackson

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南

相關內容