Search Unity

Question Is there a way to test the Multiplay-SDK locally?

Discussion in 'Game Server Hosting' started by MidnightGameDeveloper, Nov 7, 2022.

  1. MidnightGameDeveloper

    MidnightGameDeveloper

    Joined:
    Apr 26, 2014
    Posts:
    122
    Is it possible to test the Multiplay-SDK locally in the editor?
    I mean the events like Allocate, Deallocate.

    When I try to run my game in the editor I get the following error:
    "InvalidOperationException: Failed to load ServerConfig. Ensure there is a test server.json file available in the project directory"

    I couldn't find a server.json file for testing in the docs.
    Am I missing something or is this not possible?
     
    krzyszpieta likes this.
  2. danri

    danri

    Unity Technologies

    Joined:
    Jun 21, 2019
    Posts:
    27
    Hello,

    Currently, there is not a way to test the Allocate and Deallocate events in the editor or on a local build. It is something that is being discussed internally, so please keep an eye on the roadmap for updates on this - https://unity.com/roadmap/unity-gaming-services/multiplayer

    In the mean time you can avoid that specific error by creating a server.json file in the local directory where your game server is running. See this docs page for the structure of the file and an example - https://docs.unity.com/game-server-hosting/concepts/server-json.html
     
  3. MidnightGameDeveloper

    MidnightGameDeveloper

    Joined:
    Apr 26, 2014
    Posts:
    122
    Thanks.
     
  4. krzyszpieta

    krzyszpieta

    Joined:
    Jun 14, 2020
    Posts:
    12
    Bump :p
    Just bumping to let you know that there are more people that would love to get this feature work :D
     
    DeathPro likes this.