Force Download Problem

Ok so i am trying to add models to my server and i put all the parts in the correct places and i have my lua auto run file but when i join my server it won’t download the models. Here is the code for the lua file. The max download file size is 300 and none of those are over 100. Does anyone know whats wrong?


function ForceDownloads()
resource.AddFile("maps/rp_downtown_v4_exl.bsp")
resource.AddFile("maps/rp_downtown_v4_exl.bsp.bz2")
resource.AddFile("maps/graphs/rp_downtown_v4_exl.ain")
resource.AddFile("models/humans/nypd1940/male_01.mdl")
resource.AddFile("models/humans/nypd1940/male_02.mdl")
resource.AddFile("models/humans/nypd1940/male_03.mdl")
resource.AddFile("models/humans/nypd1940/male_04.mdl")
resource.AddFile("models/humans/nypd1940/male_05.mdl")
resource.AddFile("models/humans/nypd1940/male_06.mdl")
resource.AddFile("models/humans/nypd1940/male_07.mdl")
resource.AddFile("models/humans/nypd1940/male_08.mdl")
resource.AddFile("models/humans/nypd1940/male_09.mdl")
resource.AddFile("materials/models/humans/nypd1940/cop_sheet.vmt")
resource.AddFile("materials/models/humans/nypd1940/cop_sheet.vtf")
resource.AddFile("materials/models/humans/nypd1940/cop_sheet_n.vtf")
resource.AddFile("materials/models/humans/nypd1940/mip_cpoli1d.vmt")
resource.AddFile("materials/models/humans/nypd1940/mip_cpoli1d.vtf")
resource.AddFile("models/player/adminrpp.mdl")
resource.AddFile("materials/models/player/adminrpp.vmt")
resource.AddFile("materials/models/player/adminrpp.vtf")
resource.AddFile("materials/models/player/adminrpp_glass.vmt")
resource.AddFile("materials/models/player/adminrpp_glass.vtf")
resource.AddFile("materials/models/player/adminrpp_glass_spec.vtf")
resource.AddFile("materials/models/player/adminrpp_height.vtf")
resource.AddFile("materials/models/player/adminrpp_normal.vtf")
resource.AddFile("addons/Admin_Police/materials/models/player/adminrpp/adminrpp_normal.vtf")
resource.AddFile("addons/Admin_Police/materials/models/player/adminrpp/adminrpp_height.vtf")
resource.AddFile("addons/Admin_Police/materials/models/player/adminrpp/adminrpp_glass_spec.vtf")
resource.AddFile("addons/Admin_Police/materials/models/player/adminrpp/adminrpp_glass.vtf")
resource.AddFile("addons/Admin_Police/materials/models/player/adminrpp/adminrpp_glass.vmt")
resource.AddFile("addons/Admin_Police/materials/models/player/adminrpp/adminrpp.vmt")
resource.AddFile("addons/Admin_Police/materials/models/player/adminrpp/adminrpp.vtf")
resource.AddFile("addons/Admin_Police/models/player/adminrpp.mdl")
end

  1. You don’t need to add maps
  2. The function is never called
  3. You’re adding files wrong. You don’t include “addons/whatever/” in the path (“addons/Admin_Police/models/player/adminrpp.mdl” -> “models/player/adminrpp.mdl”)
  4. net_maxfilesize is capped at 64 and has no affect on FastDL (aka FastDL has no file size limits)

I removed the addons one but it still doesn’t work. Also what do you mean by the function is never called. So why is it these aren’t being downloaded when you join?

You wrapped all of this in a global function called ForceDownloads() but never call it

So can you explain how i can fix this?

[editline]30th September 2013[/editline]

I took everything out and put it as below but it is making downlaod things i already have. I want it to just download the stuff on that when players join and then the next time they join they can just conenct cause they already have it.


resource.AddFile("maps/rp_downtown_v4_exl.bsp")
resource.AddFile("maps/rp_downtown_v4_exl.bsp.bz2")
resource.AddFile("maps/graphs/rp_downtown_v4_exl.ain")
resource.AddFile("models/humans/nypd1940/male_01.mdl")
resource.AddFile("models/humans/nypd1940/male_02.mdl")
resource.AddFile("models/humans/nypd1940/male_03.mdl")
resource.AddFile("models/humans/nypd1940/male_04.mdl")
resource.AddFile("models/humans/nypd1940/male_05.mdl")
resource.AddFile("models/humans/nypd1940/male_06.mdl")
resource.AddFile("models/humans/nypd1940/male_07.mdl")
resource.AddFile("models/humans/nypd1940/male_08.mdl")
resource.AddFile("models/humans/nypd1940/male_09.mdl")
resource.AddFile("materials/models/humans/nypd1940/cop_sheet.vmt")
resource.AddFile("materials/models/humans/nypd1940/cop_sheet.vtf")
resource.AddFile("materials/models/humans/nypd1940/cop_sheet_n.vtf")
resource.AddFile("materials/models/humans/nypd1940/mip_cpoli1d.vmt")
resource.AddFile("materials/models/humans/nypd1940/mip_cpoli1d.vtf")
resource.AddFile("models/player/adminrpp.mdl")
resource.AddFile("materials/models/player/adminrpp.vmt")
resource.AddFile("materials/models/player/adminrpp.vtf")
resource.AddFile("materials/models/player/adminrpp_glass.vmt")
resource.AddFile("materials/models/player/adminrpp_glass.vtf")
resource.AddFile("materials/models/player/adminrpp_glass_spec.vtf")
resource.AddFile("materials/models/player/adminrpp_height.vtf")
resource.AddFile("materials/models/player/adminrpp_normal.vtf")

still that, then it should be good assuming you’re using FastDL, it’s pointing to a web server, and the directory structure and file names match exactly