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.
Garry's mod fast download/download
-
- New to forums
- Posts: 3
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Fri Apr 26, 2013 3:43 pm
Re: Garry's mod fast download/download
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:
Example:
Code: Select all
sv_downloadurl "http://nezd.site.nfoservers.com/server/"
Re: Garry's mod fast download/download
Yup, the downloadurl is correct. I also deleted the script since it wasn't needed.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/"
Re: Garry's mod fast download/download
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.
Re: Garry's mod fast download/download
There is a guide here on setting up FastDL for Gmod: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.
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