WorkshopDL Generator

Since the previous generator is not up anymore, and I decided that I’d make one for the experience of it, I made a
WorkshopDL Generator which (in my opinion) generates more descriptive files.

Pictures:

http://puu.sh/msP96.png

URL:

Thanks so much! I actually went to use the old one today, and didn’t know what to do!

OMG DUDE THAAANK YOUUUUU SOO MUCH’!!!

Otimo trabalho GGG Killer ( Nice job GGG Killer !! )

At least this one looks nice. But, you can just put the collections ID into resource.WorkshopAdd. Works for me.



local function addCollection( collection, retry )
	http.Post( "https://api.steampowered.com/ISteamRemoteStorage/GetCollectionDetails/v1/", 
		{["collectioncount"] = "1",["publishedfileids[0]"] = tostring(collection)},
		function(json)
			local data = util.JSONToTable(json)
			if not data then
				ErrorNoHalt("[Resources] Unable parse API response (id="..collection..")")
				if not retry then
					timer.Simple(2, function() addCollection( collection, true ) end)
				end
				return nil
			end
			for k, v in ipairs( data["response"]["collectiondetails"][1]["children"]) do
				resource.AddWorkshop(v.publishedfileid)
			end
		end,
		function(err)
			ErrorNoHalt("[Resources] Unable to reach Steam API (id="..collection.."), error:"..err)
			if not retry then
				timer.Simple(2, function() addCollection( collection, true ) end)
			end
		end
	)
end
--I'd recommend creating separate workshop collection for clients. So they wouldn't have to download serverside stuff.
addCollection( 200696068 )


[editline]24th March 2016[/editline]

Wasn’t aware of it, meh.

There was an working workshopdl creator/fastdl file creator already from NFO?

Heres the link:
http://www.configcreator.com/create/gmod/resources.lua

And it still works fine for me? (outputted file style is also nearly the same (lua shit, next to it as comment the name).

So wheres the difference? (Except the style)? ;w;



Arguments

 string workshopid

The workshop id of the file. This cannot be a collection.


Yeah, I am guessing it’s true. It was working for me though. I’m sure of it.

There’s like 10,000 of these already -_- + mine was REALLY hacky