.NET 5 Server App on GameLift?

0

Hey dear community,

I'm new to GameLift, and I tested Unity server build both on Windows and Linux, they were all properly activated on GameLift.

But can I write my own server code by using C#(.NET) (along with GameLift SDK but without Unity, ), and upload the executable console app to GameLift? If yes, is .NET 5 supported? Or do I have to use specific .NET Framwork / Core version?

I read this .NET Core&GameLift topic , it seems currently it's not possible to write GameLift c# code and run it without unity.

I tried my .NET 5 server app on GameLift and the result : SERVER_PROCESS_CRASHED Win : Server process exited without calling ProcessEnding(), exitCode(134), Linux : Server process exited without calling ProcessEnding(), exitCode(-532462766)

Anyone can help? If it won't work, I hope I can get the answer and just stop trying. Thanks.

질문됨 3년 전459회 조회
2개 답변
0
수락된 답변

The GameLift C# Server SDK does not officially support creating C# server builds outside of Unity. However, the SDK is essentially a utility for sending websocket messages to the websocket server on the EC2 instance, so if push comes to shove you could write your own C# .Net5 server SDK. Folks have done it in the past for other languages, see:

  1. Rust: https://github.com/ZaMaZaN4iK/aws-gamelift-server-sdk-rs/tree/main/src
  2. Go: https://github.com/neguse/gomelift
  3. Other community projects: https://github.com/favoyang/awesome-gamelift

However, before diving into that, it might prudent to find out why your server process crashed. First, it's best to test out your server process with GameLift Local first. Testing locally will save you the trouble of having to wait for fleet creation. See: https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-testing-local.html

Next, it might be worth remoting to the fleet instance and run the server process directly on the instance to see if you see any helpful error message. Make sure you create your fleet with RDP port (3389) opened. See: https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html

답변함 3년 전
0

Thanks for your answer! I will try to dig further with the info you provide!

답변함 3년 전

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

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

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