AWS Gamelift Server SDK 5.0.1 For Godot Mono C# ?

0

Hello AWS Community,

I have recently started creating a dedicated server with Godot Mono C# and I am trying to work with the AWS Gamelift library. However, when I tried to build it, I encountered several errors stating that the log4net config files could not be found. Interestingly, when I attempted to use it without the Godot context, it worked fine. I suspect that this issue may be related to the fact that Godot uses Mono instead of .NET for building. However, I am not completely sure about this. Has anyone had experience using the C# server SDK for Gamelift in Godot as a dedicated server?

Hamit
asked 3 months ago168 views
1 Answer
0

Hey Hamit,

Amazon GameLift has a wrapper C# Server SDK for use integrating with the Unity game engine that can be found on the GameLift getting started page: https://aws.amazon.com/gamelift/getting-started-sdks/. It isn't for Godot obviously, but it may be a good starting point for investigating how to integrate with Godot as the wrapper for Unity has specific steps to utilize log4net. This note from the readme and the sample source code could prove helpful:

## Configuring log4net for File Output
The Amazon GameLift Server SDK uses the log4net framework to output log messages. It is configured to output to the terminal of a server build by default, but requires some extra steps to add file logging support. This can be added to your project by importing the provided sample inside the Amazon GameLift Server SDK package.
1. In **Package Manager**, select **Packages: In Project** from the dropdown menu at the top, and then select the `Amazon Gamelife Server SDK` from the list of packages.
2. In the package details section, expand the **Samples** group and click on the **Import** button.
3. The `log4net.config` file and accompanying `LoggingConfiguration.cs` script that automatcially executes the configuration is now set up in the project's `Assets/Samples` folder.
4. If the log4net.config file is to be moved to a different folder in the project, its filepath in `LoggingConfiguration.cs` will need to be updated with the new path. Refer to the [log4net manual](https://logging.apache.org/log4net/release/manual/configuration.html) on configuring log4net for more information.

Regards,

AWS
answered 23 days 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