Unity-Technologies / com.unity.services.samples.use-cases

The collection of samples in this repo use Unity Gaming Services in a Unity project to demonstrate live gaming operations.
Other
442 stars 103 forks source link

can't run project Serverless Multiplayer Game #16

Open yucelz opened 10 months ago

yucelz commented 10 months ago

1- download the project from GitHub 2- complete all services' general settings (unity project ID etc..) 3- clone the project using the ParrelSync package 4- run the project in a two different editor 5- A remote config file has been created based on the reference document (MULTIPLAYER_GAME_SETTINGS) 6- I can able to see new player-Ids on the cloud Player management tab

and got an exception...

Error::: KeyNotFoundException: Specified number of players (2) not found in Remote Config player options. Unity.Services.Samples.ServerlessMultiplayerGame.RemoteConfigManager.GetConfigForPlayers (System.Int32 numPlayers) (at Assets/Use Case Samples/Serverless Multiplayer Game/Scripts/Menu/RemoteConfigManager.cs:56) Unity.Services.Samples.ServerlessMultiplayerGame.GameSceneManager.ShowInitialGameTime () (at Assets/Use Case Samples/Serverless Multiplayer Game/Scripts/Game/GameSceneManager.cs:96) Unity.Services.Samples.ServerlessMultiplayerGame.GameSceneManager.ShowArenaPanel () (at Assets/Use Case Samples/Serverless Multiplayer Game/Scripts/Game/GameSceneManager.cs:88) Unity.Services.Samples.ServerlessMultiplayerGame.GameSceneManager.Start () (at Assets/Use Case Samples/Serverless Multiplayer Game/Scripts/Game/GameSceneManager.cs:46)

yucelz commented 10 months ago

Solution : use Release 1.10.0 for Environments setting. conclusions: Unity team should update sample document and add description about environments setting based on old version.

https://docs.unity.com/ugs/en-us/solutions/manual/ServerlessMultiplayerGame#set-up-computer-to-test-multiplayer

gpaquin-unity commented 10 months ago

Thanks for the feedback @yucelz, we'll review the documentation.

Eric-Robitaille commented 6 months ago

Hello @yucelz , I'm Eric one of the developers working on this repository.

To confirm my understanding, updating to the version 1.10 of the project resolved your issue, but the documentation is not up to date. We've made some more changes since the 1.10 release, including some documentation changes. Could you take a look at the local documentation for the Serverless Multiplayer Game and let us know if it answers your question? It includes a section on dashboard and environments, plus the required configs.

Thanks!