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
gefragt vor einem Jahr269 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen