This module implements steamworks.DownloadUGC
on the server. The implementation roughly mirrors the the Garry's Mod API with a few small exceptions, namely the fact that the second file
argument is not available in the result callback. If the API call fails for any reason, the callback will be executed with a nil value for the path.
require('steamworks')
steamworks.DownloadUGC('workshopid', function(path)
if path then
game.MountGMA(path)
end
end)
Commit builds are available for both windows and linux. Check the actions tab. Check releases for the latest tested release and steam binaries.
To get this to work, you need a more recent version of the steam client. You will need to put this file in $EXECUTABLE_ROOT/bin
, replacing the one that is already there if present. If you fail to do this properly, your server will segfault. You can get a copy of the latest client libraries from the appropriate Steamworks SDK depot or from the releases tab.