Garry's Mod

Garry's Mod

99 ratings
Workshop Extractor
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
Posted
Updated
7.876 KB
4 Jun, 2022 @ 11:44am
5 Jun, 2022 @ 5:32am
7 Change Notes ( view )

Subscribe to download
Workshop Extractor

Description
My attempt to implement Steam Workshop Downloader in Garry's Mod



Usage:
To download:
OR
workshop_download 2816296516
You can see the progress of downloading in the console.

The addon you downloaded will be on the path:
GarrysMod\garrysmod\data\workshop_downloader\<id>
Part of the files will have a extension .dat, this means that this type of files was blocked by Rubat and cannot be saved, delete .dat extension and that file will be correct.

If you want download only gma file you can add (yes or y):
workshop_download 2816296516 yes

Also you can check list of downloaded files:
workshop_downloaded

And remove all:
workshop_download_clear

And you can change the download folder:
workshop_download_folder <folder path>

Get addon info:
workshop_info <id or url>

Examples:

Developer API:
  • `string` workshop_extractor.FormatWSID( `string` id )
  • `string` workshop_extractor.FormatSizeToMB( `number` size )
  • `string` workshop_extractor.FormatFilePath( `string` path )
  • `boolean` workshop_extractor.Save( `string` save_path, `string` binary_data )
  • `boolean` workshop_extractor.SaveFileClass( `string` save_path, `file_class` file_class, `number` file_size )
  • `boolean` workshop_extractor.SaveInfo( `string` id, `string` save_path )
  • `boolean` workshop_extractor.IsMounted( `string` id )
  • `boolean` workshop_extractor.Save( `string` save_path, `string` binary_data )
  • workshop_extractor.Mount( `string` file_path )
  • workshop_extractor.Download( `string` id, `function` callback )
  • `string` workshop_extractor.CreateFolder( `string` folder_path )
  • workshop_extractor.SimpleDownload( `string` id, `boolean` dont_unpack )
  • workshop_extractor.FolderDelete( `string` folder_path )
  • workshop_extractor.Info( `string` id, `function` callback )

GitHub[github.com]
39 Comments
Killa 20 May, 2024 @ 11:14am 
:missing::missing:
Termin.x 15 Mar, 2023 @ 7:50pm 
hey, can you tell me how to download mods that are old/hidden? like old tfa base mods
dmir 21 Feb, 2023 @ 2:43pm 
well done.
Adam 󠀡 6: 8 Nov, 2022 @ 10:25am 
Damn daniel!
клещ оф кленс 23 Jun, 2022 @ 12:31am 
уморительный аддон
Unknown Developer  [author] 12 Jun, 2022 @ 2:40pm 
:MarisaKirisame:
qper 12 Jun, 2022 @ 10:41am 
that worked, thanks
Unknown Developer  [author] 12 Jun, 2022 @ 1:53am 
try workshop_download_folder "workshop_downloader" in your console
Unknown Developer  [author] 12 Jun, 2022 @ 1:52am 
@shag You have an error in workshop_download_folder (https://i.imgur.com/o5lNyPq.png) , Garry's Mod can write data only in data/ folder and that variable should be the folder relative to data/ for example "my_addons/ downloaded", "downloaded" or default value "workshop_downloader"
qper 11 Jun, 2022 @ 9:07pm 
so, i hate to interrupt, but after trying to download a few addons using this, it's not downloading them. i checked by looking in the folder, empty; i checked using the command workshop_downloaded, also empty. is it me or a bug? here's a link to a screenshot: https://cdn.discordapp.com/attachments/646911320901287976/985390618668826704/unknown.png