How to Force Download of files

I run a GMod build server with FASTDL and majority of stuff downloads, except if i want weapon packs that use custom models it wont download the models, nor does it ever download spawn icons for any addons. How can i force download of all folders?

And please don’t refer me to the wiki about fast dl because i can’t understand it.

Learn. (I was going to refer to the wiki.)


(User was banned for this post ("Unhelpful reply" - Benji))

Damit lol, i dont understand where to put the files etc…

resource.AddFile
Search it on the wiki.

… Where do i add the resource.AddFile i have no clue. Server cfg??? clueless

Step by step guide would be nice =)

Figured out >.> (Spent 2 hours adding crap lol)

open notepad add this
resource.AddFile( “Directory” );
Eg.

resource.AddFile( “models/weapons/model.mdl” );

If you want multipul files to download just add more lines Eg
resource.AddFile( “models/weapons/model.mdl” );
resource.AddFile( “models/weapons/model.mdl” );
resource.AddFile( “models/weapons/model.mdl” );
resource.AddFile( “models/weapons/model.mdl” );
resource.AddFile( “models/weapons/model.mdl” );
resource.AddFile( “models/weapons/model.mdl” );
Then save the file as name.lua
and add it to lua\autorun
, simple :slight_smile:

  • Shane

[editline]04:42PM[/editline]

woops didn’t see that he figured it out, Sorry about that guys.

i got that last from the resource file creator, then i saved the list
then pasted it into lua/autorun of my SRCDS
nothing happens when i connect to the server >.< what am i doing wrong?

//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” )

perhaps to much??


when i connect to the server it doesnt give any force download