• Can't get force download to work. (resource.AddSingleFile)
    6 replies, posted
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\numpad.vmt" ) resource.AddSingleFile( "materials\beer\wiremod\numpad.vtf" ) resource.AddSingleFile( "materials\beer\wiremod\targetfinder.vmt" ) resource.AddSingleFile( "materials\beer\wiremod\targetfinder.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: [url]http://www.facepunch.com/forumdisplay.php?f=65[/url]
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.
[QUOTE=DatMeg;25267557]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.[/QUOTE] 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.
[QUOTE=zassadgh2;25267978]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.[/QUOTE] 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.
[QUOTE=DatMeg;25268117]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.[/QUOTE] 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]
Sorry, you need to Log In to post a reply to this thread.