Steamworks FFI

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Steamworks FFI

Post by ivan »

Just tested the library on Ubuntu and it worked fine. I can't test every Linux distribution out there, but I can release a patch if you figure out what is causing this issue.
For starters I recommend making sure that your Steam client is up to date and running. Also check that you have the appropriate binaries. I recently upgraded the library to Steamworks v1.51 so make sure you have the latest "libsteam_api.so" file. Check how everything is packaged too. If you have Love installed systemwide then you have to make sure the correct version of "libsteam" is loaded as well. Good luck!
Teo434
Prole
Posts: 11
Joined: Mon Apr 27, 2020 12:21 am

Re: Steamworks FFI

Post by Teo434 »

I'm going to try that, And if it helps, the error is trying to load the libsteam_api.so in the completely wrong place, "(user)/snap/love/26/.steam/sdk/libsteam_api.so"
Teo434
Prole
Posts: 11
Joined: Mon Apr 27, 2020 12:21 am

Re: Steamworks FFI

Post by Teo434 »

Thank you! It seems as if reinstalling both the ffi and the sdk did the trick.
And also, I'm now getting this error wich I also had gotten testing it on windows:

Code: Select all

Error: main.lua:89: attempt to concatenate upvalue 'totalugc' (a table value)
stack traceback:
	[string "boot.lua"]:777: in function '__concat'
	main.lua:89: in function 'draw'
	[string "boot.lua"]:618: in function <[string "boot.lua"]:594>
	[C]: in function 'xpcall'
This is the love2d demo on bitbucket, the code that causes this is

Code: Select all

    -- UGC we may have subscribed to and installed
    if myugc and totalugc then
      lg.print("ugc:"..myugc.."/"..totalugc, 0, 128)
    end
This might be because I'm using spacewar as the appid, but it might also be this:

Code: Select all

      steam.queryUGC("recent", 1, 10, function(list, total)
        totalugc = total
      end)
Thanks for the help!

slight edit: yeah, just making it be lg.print("ugc:"..#myugc.."/"..#totalugc, 0, 128) works.
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Steamworks FFI

Post by ivan »

Ok good catch there. This was changed a while ago but I forgot to update the example script.
The callback function now returns a status upfront so:

Code: Select all

      steam.queryUGC("recent", 1, 10, function(ok, list, total)
        assert(ok, "query failed")
        totalugc = total
      end)
Also found a couple of mistakes in the documentation:
https://2dengine.com/?p=sworks
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Steamworks FFI

Post by ivan »

Please note that at this time we are retiring the sworks-ffi library.
Thank you for all of your support!
MrFariator
Party member
Posts: 548
Joined: Wed Oct 05, 2016 11:53 am

Re: Steamworks FFI

Post by MrFariator »

Out of curiosity, was there any particular reason? Might be a bit extreme to take the repo down, too.
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Steamworks FFI

Post by ReFreezed »

I'm also curious. I wish I had pulled any recent changes as I only have an old copy of the repo locally.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Steamworks FFI

Post by ivan »

Thank you for the comments. We stopped doing business with Valve so I cannot support this project.
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Steamworks FFI

Post by ReFreezed »

You didn't just end your support for the tool - you took destructive action and made things worse for other people who still are "doing business with Valve". Are you no longer doing business with other developers who happen to be releasing their games on Steam either? You could've just archived the repo, or literally done nothing, if you didn't intend to update it anymore. Removing it from existence just seem very rash and selfish.

Sorry for this nasty reply, but this is just upsetting.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Steamworks FFI

Post by ivan »

Hello ReFreezed,
I try to help out other developers just like you do with your open source libraries, but I am not obligated to do so.
The Steamworks SDK is a closed source commercial project so you can contact Valve if you need help with their SDK.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests