> ## 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.

# LocalMultiplayerAgent 概觀

> LocalMultiplayerAgent (LMA) 概觀，可在本機測試 PlayFab 多人遊戲伺服器整合，並在不部署至雲端的情況下模擬 GSDK 回應。

LocalMultiplayerAgent (LMA) 是一個協助代理程式，可讓您在本機電腦上測試或執行遊戲伺服器，以加快開發反覆項目。在沒有任何雲端連線的情況下，LMA 可以向遊戲伺服器 SDK (GSDK) 提供模擬回應，並如同在 PlayFab 多人遊戲伺服器 (MPS) 上執行一樣測試您的遊戲伺服器。

以下是您可以使用 LocalMultiplayerAgent 執行的一些範例：

* 驗證 GSDK 與遊戲伺服器的整合。
* 測試與遊戲伺服器的連線
* 對遊戲伺服器執行診斷：每個遊戲工作階段所產生的記錄和設定檔
* 驗證組建設定

## 先決條件

1. 已與 GSDK 整合的遊戲伺服器。\
   GSDK 可協助遊戲伺服器處理序與 MPS 服務之間的雙向通訊。若要了解如何將遊戲伺服器與 GSDK 整合，請參閱[這篇文章](/zh-TW/services/playfab/multiplayer/servers/integrating-game-servers-with-gsdk)。
   本教學課程使用 GitHub 上的 Wrapper 範例。Wrapper 範例包含一個模擬遊戲和 GSDK。
   若要下載範例，請參閱 [PlayFab Wrapper 範例](https://github.com/PlayFab/MpsSamples/tree/main/wrappingGsdk)。

2. LocalMultiplayerAgent (LMA) 工具組。\
   下載最新的[版本](https://github.com/PlayFab/MpsAgent/releases)，並將其解壓縮至所需的資料夾 (例如 C:\PlayFabVmAgent)。

3. \[選用] 安裝 [Windows 版 Docker Desktop](https://docs.docker.com/docker-for-windows/install/)。\
   LMA 可以使用 Windows 版 Docker 對 Linux/Windows 容器遊戲伺服器進行偵錯。
   如果您想要以處理序 (執行可執行的遊戲伺服器) 而非容器的形式執行遊戲伺服器，可以略過此部分。

## 後續步驟

* [以處理序模式執行 LocalMultiplayerAgent](/zh-TW/services/playfab/multiplayer/servers/LocalMultiplayerAgent/run-process-based-gameserver)\
  在處理序模式中，LMA 會執行可執行的遊戲伺服器並直接與其通訊，不需要設定 Docker。\
  不需要具備容器知識——您不需要建立任何在容器中執行的程式。

* [以容器模式執行 LocalMultiplayerAgent](/zh-TW/services/playfab/multiplayer/servers/LocalMultiplayerAgent/run-container-gameserver)\
  在容器模式中，LMA 會執行並測試在 \[Windows/Linux] 容器中執行的遊戲伺服器。


## Related topics

- [使用 LocalMultiplayerAgent 對容器遊戲伺服器進行偵錯](/zh-TW/services/playfab/multiplayer/servers/LocalMultiplayerAgent/run-container-gameserver.md)
- [使用 LocalMultiplayerAgent 對處理序型遊戲伺服器進行偵錯](/zh-TW/services/playfab/multiplayer/servers/LocalMultiplayerAgent/run-process-based-gameserver.md)
- [Wrapper 範例](/zh-TW/services/playfab/multiplayer/servers/wrapper-sample.md)
- [GSDK 專案測試和偵錯](/zh-TW/services/playfab/multiplayer/servers/server-sdks/unreal-gsdk/third-person-mp-example-project-local-deployment-and-debugging.md)
- [在本機對遊戲伺服器進行偵錯以及與 PlayFab 整合](/zh-TW/services/playfab/multiplayer/servers/locally-debugging-game-servers-and-integration-with-playfab.md)
