Open cantaspinar opened 1 year ago
Unity 2021.3.14f1 Netcode for GameObjects 1.2.0
NetworkManager.Singleton.DisconnectReason returns an empty string when using response.Reason in the ApprovalCheck.
Also, I get this error after setting response.Approved = false;
[Netcode-Server Sender=0] SteamNetworkingSocketsTransport - Can't disconect client, client not connected, clientId: 76561198135128449 UnityEngine.Debug:LogError (object) Unity.Netcode.NetworkLog:LogErrorServerLocal (string,ulong) (at Library/PackageCache/com.unity.netcode.gameobjects@1.2.0/Runtime/Logging/NetworkLog.cs:88) Unity.Netcode.NetworkLog:LogServer (string,Unity.Netcode.NetworkLog/LogType) (at Library/PackageCache/com.unity.netcode.gameobjects@1.2.0/Runtime/Logging/NetworkLog.cs:68) Unity.Netcode.NetworkLog:LogErrorServer (string) (at Library/PackageCache/com.unity.netcode.gameobjects@1.2.0/Runtime/Logging/NetworkLog.cs:52) Netcode.Transports.SteamNetworkingSocketsTransport:DisconnectRemoteClient (ulong) (at Library/PackageCache/com.community.netcode.transport.steamnetworkingsockets@faa058598f/Runtime/SteamNetworkingSocketsTransport.cs:83) Unity.Netcode.NetworkManager:DisconnectRemoteClient (ulong) (at Library/PackageCache/com.unity.netcode.gameobjects@1.2.0/Runtime/Core/NetworkManager.cs:1363) Unity.Netcode.NetworkManager:DisconnectClient (ulong,string) (at Library/PackageCache/com.unity.netcode.gameobjects@1.2.0/Runtime/Core/NetworkManager.cs:2063) Unity.Netcode.NetworkManager:DisconnectClient (ulong) (at Library/PackageCache/com.unity.netcode.gameobjects@1.2.0/Runtime/Core/NetworkManager.cs:2038) Unity.Netcode.NetworkManager/<ApprovalTimeout>d__180:MoveNext () (at Library/PackageCache/com.unity.netcode.gameobjects@1.2.0/Runtime/Core/NetworkManager.cs:1765) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
Unity 2021.3.14f1 Netcode for GameObjects 1.2.0
NetworkManager.Singleton.DisconnectReason returns an empty string when using response.Reason in the ApprovalCheck.
Also, I get this error after setting response.Approved = false;