Facepunch.Steamworks icon indicating copy to clipboard operation
Facepunch.Steamworks copied to clipboard

Improperly configured FacePunch.Steamworks.Posix Unity plugin

Open acidiclight opened this issue 2 years ago • 3 comments

It seems that, although Facepunch.Steamworks lists itself as supporting Linux natively (awesome!), the Unity plugin file for POSIX systems (macOS/Linux) is misconfigured.

After launching the Unity Editor for one of my gamedev projects that uses this library, I noticed that several hundred script compiler errors were preventing me from launching the full editor. Upon reading the logs I found that they were all errors related to missing Steamworks namespaces and undeclared identifiers.

A quick Google search brought up this Unity Answers thread describing the exact same issue.

The suggested fix was to open the Assets/Plugins/Facepunch.Steamworks/Facepunch.Steamworks.Posix plugin and change the "OS" setting under "Platform Configuration" from "OSX" to "Linux."

Doing the above on my project fixed the issue. But perhaps this is something that could be configured by default in future releases? Seems like a good idea to split the Posix plugin into a separate OSX and Linux plugin since Unity seems to only let you select either, not both, for a given plugin.

acidiclight avatar Feb 26 '22 00:02 acidiclight

This happened to me too when opening my Unity project on a Linux machine. I'm not really sure why macOS and Linux are in one plugin, seems like an odd design decision.

rgarlik avatar Mar 06 '22 16:03 rgarlik

Hello, I had the same issue. But in my case I could not edit the Facepunch.Steamworks.Posix to change macOS to Linux. The reason was that I had installed it via Package Manager (git URL). Therefore the files were Package (not in Assets). For those who have the same problem here is how I resolved it:

  1. Move the folder Library/PackageCache/com.community.netcode.transport.facepunch@095d1c78b7 into the Assets folder
  2. Edit the Facepunch.Steamworks.Posix file in Inspector to switch from macOS to Linux.
  3. Move back the folder

It should work. Hope this can help.

DasProfGames avatar Jul 30 '22 18:07 DasProfGames

Glad to know I wasn't the only one having the issue.

I almost wonder if the simplest fix would be to just duplicate the Posix plugin, and then have one for macOS and one for Linux.

acidiclight avatar Jul 30 '22 20:07 acidiclight