Open KeesToukam opened 2 years ago
Hi overriding the following methods Solved part of the issue.
public override void OnServerConnect(NetworkConnection nConn)
{
int cId = nConn.connectionId;
int hId = nConn.hostId;
Debug.Log("Here on the Server: Client" + "" + cId + "Connected to " + "" + hId);
}
public override void OnServerDisconnect(NetworkConnection nConn)
{
int cId = nConn.connectionId;
int hId = nConn.hostId;
Debug.Log("Here on the Server a Client has dissapeared: Client" + "" + cId + "lost connection from" + hId);
// Grid.SetToNull(netConn); //Will have to keep track of connections? //Implement a method to keep track of connections
NetworkServer.DestroyPlayersForConnection(nConn);
}
public override void OnClientConnect(NetworkConnection nConn)
{
int cId = nConn.connectionId;
int hId = nConn.hostId;
Debug.Log("Here on the Client: Client" + "" + cId + "Connected to " + "" + hId);
}
public override void OnClientDisconnect(NetworkConnection nConn)
{
int cId = nConn.connectionId;
int hId = nConn.hostId;
Debug.Log("Here on the Client the Server has disappeared: Client" + "" + cId + "lost connection from" + "" + hId);
StopClient();
//TODO
//seek a new server
//using your own code launch your DiscoveryClient
}
The next part of the issue was solved by not using your VRPNTrackScript for head position but using optitrack streaming client.
The issue might also just be Optitrack Motive's lack of support for VRPN which make it difficult to use your VRPN scripts.
Since I resolved the issue, I will Close it. If you think it might help someone, please don't delete the reported issue
Hi Guys, I have cloned your repository for a Project. We want to use UniCAVE with our custom Projection System. For this purpose we tested the SingleMonitorVRPN Prefab on Unity 2021 and setup everything according to the UNICAVE Scripts Documentation. We however still have a problem on the VRPN side of things and we will like a little help of yours to know if maybe you already encountered the following error:
ClientDisconnected due to error: Timeout UnityEngine.Networking.NetworkCallbacks:LateUpdate () (at Library/PackageCache/com.unity.multiplayer-hlapi@1.1.1/Runtime/NetworkCallbacks.cs:11)
Any suggestions on how to resolve this connection issue will be highly appreciated!
The console Log looks as follows:
Here is the actuall setup: