question

Gart Flores avatar image
Gart Flores asked

PlayFab.Networking not found from PlayFab/UnityGsdk repo

hello, trying to get gsdk working to run a dedicated server from a docker build running Linux-- having trouble getting out of the gates...

tried https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/mps-unity

and README at https://github.com/PlayFab/gsdk/tree/master/UnityGsdk

in recommended AgentListener.cs: using PlayFab.Networking;` is not found

in MultiplayerServerSample: type or namespaces not found:

- UnityEngine.Networking, NetworkMessage, NetworkConnection, MessageBase

are there any updated docs for this / what supported Unity version should I be using ? (currently trying with 2020.3.7f1

Thanks for any help.

multiplayer
2 comments
10 |1200

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

Gart Flores avatar image Gart Flores commented ·

I've also tried https://github.com/PlayFab/MpsSamples/tree/master/UnityMirror

with listed Unity version from readme

  • Unity Engine (tested with 2019.2.18f1)

throws an error on UnityServer/library/expandeditems saying it was serialized with a higher version of Unity

0 Likes 0 ·
Gart Flores avatar image Gart Flores commented ·

following readme from https://github.com/PlayFab/MpsSamples/tree/master/UnityMirror >>

./Setup.ps1 runs [ removed Start-Service docker line and just running manually via docker desktop... ]


LocalMultiplayerAgent.exe found at https://github.com/PlayFab/MpsAgent/releases
^ this immediately closes when ran after ./Setup.ps1

https://github.com/PlayFab/LocalMultiplayerAgent/releases/tag/v0.9.6
MockVmAgent.exe is here ^ but also closes after a few seconds when ran after ./Setup.ps1

./Setup.ps1 throws :

error response from daemon: plugin "nat" not found

@Todo read logs of above - "nat" supposedly removed in older Docker Desktop version?

0 Likes 0 ·
Gart Flores avatar image
Gart Flores answered

[SOLVED] update:

running https://github.com/PlayFab/MpsSamples/tree/master/UnityMirror

client and server builds work tested with Unity 2021.1.7f1

docker wsl2 works

Windows 10 Pro v 20H2

docker desktop 3.3.3

docker engine 20.10.6

docker OS/Arch: windows/amd64

issue thrown running LocalMultiplayerAgent.exe :

CreateComputeSystem: The request is not supported

- solved by uninstalling hyper-v, restarting, re-enabling hyper-v, restarting

LocalMultiplayerAgent.exe ran successfully with heartbeat message.

10 |1200

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

Gart Flores avatar image
Gart Flores answered

ended up working with Unity 2021.1.7f1

1 comment
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.