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

질문됨 일 년 전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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠