Hello, I’m sure many of you come here, not completely sure of what DL method is best to use.
I have to recommend that you try to get as much content as you can from the workshop (textures, models, etc), as this generally allows the user to have a faster load in speed to your server.
I will walk you through both of these methods.
- To start, you should have a workshop collection, containing all the addons/textures you wish your players to download on join. E.g.
- You will want to copy the ‘ID’ of the workshop collection; You do this by copying this section of the URL.
- You now should visit here where you will be able to put you workshop collection ID into the box and press “Get Collection”
- The website will then display you a preview of your workshop.lua file, you should then hit “Download this resources.lua file”
- You should then rename the
- You should then upload said
workshop.luafile to your server, in
- Sync the FastDL by selecting “Intelligent FastDL” under “Tools” in your Game panel
- On the same page, copy the piece of code that the panel gives you
- Navigate to
garrysmod/cfg/server.cfgand place the said piece of code anywhere in the file, on a new line.
- Although, you need to select what files you wish to download for this; you can see the file structure if you goto the link given here
- You will most likely be greeted with an index like so
- Now you need to find the file(s) in which you are wanting FastDL, let’s say for example you wanted to FastDL this file; you would right click and click “Copy Link Location” ( or " Copy link address")
- You then want to make a resource.lua file located here:
- Within that file, you want to write
resource.AddFile( "*PASTE THE LINK LOCATION YOU COPIED EARLIER -- EXCLUDING EVERYTHING BEFORE, AND INCLUDING THE SERVER ID")
resource.AddFile("materials/models/hands/sleeves.vmt") You will also want to remove the .bz2 from the end.
- Now that file will be FastDL’d! You will need to do that line of code for every file you need to FastDL. This is partly the reason why WorkshopDL is preferred, another reason is that WorkshopDL is faster.
Thank you for reading this guide. Some things will most likely be incorrect, so please notify me of the issues and I will sort it out asap.