1. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

v 2.5.x How to Setup Workshop downloads on a Dedicated Server

Discussion in 'Tutorials' started by Colefrick, Dec 3, 2013.

  1. Colefrick

    Colefrick Member

    Welcome to this tutorial.
    Before we continue you must have these things to begin your Workshop Setup.
    • Must have a working GMOD server.
    • Must know how to add, addons to your server.
    • Pre-Made shortcut to your dedicated server launcher.
    • Add-ons ready to add to your workshop collection

    This tutorial we will be using our dedicated server (WINDOWS) and connecting our Workshop Collection to the server to allow easy installation of addons of maps/addons.


    Step #1 Setting up AuthKey
    To setup a AuthKey to allow your Dedicated IP to be allowed to download from the workshop is to go to
    http://steamcommunity.com/dev/apikey
    Copy/Paste your servers IP (No Port)
    Keep your key SECRET/CLASSIFIED to YOU only.
    After doing so go to step #2


    Step #2 Adding the proper configs
    So if you have your shortcut made it should link like this
    C:\GMODSERVERFOLDER\srcds.exe +map gm_construct +maxplayers 32 +gamemode darkrp
    Add the AuthKey:
    -authkey YOUR AUTHKEY HERE
    after doing this add another line called
    +host_workshop_collection (Leave it blank for now)


    Step #3 - Setting up Workshop Collection
    Go to your GAMES LIBRARY then go down to GARRY'S MOD and click the BROWSE WORKSHOP button to access to the Gmod Workshop section.
    Go to COLLECTIONS tab and go to the button on the right side saying CREATE COLLECTION , click this and follow the whole prompt on creating one (Simple so i wont include how to fill it out).
    Now after doing so you must have at least 1 Add-on ready to be added to your collection, if you have an official one add it, if not just add a random one you are subscribed too.


    Step #3 - Adding it all together
    This last step must be followed WORD by WORD to work.
    First, When in your collections official page, go to the URL bar (or right click COPY PAGE URL) and copy the ID (Example -http://steamcommunity.com/sharedfiles/filedetails/?id=COPY THIS).
    Now with this ID number go back to your shortcut and add the id after the +host_workshop_collection like so +host_workshop_collection 200012105

    Lastly, Go to
    C:\GMOD SERVER FOLDER\garrysmod\lua\autorun\server
    Create a new LUA Script (Or Copy/Paste the admin_functions for the .lua thing) and then in the script add resource.AddWorkshop("IDHERE")
    Now to get the resource ID go back to step 3 and do the exact same thing except don't create a new collection, go to your collection and click the add-on you added to the collection and go to its page and copy the URL with the ID in it like you did with the Host_Workshop piece.

    Take the ID and add it in like so;
    YOU MUST DO THIS FOR EACH ADD-ON IN THE COLLECTION

    EXAMPLE:
    resource.AddWorkshop("146623125")
    resource.AddWorkshop("147143185")
    resource.AddWorkshop("200209062")


    F.A.Q (Frequently Asked Questions)
    Question:
    Can you create a How-To Setup FastDL, SVN/FTP?
    Answer:
    No, This is easier and highly used.

    Question:
    Can i use others collections?
    Answer:
    Yes, I wouldn't recommend it because they can add/remove files you may or may not want.

    Question:
    When entering my server the download is taking forever, Why?
    Answer:
    It may be caused by how much content you have in your collection pack, or your Dedicated Server is having a slow connection speed, lastly if none of this seems to be the issue, it could be Your Connection or Steams Connection.

    ((Got a question you want answered? PM Me or Post a reply to this topic.))

    Lastly, Save and start up your server and log in, to test it, i would recommend to unsubscribe to your own collection/add-on and see if they download.

    This was made 100% by Colefrick (Me)
     
    Last edited: Nov 14, 2016
  2. nzkfc

    nzkfc Member

    Can I suggest you rename this thread, it's not FastDL it's workshop collections and this will cause some newish server managers to think it is fastdl when they defiantly don't want workshop collection.

    Just a thought.
     
  3. (FPtje) Atheos

    (FPtje) Atheos Main Developer Staff Member

    Thread title changed.
     
  4. CSi. nogger

    CSi. nogger New Member

    It says unknown command authkey when i do this:
    +authkey key (removed for help) +host_workshop_collection 246947859
     
  5. Bo98

    Bo98 Moderator Staff Member Contributor

    Pretty sure it should be "-authkey" unlike "+authkey" that's mentioned in the tutorial.

    It's definitely a + for host_workshop_collection.
     
  6. KillingPigs123

    KillingPigs123 New Member

    It's -authkey, not +authkey. He made a mistake
     
  7. (FPtje) Atheos

    (FPtje) Atheos Main Developer Staff Member

    Edited post to fix the mistake :)
     
  8. EpicGod

    EpicGod New Member

    followed this yet the server WILL NOT use entites or content from the workshop

    Console
    "fetching workshop addons... no -authkey"
    yes there is one
     
    Last edited: Aug 3, 2014
  9. A few people still cant download my maps. How do I fix this?
     
  10. Colefrick

    Colefrick Member

    This post is old, i went inactive for some reason... I am back though... Will try to update all my tutorials.
     
  11. James Bacon

    James Bacon New Member

    How to I use a workshop map as my default map for my server? I can join the server and use rcon to change the map but I can't make it change when i restart the server. also I ant mak the server be darkrp only :(
     
  12. Pab14567

    Pab14567 Well-Known Member

  13. [PG:SA]De Steen

    [PG:SA]De Steen New Member

  14. Colefrick

    Colefrick Member

    This is such an old thread, I will be reformatting and fixing it up here in a few days.
     
  15. Pork

    Pork New Member

    It doesnt seem to want to work? I have a lua file in SERVER/garrysmod/lua/autorun/server called workshopdownloads.lua and it looks like this:

    resource.AddWorkshop("110286060")
    resource.AddWorkshop("126760786")
    resource.AddWorkshop("216408135")
    resource.AddWorkshop("229922346")
    resource.AddWorkshop("726019683")
    resource.AddWorkshop("169011381")
    resource.AddWorkshop("299444899")
    resource.AddWorkshop("310346568")
    resource.AddWorkshop("793035780")
    resource.AddWorkshop("761381494")
    resource.AddWorkshop("581722338")
    resource.AddWorkshop("263446966")
    resource.AddWorkshop("158061274")
    resource.AddWorkshop("113495466")
    resource.AddWorkshop("185609021")
    resource.AddWorkshop("148628139")
    resource.AddWorkshop("220687225")
    resource.AddWorkshop("184396116")
    resource.AddWorkshop("283211438")
    resource.AddWorkshop("149491742")
    resource.AddWorkshop("776317055")
    resource.AddWorkshop("191412471")
    resource.AddWorkshop("776317055")
    resource.AddWorkshop("246738633")
    resource.AddWorkshop("574428148")
    resource.AddWorkshop("171935748")
    resource.AddWorkshop("104548572")
    resource.AddWorkshop("375416144")
    resource.AddWorkshop("506283460")


    Is there anything im missing here cause it doesnt seem to want to work, people still have errors?
     
  16. Pab14567

    Pab14567 Well-Known Member

    You're making them download way too many files, and you're making them download everything.
    Use actual fastDL on a webserver, not workshopdl if you're going to make them download everything.

    For this method, make them download only the important models, and weapons. ( main weapon base, police models, and civilian models if any, and the map <---- ( huge one ) )
     
  17. Pork

    Pork New Member

    Even so, when I was only getting them to download the map and civilian model, it still didnt actually install it? People were still experiencing errors and thats my current issue, I just chucked everything in there for now so then I can filter things out later on.
     

Share This Page