Force Download doesn't work in ANY way.

title says most of it.
i used the res generator
i used resourcesmart from helix, didnt work. the commands didnt work.
i used DL list, mod from Gmod.org didnt work
simpledownload v1. didnt work
manualy added a code into autorun->server-> with the standard download code and the dirs i want.

//Generated by Kogitsune’s Resource Generator
resource.AddSingleFile( “Models/Weapons/v_crowbar.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/v_crowbar.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/v_crowbar.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/v_crowbar.sw.vvd” )
resource.AddSingleFile( “Models/Weapons/v_crowbar.xbox.vtx” )
resource.AddSingleFile( “Models/Weapons/v_hammer.mdl” )
resource.AddSingleFile( “Models/Weapons/v_hoe.mdl” )
resource.AddSingleFile( “Models/Weapons/v_keyboard.mdl” )
resource.AddSingleFile( “Models/Weapons/v_plank.mdl” )
resource.AddSingleFile( “Models/Weapons/v_pot.mdl” )
resource.AddSingleFile( “Models/Weapons/v_shovel.mdl” )
resource.AddSingleFile( “Models/Weapons/v_sledgehammer.mdl” )
resource.AddSingleFile( “Models/Weapons/w_axe.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/w_axe.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/w_axe.mdl” )
resource.AddSingleFile( “Models/Weapons/w_axe.phy” )
resource.AddSingleFile( “Models/Weapons/w_axe.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/w_axe.vvd” )
resource.AddSingleFile( “Models/Weapons/W_crowbar.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/W_crowbar.phy” )
resource.AddSingleFile( “Models/Weapons/W_crowbar.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/W_crowbar.vtx” )
resource.AddSingleFile( “Models/Weapons/w_crowbar.vvd” )
resource.AddSingleFile( “Models/Weapons/W_crowbar.xbox.vtx” )
resource.AddSingleFile( “Models/Weapons/w_fryingpan.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/w_fryingpan.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/w_fryingpan.mdl” )
resource.AddSingleFile( “Models/Weapons/w_fryingpan.phy” )
resource.AddSingleFile( “Models/Weapons/w_fryingpan.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/w_fryingpan.vvd” )
resource.AddSingleFile( “Models/Weapons/w_hammer.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/w_hammer.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/w_hammer.mdl” )
resource.AddSingleFile( “Models/Weapons/w_hammer.phy” )
resource.AddSingleFile( “Models/Weapons/w_hammer.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/w_hammer.vvd” )
resource.AddSingleFile( “Models/Weapons/w_hoe.mdl” )
resource.AddSingleFile( “Models/Weapons/w_keyboard.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/w_keyboard.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/w_keyboard.mdl” )
resource.AddSingleFile( “Models/Weapons/w_keyboard.phy” )
resource.AddSingleFile( “Models/Weapons/w_keyboard.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/w_keyboard.vvd” )
resource.AddSingleFile( “Models/Weapons/w_plank.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/w_plank.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/w_plank.mdl” )
resource.AddSingleFile( “Models/Weapons/w_plank.phy” )
resource.AddSingleFile( “Models/Weapons/w_plank.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/w_plank.vvd” )
resource.AddSingleFile( “Models/Weapons/w_pot.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/w_pot.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/w_pot.mdl” )
resource.AddSingleFile( “Models/Weapons/w_pot.phy” )
resource.AddSingleFile( “Models/Weapons/w_pot.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/w_pot.vvd” )
resource.AddSingleFile( “Models/Weapons/w_shovel.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/w_shovel.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/w_shovel.mdl” )
resource.AddSingleFile( “Models/Weapons/w_shovel.phy” )
resource.AddSingleFile( “Models/Weapons/w_shovel.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/w_shovel.vvd” )
resource.AddSingleFile( “Models/Weapons/w_sledgehammer.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/w_sledgehammer.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/w_sledgehammer.mdl” )
resource.AddSingleFile( “Models/Weapons/w_sledgehammer.phy” )
resource.AddSingleFile( “Models/Weapons/w_sledgehammer.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/w_sledgehammer.vvd” )
resource.AddSingleFile( “Models/Weapons/v_sledgehammer/v_sledgehammer.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/v_sledgehammer/v_sledgehammer.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/v_sledgehammer/v_sledgehammer.mdl” )
resource.AddSingleFile( “Models/Weapons/v_sledgehammer/v_sledgehammer.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/v_sledgehammer/v_sledgehammer.vvd” )
resource.AddSingleFile( “Models/Weapons/v_shovel/v_shovel.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/v_shovel/v_shovel.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/v_shovel/v_shovel.mdl” )
resource.AddSingleFile( “Models/Weapons/v_shovel/v_shovel.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/v_shovel/v_shovel.vvd” )
resource.AddSingleFile( “Models/Weapons/v_pot/v_pot.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/v_pot/v_pot.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/v_pot/v_pot.mdl” )
resource.AddSingleFile( “Models/Weapons/v_pot/v_pot.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/v_pot/v_pot.vvd” )
resource.AddSingleFile( “Models/Weapons/v_plank/v_plank.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/v_plank/v_plank.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/v_plank/v_plank.mdl” )
resource.AddSingleFile( “Models/Weapons/v_plank/v_plank.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/v_plank/v_plank.vvd” )
resource.AddSingleFile( “Models/Weapons/v_keyboard/v_keyboard.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/v_keyboard/v_keyboard.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/v_keyboard/v_keyboard.mdl” )
resource.AddSingleFile( “Models/Weapons/v_keyboard/v_keyboard.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/v_keyboard/v_keyboard.vvd” )
resource.AddSingleFile( “Models/Weapons/v_hammer/v_hammer.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/v_hammer/v_hammer.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/v_hammer/v_hammer.mdl” )
resource.AddSingleFile( “Models/Weapons/v_hammer/v_hammer.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/v_hammer/v_hammer.vvd” )
resource.AddSingleFile( “Models/Weapons/v_fryingpan/v_fryingpan.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/v_fryingpan/v_fryingpan.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/v_fryingpan/v_fryingpan.mdl” )
resource.AddSingleFile( “Models/Weapons/v_fryingpan/v_fryingpan.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/v_fryingpan/v_fryingpan.vvd” )
resource.AddSingleFile( “Models/Weapons/v_axe/v_axe.dx80.vtx” )
resource.AddSingleFile( “Models/Weapons/v_axe/v_axe.dx90.vtx” )
resource.AddSingleFile( “Models/Weapons/v_axe/v_axe.mdl” )
resource.AddSingleFile( “Models/Weapons/v_axe/v_axe.sw.vtx” )
resource.AddSingleFile( “Models/Weapons/v_axe/v_axe.vvd” )
resource.AddSingleFile( “Materials/Models/Weapons/axe.vmt” )
resource.AddSingleFile( “Materials/Models/Weapons/axe.vtf” )
resource.AddSingleFile( “Materials/Models/Weapons/hammer.vmt” )
resource.AddSingleFile( “Materials/Models/Weapons/hammer.vtf” )
resource.AddSingleFile( “Materials/Models/Weapons/hammer2.vmt” )
resource.AddSingleFile( “Materials/Models/Weapons/hammer2.vtf” )
resource.AddSingleFile( “Materials/Models/Weapons/pot.vmt” )
resource.AddSingleFile( “Materials/Models/Weapons/pot.vtf” )
resource.AddSingleFile( “Materials/Models/Weapons/shovel.vmt” )
resource.AddSingleFile( “Materials/Models/Weapons/shovel.vtf” )
resource.AddSingleFile( “Materials/Models/Weapons/sledge.vmt” )
resource.AddSingleFile( “Materials/Models/Weapons/sledge.vtf” )
resource.AddSingleFile( “Materials/Models/Weapons/v_hoe/hoe.vmt” )
resource.AddSingleFile( “Materials/Models/Weapons/v_hoe/hoe.vtf” )
resource.AddSingleFile( “Materials/Models/Weapons/v_hoe/hoenormal.vtf” )
resource.AddSingleFile( “Materials/Models/Weapons/v_hoe/hoe_normal.vtf” )

didnt work.

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(fdir)
end
end

for k,v in pairs(file.Find("../"..dir.."/*")) do
    resource.AddFile(dir.."/"..v)
end

end

AddDir(“models/weapons”)

didnt work as well.
im becoming frustrated now because it Just Doesnt Work.

Are you using fast download? Fast download caused the same for me. Oh and do they download but wont save?

If you’re using fastdl, make sure they exist on the fastdl server and you have it setup correctly.

no im not using Fastdl, just the standard downloading. no svn server thing
or any webspace thing.
they dont get prompted to download it, neither saving anything.

Are you sure resource.AddSingleFile works? Try resource.AddFile instead

Yea, I was thinking the same. I never heard of resource.AddSingleFile.

Anyways, here’s the, should be atleast, correct code:

[lua]resource.AddFile( “Models/Weapons/v_crowbar.dx80.vtx” )
resource.AddFile( “Models/Weapons/v_crowbar.dx90.vtx” )
resource.AddFile( “Models/Weapons/v_crowbar.sw.vtx” )
resource.AddFile( “Models/Weapons/v_crowbar.sw.vvd” )
resource.AddFile( “Models/Weapons/v_crowbar.xbox.vtx” )
resource.AddFile( “Models/Weapons/v_hammer.mdl” )
resource.AddFile( “Models/Weapons/v_hoe.mdl” )
resource.AddFile( “Models/Weapons/v_keyboard.mdl” )
resource.AddFile( “Models/Weapons/v_plank.mdl” )
resource.AddFile( “Models/Weapons/v_pot.mdl” )
resource.AddFile( “Models/Weapons/v_shovel.mdl” )
resource.AddFile( “Models/Weapons/v_sledgehammer.mdl” )
resource.AddFile( “Models/Weapons/w_axe.dx80.vtx” )
resource.AddFile( “Models/Weapons/w_axe.dx90.vtx” )
resource.AddFile( “Models/Weapons/w_axe.mdl” )
resource.AddFile( “Models/Weapons/w_axe.phy” )
resource.AddFile( “Models/Weapons/w_axe.sw.vtx” )
resource.AddFile( “Models/Weapons/w_axe.vvd” )
resource.AddFile( “Models/Weapons/W_crowbar.dx80.vtx” )
resource.AddFile( “Models/Weapons/W_crowbar.phy” )
resource.AddFile( “Models/Weapons/W_crowbar.sw.vtx” )
resource.AddFile( “Models/Weapons/W_crowbar.vtx” )
resource.AddFile( “Models/Weapons/w_crowbar.vvd” )
resource.AddFile( “Models/Weapons/W_crowbar.xbox.vtx” )
resource.AddFile( “Models/Weapons/w_fryingpan.dx80.vtx” )
resource.AddFile( “Models/Weapons/w_fryingpan.dx90.vtx” )
resource.AddFile( “Models/Weapons/w_fryingpan.mdl” )
resource.AddFile( “Models/Weapons/w_fryingpan.phy” )
resource.AddFile( “Models/Weapons/w_fryingpan.sw.vtx” )
resource.AddFile( “Models/Weapons/w_fryingpan.vvd” )
resource.AddFile( “Models/Weapons/w_hammer.dx80.vtx” )
resource.AddFile( “Models/Weapons/w_hammer.dx90.vtx” )
resource.AddFile( “Models/Weapons/w_hammer.mdl” )
resource.AddFile( “Models/Weapons/w_hammer.phy” )
resource.AddFile( “Models/Weapons/w_hammer.sw.vtx” )
resource.AddFile( “Models/Weapons/w_hammer.vvd” )
resource.AddFile( “Models/Weapons/w_hoe.mdl” )
resource.AddFile( “Models/Weapons/w_keyboard.dx80.vtx” )
resource.AddFile( “Models/Weapons/w_keyboard.dx90.vtx” )
resource.AddFile( “Models/Weapons/w_keyboard.mdl” )
resource.AddFile( “Models/Weapons/w_keyboard.phy” )
resource.AddFile( “Models/Weapons/w_keyboard.sw.vtx” )
resource.AddFile( “Models/Weapons/w_keyboard.vvd” )
resource.AddFile( “Models/Weapons/w_plank.dx80.vtx” )
resource.AddFile( “Models/Weapons/w_plank.dx90.vtx” )
resource.AddFile( “Models/Weapons/w_plank.mdl” )
resource.AddFile( “Models/Weapons/w_plank.phy” )
resource.AddFile( “Models/Weapons/w_plank.sw.vtx” )
resource.AddFile( “Models/Weapons/w_plank.vvd” )
resource.AddFile( “Models/Weapons/w_pot.dx80.vtx” )
resource.AddFile( “Models/Weapons/w_pot.dx90.vtx” )
resource.AddFile( “Models/Weapons/w_pot.mdl” )
resource.AddFile( “Models/Weapons/w_pot.phy” )
resource.AddFile( “Models/Weapons/w_pot.sw.vtx” )
resource.AddFile( “Models/Weapons/w_pot.vvd” )
resource.AddFile( “Models/Weapons/w_shovel.dx80.vtx” )
resource.AddFile( “Models/Weapons/w_shovel.dx90.vtx” )
resource.AddFile( “Models/Weapons/w_shovel.mdl” )
resource.AddFile( “Models/Weapons/w_shovel.phy” )
resource.AddFile( “Models/Weapons/w_shovel.sw.vtx” )
resource.AddFile( “Models/Weapons/w_shovel.vvd” )
resource.AddFile( “Models/Weapons/w_sledgehammer.dx80.vtx” )
resource.AddFile( “Models/Weapons/w_sledgehammer.dx90.vtx” )
resource.AddFile( “Models/Weapons/w_sledgehammer.mdl” )
resource.AddFile( “Models/Weapons/w_sledgehammer.phy” )
resource.AddFile( “Models/Weapons/w_sledgehammer.sw.vtx” )
resource.AddFile( “Models/Weapons/w_sledgehammer.vvd” )
resource.AddFile( “Models/Weapons/v_sledgehammer/v_sledgehammer.dx80.vtx” )
resource.AddFile( “Models/Weapons/v_sledgehammer/v_sledgehammer.dx90.vtx” )
resource.AddFile( “Models/Weapons/v_sledgehammer/v_sledgehammer.mdl” )
resource.AddFile( “Models/Weapons/v_sledgehammer/v_sledgehammer.sw.vtx” )
resource.AddFile( “Models/Weapons/v_sledgehammer/v_sledgehammer.vvd” )
resource.AddFile( “Models/Weapons/v_shovel/v_shovel.dx80.vtx” )
resource.AddFile( “Models/Weapons/v_shovel/v_shovel.dx90.vtx” )
resource.AddFile( “Models/Weapons/v_shovel/v_shovel.mdl” )
resource.AddFile( “Models/Weapons/v_shovel/v_shovel.sw.vtx” )
resource.AddFile( “Models/Weapons/v_shovel/v_shovel.vvd” )
resource.AddFile( “Models/Weapons/v_pot/v_pot.dx80.vtx” )
resource.AddFile( “Models/Weapons/v_pot/v_pot.dx90.vtx” )
resource.AddFile( “Models/Weapons/v_pot/v_pot.mdl” )
resource.AddFile( “Models/Weapons/v_pot/v_pot.sw.vtx” )
resource.AddFile( “Models/Weapons/v_pot/v_pot.vvd” )
resource.AddFile( “Models/Weapons/v_plank/v_plank.dx80.vtx” )
resource.AddFile( “Models/Weapons/v_plank/v_plank.dx90.vtx” )
resource.AddFile( “Models/Weapons/v_plank/v_plank.mdl” )
resource.AddFile( “Models/Weapons/v_plank/v_plank.sw.vtx” )
resource.AddFile( “Models/Weapons/v_plank/v_plank.vvd” )
resource.AddFile( “Models/Weapons/v_keyboard/v_keyboard.dx80.vtx” )
resource.AddFile( “Models/Weapons/v_keyboard/v_keyboard.dx90.vtx” )
resource.AddFile( “Models/Weapons/v_keyboard/v_keyboard.mdl” )
resource.AddFile( “Models/Weapons/v_keyboard/v_keyboard.sw.vtx” )
resource.AddFile( “Models/Weapons/v_keyboard/v_keyboard.vvd” )
resource.AddFile( “Models/Weapons/v_hammer/v_hammer.dx80.vtx” )
resource.AddFile( “Models/Weapons/v_hammer/v_hammer.dx90.vtx” )
resource.AddFile( “Models/Weapons/v_hammer/v_hammer.mdl” )
resource.AddFile( “Models/Weapons/v_hammer/v_hammer.sw.vtx” )
resource.AddFile( “Models/Weapons/v_hammer/v_hammer.vvd” )
resource.AddFile( “Models/Weapons/v_fryingpan/v_fryingpan.dx80.vtx” )
resource.AddFile( “Models/Weapons/v_fryingpan/v_fryingpan.dx90.vtx” )
resource.AddFile( “Models/Weapons/v_fryingpan/v_fryingpan.mdl” )
resource.AddFile( “Models/Weapons/v_fryingpan/v_fryingpan.sw.vtx” )
resource.AddFile( “Models/Weapons/v_fryingpan/v_fryingpan.vvd” )
resource.AddFile( “Models/Weapons/v_axe/v_axe.dx80.vtx” )
resource.AddFile( “Models/Weapons/v_axe/v_axe.dx90.vtx” )
resource.AddFile( “Models/Weapons/v_axe/v_axe.mdl” )
resource.AddFile( “Models/Weapons/v_axe/v_axe.sw.vtx” )
resource.AddFile( “Models/Weapons/v_axe/v_axe.vvd” )
resource.AddFile( “Materials/Models/Weapons/axe.vmt” )
resource.AddFile( “Materials/Models/Weapons/axe.vtf” )
resource.AddFile( “Materials/Models/Weapons/hammer.vmt” )
resource.AddFile( “Materials/Models/Weapons/hammer.vtf” )
resource.AddFile( “Materials/Models/Weapons/hammer2.vmt” )
resource.AddFile( “Materials/Models/Weapons/hammer2.vtf” )
resource.AddFile( “Materials/Models/Weapons/pot.vmt” )
resource.AddFile( “Materials/Models/Weapons/pot.vtf” )
resource.AddFile( “Materials/Models/Weapons/shovel.vmt” )
resource.AddFile( “Materials/Models/Weapons/shovel.vtf” )
resource.AddFile( “Materials/Models/Weapons/sledge.vmt” )
resource.AddFile( “Materials/Models/Weapons/sledge.vtf” )
resource.AddFile( “Materials/Models/Weapons/v_hoe/hoe.vmt” )
resource.AddFile( “Materials/Models/Weapons/v_hoe/hoe.vtf” )
resource.AddFile( “Materials/Models/Weapons/v_hoe/hoenormal.vtf” )
resource.AddFile( “Materials/Models/Weapons/v_hoe/hoe_normal.vtf” )[/lua]

I’m guessing that’s the issue:
http://luasearch.overvprojects.nl/index.php?searchtext=cat:resource

It is a real function and is what it should be using in the case of a generator ( so only those exact files are sent ).

**[Resource.AddSingleFile

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Resource.AddSingleFile)**

is sv_allowdownload 1?

That search isn’t really reliable anymore, since a lot of the new functions are missing.

used this code and Sv_allowdownloads 1, in server console, client console and the Admin Rcon console. didnt work >.<

And you are certain to have sv_downloadurl “” somewhere in your cfg?

I had this earlier, I have no clue how I fixed it. I remember messing with the allowup/download cvars and restarting a lot.

If you use ULX, in the ULIB data folder there is a file called downloads.txt, if you add folders to it they should download.

Wich Cfg, didnt find it in any, i assume Server.cfg?
if so, its not in there.
now im starting to get hope again :D. please continue

Just play around with it until it works. :smile:

sv_allowdownload 1
net_maxfilesize 9999 (testing)
sv_downloadurl “”

I think thats all download related convars.

isn’t Sv_downloadurl for Fast DL?
(i DON’T use fast Dl)
where do i put net_maxfilesize, where can i find it in the CFG’s?

If you set sv_downloadurl “”, it disables FastDL :slight_smile:

Add it to either game.cfg or server.cfg