Workshop collection to "resource.AddWorkshop" (For all your gmod server needs)
2 replies, posted
So i'll keep this short and clear because i don't know how to write a so called "Thread" but i just wanted to share this piece of tool.
I will explain this to you in 13 easy short steps.
1. Get your collection ID ([url]http://steamcommunity.com/sharedfiles/filedetails/?id=[/url][B][U]276518975[/U][/B])
p.s. the bold underlined number is what you need to get.
2. Go to this url: [url]http://caninerp.phpmysql.nl/addworkshop.php?id=COLLECTION_ID_HERE[/url]
p.s. where it sais "COLLECTION_ID_HERE" put your collection id.
3. It will generate some random gibberish like this:
[QUOTE]resource.AddWorkshop("144982052")
resource.AddWorkshop("128093075")
resource.AddWorkshop("128091208")
it is possible there is generated more...[/QUOTE]
4.What you need to in step 4 is, open notepad or whatever code editor you like to use.
5. On the webpage where all the random gibberish is stated press CTRL+A wich is the keyboard combination for "select all" then CTRL+C (copy)
6. Press CRTL+V in notepad (or any other code editor) that means paste
7. Press CTRL+S (that means "save")
8. save it as "forceworkshopcontentbecauseicanforceit.lua" (you can choose any file name just be sure to put .lua behind it because whe are writing lua)
BE SURE TO SELECT "ALL FORMATS" (Naming can change due windows/mac/linux/etc.. operating system / language)
9. Upload to you FTP here: "SERVER ROOT > garrysmod > lua > autorun > server" and paste it IN the server folder NOWHERE else
10. Sync FastDL files (or if you don't have FastDL don't do it) and restart your server.
11. join your server and whatch your loading screen.
12. Bam! You (and other people) will download now your server collection
13. Be proud and have a good server.
NOTES:
i know this is probably not the most effecient way to make people download addons, but hey! who cares! it works
If gabe decides to change his website, this won't work. tell me here and i will fix it.
If you are intrested in the code itself, ask me.
If you find spelling mistakes. don't be a grammer nazi and deal with it, i'm not english ;)
Please do not "dislike" this post if you don't need this script, thanks.
If you like this, then, you can like it.
I know i said this will be short but it isnt. deal with it again :P
Wow great tool.
You should have probably posted this in the Garry's Mod section
Sorry, you need to Log In to post a reply to this thread.