Fast DL setup?

Hello all. I have a free web host that I’m using, and I’ve uploaded my custom files to it using FTP. I set the download link in my cfg and everything, I’ve had people help me with it, but I can’t seem to get it to work. It doesnt stop to download the files or anything. Could anyone help me out using teamviewer or skype or something? Just comment back for the name

What do you mean by “It doesn’t stop to download the files”?
Even if you have FastDL your custom files will still need to be downloaded.

Yeah, I’m saying it doesn’t say “downloading (file here)”. It doesnt do anything different. It just receives server info and sends client info.

When you add custom files you’ll have to do **[Resource.AddFile

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Resource.AddFile)**
In order to make them download.

Yeah, in an LUA file under lua/autorun? Got it. Still nothing.

Bump?

Create a resource.lua file and put it in garrysmod-lua-auto run-server

Next inside the resource.lua file add all the stuff you want to be downloaded. Here is an example:

if (SERVER) then
resource.AddFile( “models/kane.mdl” )
resource.AddFile( “models/kane_robber.mdl” )
resource.AddFile( “models/kane_robber_gasmask.mdl” )
resource.AddFile( “models/kane_robber_masked.mdl” )
resource.AddFile( “models/lynch_plain.mdl” )
resource.AddFile( “models/lynch_robber.mdl” )
resource.AddFile( “models/lynch_robber_masked.mdl” )
resource.AddFile( “models/player/miku.mdl” )
resource.AddFile( “materials/models/player/hatsunemiku/01_skin.vmt” )
resource.AddFile( “materials/models/player/hatsunemiku/01_skin.vtf” )
resource.AddFile( “materials/models/player/hatsunemiku/black.vmt” )
resource.AddFile( “materials/models/player/hatsunemiku/black.vtf” )
resource.AddFile( “materials/models/player/hatsunemiku/boots.vmt” )
resource.AddFile( “materials/models/player/hatsunemiku/boots.vtf” )
end

You need the if server function and make sure you add end at the bottom
(I got that from http://www.facepunch.com/showthread.php?t=1233117 because I am at school and can’t upload my own file)

A good program that can create a resource.lua file for you is Fox-Warrior’s Resources Generator
Here is that: http://forum.facepunch.com/showthread.php?t=904405

Make sure in your server.cfg that the link is correct and that your server upload and download settings are equal to 1

sv_allowupload “1”
sv_allowdownload “1”

You do NOT want to have sv_allowupload 1 on your server.

It really won’t effect much at all, that’s mainly so people can upload sprays to your server. I see your point though. The main thing you need on is download.

Trying this now, thanks fellas. I’ll let you know how it works.

[editline]5th February 2013[/editline]

I added the if (SERVER) then, and end, to the downloads.lua, that’s all I saw that needed done, and nothing is different at all.

I’m using Dropbox. In my Public folder, I created a “garrysmod” directory. Then I create a random file in the garrysmod folder, right-click it, get public link. Then you go in your server.cfg and type sv_downloadurl “http://dl.dropbox.com/u/(yournumber)/garrysmod/file.txt” then delete the /file.txt part. So it should like - sv_downloadurl “http://dl.dropbox.com/u/(yournumber)/garrysmod” then save it. Don’t forget to add sv_allowupload “1” sv_allowdownload “1”

There is plenty of ways to do it and this is the way I do it. :stuck_out_tongue:

Can you teamviewer with me? Or skype and I’ll share screen? My skype is acealdridge

Dropbox is a bad idea to use for FastDL, they disable your public links if you use too much bandwidth

I still have no idea how to make this work, i’ve been working on it for about a week…

Bump