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

asked a year ago233 views
1 Answer
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
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