- Newest
- Most votes
- Most comments
Based on the information provided, it appears you're encountering issues with your Amazon GameLift server process initialization on a managed EC2 fleet. Here are some potential reasons and solutions for the errors you're experiencing:
-
SDK Initialization: The error suggests that InitSDK() is not being called within the expected time frame. Ensure that InitSDK() is being called as early as possible in your server process, preferably before any other GameLift-related initialization. In your Unity script, make sure it's in the Start() function and not in a later function like Update().
-
ProcessEnding() Call: The server is exiting without calling ProcessEnding(). This function should be called after all other cleanup tasks, including shutting down all active game sessions. Make sure you're properly handling server shutdown and calling ProcessEnding() before the process terminates.
-
Build Configuration: For managed EC2 fleets, ensure your build includes all necessary dependencies. The Visual C++ Redistributable you're trying to install via the install.bat file should ideally be included in your build package rather than downloaded during runtime.
-
Launch Parameters: Your launch parameters look correct, but ensure the log file path is accessible and writable by the server process.
-
Server SDK Version: You're using version 5.1.2, which should be compatible. However, double-check that this version is correctly specified when creating your build and fleet.
-
Build Structure: Your build directory structure looks correct, but ensure that the executable is in the right location and named correctly as expected by GameLift.
-
Fleet Configuration: Your fleet configuration seems appropriate, but you might want to try increasing the maximum concurrent processes to see if it affects the initialization.
-
Logging: Enable detailed logging in your Unity server build to help diagnose what's happening during the initialization process. This can help identify where exactly the process is failing.
-
Testing Locally: Before deploying to GameLift, test your server build locally to ensure it initializes correctly and can shut down properly.
-
Unity and Plugin Versions: Ensure you're using compatible versions of Unity and the GameLift plugin.
If these steps don't resolve the issue, you may need to review your server code in detail, particularly the initialization process and shutdown handling. Consider reaching out to AWS support with your specific build and logs for more targeted assistance.
Sources
Amazon GameLift server SDK 4.x for C++: Actions - Amazon GameLift
Amazon GameLift server SDK 4.x for C#: Actions - Amazon GameLift
Amazon GameLift server SDK 5.x for C++: Actions - Amazon GameLift
Relevant content
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago