Garry's mod fast download/download

Post Reply
Zack
New to forums
New to forums
Posts: 3
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Apr 26, 2013 3:43 pm

Garry's mod fast download/download

Post by Zack »

Anyone know how to set up FDL/ download on garry's mod ?
I want other people to download my servers models. I have MDL's in my models>player and i have materials for that model in my materials>models Then i have a lua script in lua>autorun>server. The script is

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("models/slash/LOKI/loki.mdl")
AddDir("models/slash/garrus/garrus.mdl")
AddDir("models/slash/legion/legion.mdl")
AddDir("models/slash/tali/talizorah.mdl")

Is there anything wrong with the script or what?
Also, on http://nezd.site.nfoservers.com/server/ it also shows the materials there.
User avatar
Spray
Former staff
Former staff
Posts: 630
Joined: Wed Dec 28, 2011 10:41 pm
Location: Oregon

Re: Garry's mod fast download/download

Post by Spray »

You don't need to use a script to setup Fast Download. Just make sure that you have your sv_downloadurl setup correctly in your server.cfg.

Example:

Code: Select all

sv_downloadurl "http://nezd.site.nfoservers.com/server/"
Zack
New to forums
New to forums
Posts: 3
Joined: Fri Apr 26, 2013 3:43 pm

Re: Garry's mod fast download/download

Post by Zack »

Spray223 wrote:You don't need to use a script to setup Fast Download. Just make sure that you have your sv_downloadurl setup correctly in your server.cfg.

Example:

Code: Select all

sv_downloadurl "http://nezd.site.nfoservers.com/server/"
Yup, the downloadurl is correct. I also deleted the script since it wasn't needed.
xXSammiXx
New to forums
New to forums
Posts: 9
Joined: Mon Apr 22, 2013 8:48 am

Re: Garry's mod fast download/download

Post by xXSammiXx »

I am having the same issue getting people to download the models I add. Is there a Guide somewhere or someone that could add me on steam and help talk me thru it. Maybe I am not putting something in right. I really really really need help guys.I have posted before and no one responded so.
User avatar
Spray
Former staff
Former staff
Posts: 630
Joined: Wed Dec 28, 2011 10:41 pm
Location: Oregon

Re: Garry's mod fast download/download

Post by Spray »

xXSammiXx wrote:I am having the same issue getting people to download the models I add. Is there a Guide somewhere or someone that could add me on steam and help talk me thru it. Maybe I am not putting something in right. I really really really need help guys.I have posted before and no one responded so.
There is a guide here on setting up FastDL for Gmod:
http://maurits.tv/data/garrysmod/wiki/w ... x70e8.html

There is Knowledgebase Article here for forcing file downloads for the client: http://www.nfoservers.com/forums/viewto ... =65&t=7337
Post Reply