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

SocketManager NetIdentity SteamId is always 0 #455

Open
yakikotori opened this issue Jul 3, 2020 · 11 comments
Open

SocketManager NetIdentity SteamId is always 0 #455

yakikotori opened this issue Jul 3, 2020 · 11 comments
Assignees

Comments

@yakikotori
Copy link

yakikotori commented Jul 3, 2020

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.

@garrynewman garrynewman self-assigned this Jul 5, 2020
@m4chado1
Copy link

Did you get this fixed? I'm having the same issue.

@ghost
Copy link

ghost commented Nov 10, 2020

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.

@yuraj11
Copy link

yuraj11 commented Jan 7, 2021

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.

@fghl
Copy link

fghl commented Jun 4, 2021

Have just found this as well. It's not the only issue with Facepunch SteamNetworkingSockets interface. I give up.

@etaxi341
Copy link

etaxi341 commented Jul 6, 2021

Same Problem...

@etaxi341
Copy link

etaxi341 commented Jul 7, 2021

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.

@boxfriend
Copy link

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

@Fel-lek
Copy link

Fel-lek commented Jan 9, 2024

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.

@davidverified
Copy link

davidverified commented Mar 5, 2024

THE FIX:

  1. Download the Zip file below
  2. Go to com.community.netcode.transport.facepunch\Runtime\Facepunch (where the package is installed in your Unity project)
  3. replace both files with the downloaded ones.
  4. 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

@boxfriend
Copy link

THE FIX:

  1. Download the Zip file below
  2. Go to com.community.netcode.transport.facepunch\Runtime\Facepunch (where the package is installed in your Unity project)
  3. replace both files with the downloaded ones.
  4. 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

@davidverified
Copy link

THE FIX:

  1. Download the Zip file below
  2. Go to com.community.netcode.transport.facepunch\Runtime\Facepunch (where the package is installed in your Unity project)
  3. replace both files with the downloaded ones.
  4. 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 :)

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

9 participants