Unity-Technologies / multiplayer-community-contributions

Community contributions to Unity Multiplayer Networking products and services.
MIT License
452 stars 163 forks source link

How do you get the steamId of the user connecting to you? #213

Open final-turn opened 1 year ago

final-turn commented 1 year ago

When a steam user connects to my host, the facepunch transport logs just output "0"

WaGi-Coding commented 1 year ago

It's because of the Facepunch.Steamworks Release being broken, see https://github.com/Unity-Technologies/multiplayer-community-contributions/issues/217

davidverified commented 8 months ago

When a steam user connects to my host, the facepunch transport logs just output "0"

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