Garry's Mod

Garry's Mod

99 个评价
Workshop Extractor
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 快乐
文件大小
发表于
更新日期
7.876 KB
2022 年 6 月 4 日 上午 11:44
2022 年 6 月 5 日 上午 5:32
7 项改动说明 ( 查看 )

订阅以下载
Workshop Extractor

描述
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 条留言
Killa 2024 年 5 月 20 日 上午 11:14 
:missing::missing:
Termin.x 2023 年 3 月 15 日 下午 7:50 
hey, can you tell me how to download mods that are old/hidden? like old tfa base mods
N1X57 2023 年 2 月 21 日 下午 2:43 
well done.
Adam 󠀡 6: 2022 年 11 月 8 日 上午 10:25 
Damn daniel!
мертвое море 2022 年 6 月 23 日 上午 12:31 
уморительный аддон
Unknown Developer  [作者] 2022 年 6 月 12 日 下午 2:40 
:MarisaKirisame:
qper 2022 年 6 月 12 日 上午 10:41 
that worked, thanks
Unknown Developer  [作者] 2022 年 6 月 12 日 上午 1:53 
try workshop_download_folder "workshop_downloader" in your console
Unknown Developer  [作者] 2022 年 6 月 12 日 上午 1:52 
@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 2022 年 6 月 11 日 下午 9:07 
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