https://metaplay.io logo
Running multiple instance of the game on one deskt...
# questions-and-feedback
d
Hi, We are developing a multiplayer game (netcode is not with metaplay) and we often have 2 instances of the game running on one desktop. Ideally we would like the two instance to connect to metaplay as different players. We run 2 instance either using the Unity Multiplayer Play Mode or by running a local macos build and the editor. When I run 2 instances using MPPM it seems to run the second editor instance in offline mode whilst the first one is connecting to whatever environment i have active. Is this expected? When I run 1 Editor and a local macos build they both connect to the same server that is selected as active environment. In my previous backend tech I was intercepting the DeviceId Generation to ensure that despite 2 instances of the game running on the same host they can connect to the same server and get given a different playuer id. Can you point me to where Metaplay is generating the DeviceId used to authenticate when not using any social network? Also happy to hear if you have any suggestions about whether other people have faced this issue and how they solved. Thanks Andre
j
Hey! We should already have specific handling for UMPM at
DefaultMetaplayConnectionDelegate.cs:99
, just tested v1.4.3 and it works on my machine (on windows though). If you don't have any customisations to the credential handling then I'd expect it to work :/ One thing you could check is whether the command line args of the second editor has an entry that starts with
-vpId=
.
d
Great. Sounds like what i was after. Will investigate.
That worked. Also just in case someone else reads this in order to run multiple local builds you can do it with --GuestCredentialsSlot xxx