FastDL

Hi guys, I was wondering how to set up FastDL on my server. I tried doing it by putting it on my website, setting the sv_downloadurl and adding resource.lua. However I had no luck.

Can somebody give me a overview on how to set up FastDL for materials, models, sounds et cetera?

Thanks in advance.

http://forum.facepunch.com/showthread.php?t=1250283

I followed this and nothing happened. Is resource.lua still needed?

Yes, you still have to tell the server the client needs to download things

In resource.lua do I put the model paths as what they are serverside or on the fastdl server?

The directory structure should be the same on both.

Lets say I have materialx serverside at: addons/boop/materials/materialx
and on fastdl its at: materials/materialx

What one do I put in the resource.lua?

[editline]12th June 2013[/editline]

Any ideas?

bump

Link to my fastDL: http://srpgaming.com/garrysmod/fastdl/

My resouce.lua:


if (SERVER) then

resource.AddFile("models/tdmcars/chev_camzl1.dx80.vtx")
resource.AddFile("models/tdmcars/chev_camzl1.dx90.vtx")
resource.AddFile("models/tdmcars/chev_camzl1.mdl")
resource.AddFile("models/tdmcars/chev_camzl1.phy")
resource.AddFile("models/tdmcars/chev_camzl1.sw.vtx")
resource.AddFile("models/tdmcars/chev_camzl1.vvd")
resource.AddFile("models/tdmcars/gmc_syclone.dx80.vtx")
resource.AddFile("models/tdmcars/gmc_syclone.dx90.vtx")
resource.AddFile("models/tdmcars/gmc_syclone.mdl")
resource.AddFile("models/tdmcars/gmc_syclone.phy")
resource.AddFile("models/tdmcars/gmc_syclone.sw.vtx")
resource.AddFile("models/tdmcars/gmc_syclone.vvd")

resource.AddFile("materials/camarozl1/interior_lod0.vmt")
resource.AddFile("materials/camarozl1/interior_lod0.vtf")
resource.AddFile("materials/camarozl1/lights.vmt")
resource.AddFile("materials/camarozl1/lights.vtf")
resource.AddFile("materials/camarozl1/lights_nrm.vtf")
resource.AddFile("materials/camarozl1/nodamage.vmt")
resource.AddFile("materials/camarozl1/nodamage.vtf")
resource.AddFile("materials/camarozl1/wheel.vmt")
resource.AddFile("materials/camarozl1/wheel.vtf")
resource.AddFile("materials/camarozl1/wheel_nrm.vtf")


resource.AddFile("materials/syclone/interior_lod0.vmt")
resource.AddFile("materials/syclone/interior_lod0.vtf")
resource.AddFile("materials/syclone/lights.vmt")
resource.AddFile("materials/syclone/lights.vtf")
resource.AddFile("materials/syclone/lights_nrm.vtf")
resource.AddFile("materials/syclone/nodamage.vmt")
resource.AddFile("materials/syclone/nodamage.vtf")
resource.AddFile("materials/syclone/wheel.vmt")
resource.AddFile("materials/syclone/wheel.vtf")
resource.AddFile("materials/syclone/wheel_nrm.vtf")

resource.AddFile("scripts/vehicles/TDMCars/syclone.txt")
resource.AddFile("scripts/vehicles/TDMCars/camaraozl1.txt")

resource.AddFile("sound/vehicles/TDMCars/chevelless/Stop.wav")
resource.AddFile("sound/vehicles/TDMCars/chevelless/first.wav")

resource.AddFile("sound/vehicles/TDMCars/chevelless/idle.wav")
resource.AddFile("sound/vehicles/TDMCars/chevelless/rev.wav")
resource.AddFile("sound/vehicles/TDMCars/chevelless/second.wav")
resource.AddFile("sound/vehicles/TDMCars/chevelless/third.wav")
resource.AddFile("sound/vehicles/TDMCars/chevelless/throttle_off.wav")
resource.AddFile("sound/vehicles/TDMCars/chevelless/fourth_cruise.wav")

resource.AddFile("sound/vehicles/TDMCars/syclone/first.mp3")

resource.AddFile("sound/vehicles/TDMCars/syclone/idle.wav")
resource.AddFile("sound/vehicles/TDMCars/syclone/rev.wav")
resource.AddFile("sound/vehicles/TDMCars/syclone/second.mp3")
resource.AddFile("sound/vehicles/TDMCars/syclone/third.mp3")
resource.AddFile("sound/vehicles/TDMCars/syclone/throttle_off.mp3")
resource.AddFile("sound/vehicles/TDMCars/syclone/forth_cruise.wav")



end


Server.cfg:
sv_downloadurl “http://srpgaming.com/garrysmod/fastdl/
sv_allowupload 1
sv_allowdownload 1

What file path do I put in resource.lua - the GMOD servers or FastDL?

BUMP

Your “resource.lua” file would go into you “/lua/autorun/server/” directory.
If you have any more questions, feel free to add me on (STEAM : Koolaidmini) or PM me here on FP.