Hi,
I was following the instructions on the wiki and also downloaded your example. I setup a scene with a network manager (added the MLAPI component Networking Manager to it), then a cube prefab (added the MLAPI component Networked Object) and then added an HUD object with your NetManagerHud.cs script from your example to do the network configurations.
For some reason, I am getting the error when starting the server:
KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary`2[System.String,System.UInt32].get_Item (System.String key) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150)
MLAPI.NetworkingManagerComponents.NetworkSceneManager.SetCurrentSceneIndex ()
MLAPI.NetworkingManager.Init (MLAPI.NetworkingConfiguration netConfig)
MLAPI.NetworkingManager.StartServer (MLAPI.NetworkingConfiguration netConfig)
NetManagerHud.OnGUI () (at Assets/NetManagerHud.cs:33)
which is the line NetworkingManager.singleton.StartServer(config);
This also happens in the StartClient and StartHost if I press those buttons instead.
Any idea what could be wrong? Tried googling but couldnt really find any help that could be applied here.
I am running Uity 5.6.3p2 (64bit).
Thanks!
Hi,
I was following the instructions on the wiki and also downloaded your example. I setup a scene with a network manager (added the MLAPI component Networking Manager to it), then a cube prefab (added the MLAPI component Networked Object) and then added an HUD object with your NetManagerHud.cs script from your example to do the network configurations.
For some reason, I am getting the error when starting the server:
KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary`2[System.String,System.UInt32].get_Item (System.String key) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150)
MLAPI.NetworkingManagerComponents.NetworkSceneManager.SetCurrentSceneIndex ()
MLAPI.NetworkingManager.Init (MLAPI.NetworkingConfiguration netConfig)
MLAPI.NetworkingManager.StartServer (MLAPI.NetworkingConfiguration netConfig)
NetManagerHud.OnGUI () (at Assets/NetManagerHud.cs:33)
which is the line NetworkingManager.singleton.StartServer(config);
This also happens in the StartClient and StartHost if I press those buttons instead.
Any idea what could be wrong? Tried googling but couldnt really find any help that could be applied here.
I am running Uity 5.6.3p2 (64bit).
Thanks!