> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Author a game server build

> Author a PlayFab Multiplayer Servers (MPS) game server build by packaging your executable and assets and integrating the GSDK for the hosted environment.

This topic explains how to create a game server build for PlayFab Multiplayer Servers (MPS). A game server build typically contains game assets and an executable that runs on the server.

When using PlayFab Multiplayer Servers, you need to make modifications to your regular game server build so that it can work on them. This modified server build is called a PlayFab Multiplayer Game Server Build.

If you're unsure of the terms used, see [Terminology](/services/playfab/multiplayer/servers/server-terms).

## How to create a PlayFab Multiplayer Game Server Build

You can convert your regular game server build into a PlayFab Multiplayer Game Server Build by integrating it with the PlayFab Game Server SDK (GSDK).

1. Download the [GSDK](/services/playfab/multiplayer/servers/server-sdks/overview) you need
2. Open your existing game server code project and add the GSDK as a dependency
3. Implement essential functions (at minimum the **Start** and **ReadyForPlayers** methods) using the APIs in the GSDK. For code snippets, see [Integrating game servers with GSDK](/services/playfab/multiplayer/servers/integrating-game-servers-with-gsdk).
4. Build and compile the game server executable to create the PlayFab Multiplayer Game Server Build

This new build now helps manage game servers that are created using PlayFab Multiplayer Servers. Adding more methods provide greater control and gives you information about the servers. For more instructions, see the [Program.cs](https://github.com/PlayFab/MpsSamples/blob/master/wrappingGsdk/wrapper/Program.cs) in the [Wrapper](/services/playfab/multiplayer/servers/wrapper-sample) sample.

<Note>
  Consider using our open source debugging utility LocalMultiplayerAgent to test your game server before uploading it into MPS. This will help prevent unnecessary costs in case your game server fails to start or is not properly integrated with GSDK. You can download LocalMultiplayerAgent [here](https://github.com/PlayFab/MpsAgent) and check the instructions [here](/services/playfab/multiplayer/servers/locally-debugging-game-servers-and-integration-with-playfab). LocalMultiplayerAgent can also be used for iterative testing/debugging during the development of your game server.
</Note>

## Next step

When using Windows game servers, you have to use the managed Windows container image. So the PlayFab Multiplayer Game Server Build can be uploaded as a zipped file combined with other dependencies (DLL files) during the [Deploy a build](/services/playfab/multiplayer/servers/deploying-playfab-multiplayer-server-builds) process. To help you determine what needs to be included in the zipped file, see [Determining required DLLs](/services/playfab/multiplayer/servers/determining-required-dlls).

When using Linux game servers, you need to [Create and deploy Linux Builds](/services/playfab/multiplayer/servers/deploying-linux-based-builds) and the PlayFab Multiplayer Game Server Build can be included as part of the image. Once your custom image is uploaded, you would be able to [Deploy a build](/services/playfab/multiplayer/servers/deploying-playfab-multiplayer-server-builds).

## See also

* [Determine DLL files to be included in the asset package for Windows servers](/services/playfab/multiplayer/servers/determining-required-dlls)
* [Local debugging and integration for Windows servers](/services/playfab/multiplayer/servers/locally-debugging-game-servers-and-integration-with-playfab)
* [Create and deploy Linux Builds](/services/playfab/multiplayer/servers/deploying-linux-based-builds)


## Related topics

- [Using PlayFab Multiplayer Servers to host multiplayer games](/services/playfab/multiplayer/servers/using-playfab-servers-to-host-games.md)
- [Servers](/services/playfab/multiplayer/servers/index.md)
- [PlayFab Multiplayer Server terms](/services/playfab/multiplayer/servers/server-terms.md)
- [Create and deploy Linux Builds](/services/playfab/multiplayer/servers/deploying-linux-based-builds.md)
- [Enable PlayFab Multiplayer Server feature](/services/playfab/multiplayer/servers/enable-playfab-multiplayer-servers.md)
