You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on May 30, 2022. It is now read-only.
btw please add more supported params - like --downloadFormat gmaextract
this would be very useful for some games, for example, for the Garrys mod, such a payload makes the steamworkshopdownloader.io automatically unpack the .gma {"publishedFileId":282498239,"collectionId":null,"hidden":false,"downloadFormat":"gmaextract","autodownload":false}
@Be1zebub sounds interesting, I think all the files of the workshop come in .zip? the .gma file will be inside the zip, I suppose. Where you found the gmaextract parameter in steamworkshopdownloader.io? if I implement that input parameter I would like to add all options in the readme like gmaextractraw . . .
Any way auto-decompress the download zip I think it wouldnt be too useful, what do you think?
the steamworkshopdownloader.io with the downloadFormat:"raw" payload param downloads the .zip archive with .gma file inside. .gma is a special format that is used for addons in Garrys mod, in fact it is just a .zip with LZMA compression and some metadata (maybe it contains something else, im not sure).
if you change downloadFormat from raw to gmaextract, then steamworkshopdownloader.io will download .gma from the gmod steam workshop, then extract downloaded file contents and put it in .zip archive.
thus, when downloading, you will receive real addon files packed in .zip archive, not an .gma archive in the .zip archive as you got with downloadFormat:"raw".
I suggest adding the feature to pass your own args to the request payload.
something like: swd https://steamcommunity.com/sharedfiles/filedetails/?id=2456881554 --downloadFormat gmaextract --hidden false
Activity
SegoCode commentedon Jan 19, 2022
@Be1zebub sounds interesting, I think all the files of the workshop come in
.zip? the.gmafile will be inside the zip, I suppose. Where you found thegmaextractparameter in steamworkshopdownloader.io? if I implement that input parameter I would like to add all options in the readme likegmaextractraw. . .Any way auto-decompress the download zip I think it wouldnt be too useful, what do you think?
Be1zebub commentedon Jan 19, 2022
the
steamworkshopdownloader.iowith thedownloadFormat:"raw"payload param downloads the.ziparchive with.gmafile inside..gmais a special format that is used for addons in Garrys mod, in fact it is just a.zipwithLZMAcompression and some metadata (maybe it contains something else, im not sure).if you change
downloadFormatfromrawtogmaextract, thensteamworkshopdownloader.iowill download.gmafrom the gmod steam workshop, then extract downloaded file contents and put it in.ziparchive.thus, when downloading, you will receive real addon files packed in
.ziparchive, not an.gmaarchive in the.ziparchive as you got withdownloadFormat:"raw".I suggest adding the feature to pass your own args to the request payload.
something like:
swd https://steamcommunity.com/sharedfiles/filedetails/?id=2456881554 --downloadFormat gmaextract --hidden falseit would also be cool if swd recognized workshop ids with several patterns:
https://steamcommunity.com/sharedfiles/filedetails/?id=XXXXX
https://steamcommunity.com/sharedfiles/filedetails/*/XXXXX
https://steamcommunity.com/sharedfiles/filedetails/XXXXX
XXXXX
in chrome dev tools requests log
SegoCode commentedon Jan 20, 2022
I have been test the option to extract in steamworkshopdownloader.io
Test with several games, all send
rawparameter except Garry's Mod, looking at the changelog, I see this:February 2, 2020 - A Small Update: Fixed GMA Extraction for Files Uploaded After The Latest Garry's Mod Update.It may only exist the parameter extration for Garry's Mod?
Be1zebub commentedon Jan 21, 2022
idk about other games, but I think that some of them also have specific formats for storing addons.
SegoCode commentedon Jan 24, 2022
check new release, added
--downloadFormatfor optional parameter 👌I keep this issue open for new parameter suggestions.