This is a steam workshop linking addon for garry's mod. This module automatically retrieves the workshop package id's and broadcasts them to the users for further download, saving hours of work digging through the fileids on the steam website.
No need to specify what items you added to your collection. Just head over to the steamworkshop site, create your collection, grab the id of your collection and add the items to your collection. Done.
GMOD Server owners must upload their addons & use the steamworkshop for ingame content management. To specifiy the garrys mod content in your game servers you need to specify the fileid's one by one in a lua file
So it would look something like this:
workshop.lua
resource.AddWorkshop( 12343414 )
resource.AddWorkshop( 456745674 )
resource.AddWorkshop( 574567)
resource.AddWorkshop( 234524327)
resource.AddWorkshop( 44567457)
resource.AddWorkshop( 356956745 )
resource.AddWorkshop( 9689367 )
resource.AddWorkshop( 4456884577 )
resource.AddWorkshop( 24773568456 )
-- ... and so on
With the help of the published addon. This is over! No longer should be an issue!
Create a collection, put your items into your collection on the steam workshop website. Get the collection id, configure as described and profit. :)
Upload the workshoplinker folder to your garrysmod/addons/ folder.
Edit the workshoplinker/lua/weokshop_config.lua file and set the correct collection id.
-- Workshop collection ID (Example link: http://steamcommunity.com/workshop/filedetails/?id=416357984) => 416357984
CollectionID = "416357984";
The collection id can be extracted from the url of the workshop collection:
For the following collection:
http://steamcommunity.com/workshop/filedetails/?id=416357984
The collection id is the following:
416357984
The plugin grabs the items in the specified collection from the steam workshop api and executed the following command:
resource.AddWorkshop( fileid )
Please open an issue.
MIT