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
asked a year ago263 views
1 Answer
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions