Page 4 of 5

Re: Steamworks FFI

Posted: Tue Mar 09, 2021 8:35 am
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!

Re: Steamworks FFI

Posted: Tue Mar 09, 2021 3:47 pm
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"

Re: Steamworks FFI

Posted: Tue Mar 09, 2021 5:03 pm
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.

Re: Steamworks FFI

Posted: Wed Mar 10, 2021 6:00 am
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

Re: Steamworks FFI

Posted: Wed Aug 03, 2022 8:12 pm
by ivan
Please note that at this time we are retiring the sworks-ffi library.
Thank you for all of your support!

Re: Steamworks FFI

Posted: Wed Aug 03, 2022 10:11 pm
by MrFariator
Out of curiosity, was there any particular reason? Might be a bit extreme to take the repo down, too.

Re: Steamworks FFI

Posted: Thu Aug 04, 2022 2:30 am
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.

Re: Steamworks FFI

Posted: Thu Aug 04, 2022 5:12 am
by ivan
Thank you for the comments. We stopped doing business with Valve so I cannot support this project.

Re: Steamworks FFI

Posted: Thu Aug 04, 2022 8:16 am
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.

Re: Steamworks FFI

Posted: Thu Aug 04, 2022 9:26 am
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.