.NET 5 Server App on GameLift?


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.

asked 3 years ago477 views
2 Answers
Accepted Answer

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

answered 3 years ago

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

answered 3 years 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