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!
Steamworks FFI
Re: Steamworks FFI
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
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:
This is the love2d demo on bitbucket, the code that causes this is
This might be because I'm using spacewar as the appid, but it might also be this:
Thanks for the help!
slight edit: yeah, just making it be lg.print("ugc:"..#myugc.."/"..#totalugc, 0, 128) works.
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'
Code: Select all
-- UGC we may have subscribed to and installed
if myugc and totalugc then
lg.print("ugc:"..myugc.."/"..totalugc, 0, 128)
end
Code: Select all
steam.queryUGC("recent", 1, 10, function(list, total)
totalugc = total
end)
slight edit: yeah, just making it be lg.print("ugc:"..#myugc.."/"..#totalugc, 0, 128) works.
Re: Steamworks FFI
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:
Also found a couple of mistakes in the documentation:
https://2dengine.com/?p=sworks
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)
https://2dengine.com/?p=sworks
Re: Steamworks FFI
Please note that at this time we are retiring the sworks-ffi library.
Thank you for all of your support!
Thank you for all of your support!
-
- Party member
- Posts: 548
- Joined: Wed Oct 05, 2016 11:53 am
Re: Steamworks FFI
Out of curiosity, was there any particular reason? Might be a bit extreme to take the repo down, too.
Re: Steamworks FFI
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."
"If each mistake being made is a new one, then progress is being made."
Re: Steamworks FFI
Thank you for the comments. We stopped doing business with Valve so I cannot support this project.
Re: Steamworks FFI
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.
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."
"If each mistake being made is a new one, then progress is being made."
Re: Steamworks FFI
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.
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.
Who is online
Users browsing this forum: No registered users and 2 guests