question

Kaiwen Yu avatar image
Kaiwen Yu asked

How to properly terminate LocalMultiplayerAgent process?

How can I teminate the Powershell LocalMultiplayerAgent process gracefully? Hitting ctrl-c only terminates the LocalMultiplayerAgent process but the game process won't be stopped, and I have to manually terminate it in task manager.

multiplayer
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Kaiwen Yu avatar image
Kaiwen Yu answered

I found a workaround for this. I am using Powershell and make a function like this:

function lma {
  try {
    Remove-Item -r -fo C:\Assets\WindowsContainerLogOutput\PlayFabVmAgentOutput\*\ExtAssets
    cd H:\workspace\Unity\PlayFabVmAgent;
    .\LocalMultiplayerAgent.exe
  }
  finally {
    Stop-Process -Name "XXX" -Confirm
  }
}

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.