Set Fleet ID from Unreal Engine

0

Hi, I followed the Amazon GameLift-UE4 tutorial series you guys have on youtube https://www.youtube.com/playlist?list=PLuGWzrvNze7LEn4db8h3Jl325-asqqgP2 And is working as expected, the one thing I want to change that I haven’t find a way to do it is to setup the fleet ID from within unreal. Right now, the fleet ID is hardcoded in the Gamelift-StartGameSession lambda function. My problem is that I want to have several build/fleets sets to run different projects. as it is right now, I have to go and edit that function which is a hassle plus the most important thing is that I can’t run both projects at the same time.

Is there a way that I can set the fleet ID in unreal engine stead ?

Any help appreciated

已提问 1 年前237 查看次数
1 回答
0

To control which fleet the game session is created on, you'll need to extend the backend functionality a bit further. The idea is that your game client doesn't know about Fleet ID:s, but instead it requests what kind of session it wants to connect to. You could for example have the game client send a game mode, game name, or whatever it is that identifies the fleet you want to access, to the backend API. You could do this with the Lambda proxy integration, and use query strings for example to pass this information.

To configure one or more Fleet ID:s for Lambda outside of the code, you can use Lambda environment variables. This allows you to separate this configuration from your Lambda code.

AWS
Juho_J
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则