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
질문됨 일 년 전269회 조회
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠