Can't get force download to work. (resource.AddSingleFile)

I have Wiremod and PHX3 and I want to force download models, sounds and so on, here is how i done it so far:

place …/garrysmod/lua/autorun/server/force_download.lua

my force_download.lua contains:

resource.AddSingleFile( “materials\arrowire\Arrowire.VMT” )
resource.AddSingleFile( “materials\arrowire\Arrowire.vtf” )
resource.AddSingleFile( “materials\arrowire\Arrowire2.VMT” )
resource.AddSingleFile( “materials\arrowire\Arrowire2.vtf” )
resource.AddSingleFile( “materials\beer\wiremod\gate_base.vmt” )
resource.AddSingleFile( “materials\beer\wiremod\gate_base.vtf” )
resource.AddSingleFile( “materials\beer\wiremod\gate_e2.vmt” )
resource.AddSingleFile( “materials\beer\wiremod\gate_e2.vtf” )
resource.AddSingleFile( “materials\beer\wiremod\gate_prongs.vmt” )
resource.AddSingleFile( “materials\beer\wiremod\gate_prongs.vtf” )
resource.AddSingleFile( “materials\beer\wiremod\gps.vmt” )
resource.AddSingleFile( “materials\beer\wiremod\gps.vtf” )
resource.AddSingleFile( “materials\beer\wiremod\hydraulic2.vmt” )
resource.AddSingleFile( “materials\beer\wiremod\hydraulic2.vtf” )
resource.AddSingleFile( “materials\beer\wiremod\keyboard.vmt” )
resource.AddSingleFile( “materials\beer\wiremod\keyboard.vtf” )
resource.AddSingleFile( “materials\beer\wiremod
umpad.vmt” )
resource.AddSingleFile( “materials\beer\wiremod
umpad.vtf” )
resource.AddSingleFile( “materials\beer\wiremod argetfinder.vmt” )
resource.AddSingleFile( “materials\beer\wiremod argetfinder.vtf” )
resource.AddSingleFile( “materials\beer\wiremod\watersensor.vmt” )
resource.AddSingleFile( “materials\beer\wiremod\watersensor.vtf” )
resource.AddSingleFile( “materials\bluredges.vmt” )
resource.AddSingleFile( “materials\bluredges.vtf” )
resource.AddSingleFile( “materials\bmw.vmt” )
resource.AddSingleFile( “materials\bmw.vtf” )
resource.AddSingleFile( “materials\bmw_bump.vtf” )

and goes on for around 15000 lines.

(the addons work fine) just gets error signs for some of the things.

when I try to connect I do not get force to download anything from the phx pack but a few files from wiremod?

searched forums but I could not find any place where it says how to fix this.

thank you…

This is the wrong section:

http://www.facepunch.com/forumdisplay.php?f=65

It would be better just to tell them to download the SVN’s themselves otherwise you are going to loose a lot of players to an excessive download time.

When/If I get force download to work I was thinking of setting up sv_downloadurl so it would could be downloaded faster, and I seriously hate error signs.

That’s understandable, but it would still take a very long time to download since PHX and WIRE contain over 10,000 files, even with FastDL.

I know, but is not fun to play a game where there is a error, and it is mostly for friends.

… now i just hope that the force download is possible, I tried everything.

Use resource.AddFile

[lua]
resource.AddFile(“models\yourmom\poop.mdl”)

[/lua]