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年前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
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ