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

Cannot access SteamNetworkingMessages on Standalone version [Version 20.0] #483

Closed
TeddySJ opened this issue Feb 2, 2022 · 8 comments
Closed

Comments

@TeddySJ
Copy link

TeddySJ commented Feb 2, 2022

Hey, thanks for all the great work on this project!

I'm porting my existing UDP-style network code to the new interface, so using SteamNetworkingMessages seems like the best option.

However, using the Standalone DLLs I can't seem to access the interface at all, even though the callbacks exist.

image

Has that interface not been ported, is there an issue with the standalone package, or is the problem sitting in front of my monitor?

@rlabrecque
Copy link
Owner

Can you recheck this with 20.1.0 ?

https://github.com/rlabrecque/Steamworks.NET/releases/tag/20.1.0

It's definitely generated, and should be included in the package.

@rlabrecque
Copy link
Owner

I did a bit more digging, and it seems like it was just missing from being included in the Standalone project when 20.0.0 was crafted:

<Compile Include="..\com.rlabrecque.steamworks.net\Runtime\autogen\isteamnetworking.cs" Link="Steamworks.NET\autogen\isteamnetworking.cs" />
<Compile Include="..\com.rlabrecque.steamworks.net\Runtime\autogen\isteamnetworkingsockets.cs" Link="Steamworks.NET\autogen\isteamnetworkingsockets.cs" />
<Compile Include="..\com.rlabrecque.steamworks.net\Runtime\autogen\isteamnetworkingutils.cs" Link="Steamworks.NET\autogen\isteamnetworkingutils.cs" />

As of #481 this should be resolved though, and 20.1.0 should have it included.

@TeddySJ
Copy link
Author

TeddySJ commented Feb 13, 2022

For whatever reason, at least the prebuilt binaries don't include them even in 20.1.0.

@TeddySJ
Copy link
Author

TeddySJ commented Feb 13, 2022

Some more info: the class is indeed included in the Steamworks.NET.Standard solution, but not in the Steamworks.NET solution and the prebuild binaries!

@TeddySJ
Copy link
Author

TeddySJ commented Feb 13, 2022

To conclude, I added the include line in the Steamworks.NET project file and could then build the binaries.

@rlabrecque rlabrecque reopened this Feb 13, 2022
@rlabrecque
Copy link
Owner

Yep, good call, I got confused by both the .NET Standard and legacy csproj!

I'll try to see if making the change that #481 made to the regular csproj works as well.

@jolexxa
Copy link

jolexxa commented Apr 11, 2022

I think I'm having this problem with the latest release on GH, linking with the macOS/Linux version of the Steamworks.NET.dll on my mac. Unfortunately, I'm still learning with regards to how packages and imports with regards to .NET so I am open to suggestions.

Edit: per #497, @waltdestler mentioned the DLL from nuget has SteamNetworkingMessages exposed in it. I was able to download the nuget package here, rename it back to a .zip file, and borrow the dll in runtimes/osx-x64/lib/netstandard2.1/Steamworks.NET.dll. After doing that and running dotnet clean && dotnet restore && dotnet build, SteamNetworkingMessages began showing up for me.

@Yazir
Copy link

Yazir commented Jul 11, 2022

Prebuild release package had not been updated since the changes which would fix the issue ; Current prebuilt dlls don't contain SteamNetworkingMessages.

--

Managed to build the project from source and have SteamNetworkingMessages class available

  1. git clone repo
  2. navigate to Standalone
  3. follow README.md instructions

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

4 participants