Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SteamNetworkingSocketsTransport with Netcode Connection Approval #211

Open
cantaspinar opened this issue Mar 22, 2023 · 0 comments
Open

Comments

@cantaspinar
Copy link

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/[email protected]/Runtime/Logging/NetworkLog.cs:88)
Unity.Netcode.NetworkLog:LogServer (string,Unity.Netcode.NetworkLog/LogType) (at Library/PackageCache/[email protected]/Runtime/Logging/NetworkLog.cs:68)
Unity.Netcode.NetworkLog:LogErrorServer (string) (at Library/PackageCache/[email protected]/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/[email protected]/Runtime/Core/NetworkManager.cs:1363)
Unity.Netcode.NetworkManager:DisconnectClient (ulong,string) (at Library/PackageCache/[email protected]/Runtime/Core/NetworkManager.cs:2063)
Unity.Netcode.NetworkManager:DisconnectClient (ulong) (at Library/PackageCache/[email protected]/Runtime/Core/NetworkManager.cs:2038)
Unity.Netcode.NetworkManager/<ApprovalTimeout>d__180:MoveNext () (at Library/PackageCache/[email protected]/Runtime/Core/NetworkManager.cs:1765)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant