Facepunch.Steamworks
Facepunch.Steamworks copied to clipboard
SocketManager NetIdentity SteamId is always 0
Hello, I've created a class derived from SocketManager, then created a normal socket via
SteamNetworkingSockets.CreateNormalSocket<Server>(address);
then I did that
public override void OnConnected(Connection connection, ConnectionInfo info)
{
Console.WriteLine(info.Identity.SteamId.Value);
}
and the output was just 0. Why? How can I get user's steamId? i've also tried doing the same thing in OnConnecting, OnMessage methods, the result was same.
Did you get this fixed? I'm having the same issue.
Is there any update on this? @garrynewman For now, wrapping connections with token-based authorization seems like the only option to authorize clients, which is really stupid even for a bandaid.
There's an issue in ConnectionInfo
line:
public NetIdentity Identity => (NetIdentity) this.address;
I think this is a typo and should be:
public NetIdentity Identity => this.identity;
@garrynewman ^
the data is there I have checked with the debugger.
Have just found this as well. It's not the only issue with Facepunch SteamNetworkingSockets interface. I give up.
Same Problem...
Got it working. I downloaded the newest build from https://github.com/Facepunch/Facepunch.Steamworks/actions used the net46 folder and combined it with the official dlls from valve.
Built from master branch and used the debug net standard 2.1 build that was output, latest facepunch steamworks transport for unity's Netcode For GameObjects, and the steamworks sdk 1.57 dlls and this issue is still happening
Built from master branch and used the debug net standard 2.1 build that was output, latest facepunch steamworks transport for unity's Netcode For GameObjects, and the steamworks sdk 1.57 dlls and this issue is still happening
Facepunch Wiki says to use net46, I don't know how relevant that information still is though.
THE FIX:
- Download the Zip file below
- Go to com.community.netcode.transport.facepunch\Runtime\Facepunch (where the package is installed in your Unity project)
- replace both files with the downloaded ones.
- YOURE GOOD TO GO!
what I did: I downloaded the facepunch.steamworks source code, fixed it and compiled it. you're welcome. Credits to Matze.
THE FIX:
- Download the Zip file below
- Go to com.community.netcode.transport.facepunch\Runtime\Facepunch (where the package is installed in your Unity project)
- replace both files with the downloaded ones.
- YOURE GOOD TO GO!
what I did: I downloaded the facepunch.steamworks source code, fixed it and compiled it. you're welcome. Credits to Matze.
If you know how to fix it then submit a PR. Nobody should be stupid enough to download a random zip from an account that was created solely to post this zip file
THE FIX:
- Download the Zip file below
- Go to com.community.netcode.transport.facepunch\Runtime\Facepunch (where the package is installed in your Unity project)
- replace both files with the downloaded ones.
- YOURE GOOD TO GO!
what I did: I downloaded the facepunch.steamworks source code, fixed it and compiled it. you're welcome. Credits to Matze. Fix SteamID = 0.zip
If you know how to fix it then submit a PR. Nobody should be stupid enough to download a random zip from an account that was created solely to post this zip file
Just scan it on virustotal. Don't see you offering any kind of help here :)