I haven’t been able to get my mac client to work with Facepunch’s C# wrapper. I think it’s just a matter of finding the right folder structure, so I’m asking if anyone knows where to put the files:
steam_api.dll
steam_api64.dll
libsteam_api.dylib
steam_appid.txt
*everything works fine with the windows build if the files are next to the .exe, but this is not the case on OSX
1 Like
@the1928tommygun Did you ever get this resolved? I’m having the same problem. I posted an issue on the github page , but figured I’d see if you resolved this as well.
Yeah, it seems mac can’t find the steam_api, any work around for this?
Could not load [lib]steam_api.dll/so/dylib
I’ve got Steam achievements for Mac working including in a combined silicon build.
Note in
opened 02:31PM - 29 Aug 21 UTC
Hey,
I'm using Facepunch.Steamworks for my Steam integration for a game I'm … releasing on Windows and macOS. When running the game in the Unity Editor it's connecting with steam fine, unlocking achievements etc.
If I build the game for Windows and upload it to Steamworks and install via Steam it works fine, as well as running it as a standard out of steam game using 480 or my own game Steam ID.
However, when I build the game for macOS, it looks like the .dll isn't being included in the build. I've gone through the .app and the windows build, in the windows build I have the 'Plugins' folder inside Game_Data and can see steam_api64.dll, but nothing in the macOS build.
Anyone else seen this?
Facepunch Steamwork’s creator, garrynewman, said:
But barrykooij created a custom build:
https://github.com/Facepunch/Facepunch.Steamworks/files/11057271/Facepunch.Steamworks.zip
When I installed that zip my code gave the following error:
…error CS0433: The type ‘SteamClient’ exists in both ‘Facepunch.Steamworks.Win32, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘Facepunch.Steamworks.Win64, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’
I fixed it by deleting:
Facepunch.Steamworks.Win32.dll
Facepunch.Steamworks.Win32.pdb
Facepunch.Steamworks.Win32.xml
Then when I set the macOS architecture to “Intel 64-bit + Apple silicon” it halted with the error:
I fixed it by deleting the files in the linux32 folder in facepunch steamworks.
5 Likes
You are awesome! Very helpful, it works, thanks
Thank you for saving my life! It works well!