Hello, I have multiple addons on my server, but had them all subscribed. I recently added one I wasn't subscribed to and I didn't download it when joining. How do you set it up so the players download the maps and addons?
You're going to have to extract the contents and upload them to FastDL. I don't think garry appreciates linking to the gma extractors but a quick Google search will find what you need.
I have put this into my server.cfg:
sv_downloadurl "http://198.12.64.34/Mynameonmyhosterfastdl/orangebox/garrysmod/"
sv_allowdownload 0
sv_allowupload 0
Then I tried putting this directly under it:
function AddDir(dir) // Recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("../"..dir.."/*")
for _, fdir in pairs(list) do
if fdir != ".svn" then // Don't spam people with useless .svn folders
AddDir(dir.."/"..fdir)
end
end
for k,v in pairs(file.Find(dir.."/*", true)) do
resource.AddFile(dir.."/"..v)
end
end
AddDir("orangebox/garrysmod/")
But it said that they were unknown commands in console?
Does it matter if I have other things in server.cfg?
I personally have never seen anyone put scripts like that in their server.cfg. The poster above suggested that you use a .gma extractor to unpack your addons and then upload the unpacked addon to the proper folders on your fast download server. Thus allowing your clients to download them upon connecting to your server. In my server.cfg sv_allowdownload is set to 1 and my fast download works great.
So, all you did was use this:
sv_downloadurl "http://198.12.64.34/Mynameonmyhosterfastdl/orangebox/garrysmod/"
sv_allowdownload 1
sv_allowupload 1
Sorry, you need to Log In to post a reply to this thread.