• resource.addfile not working!
    11 replies, posted
PLEASE, I NEED IT FIXED. I GO TO WORK TOMORROW AND GO ALL THROUGH THE WEEK. SO I CAN'T DO IT THEN! (Doesn't generate a cache to synd for fastdl) So it was working, but now it's not after I changed it. here's what's in it. /lua/autorun/server/cars.lua [CODE]if (SERVER) then resource.AddFile( "sound/vehicles/TDMCars/volvo/first.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/volvo/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/TDMCars/volvo/idle.wav" ) resource.AddFile( "sound/vehicles/TDMCars/volvo/rev.wav" ) resource.AddFile( "sound/vehicles/TDMCars/volvo/second.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/volvo/third.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/volvo/throttle_off.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/van/first.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/van/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/TDMCars/van/idle.wav" ) resource.AddFile( "sound/vehicles/TDMCars/van/second.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/van/start.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/van/third.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/van/throttle_off.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/tt/first.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/tt/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/TDMCars/tt/idle.wav" ) resource.AddFile( "sound/vehicles/TDMCars/tt/second.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/tt/start.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/tt/third.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/tt/throttle_off.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/supra/first.wav" ) resource.AddFile( "sound/vehicles/TDMCars/supra/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/TDMCars/supra/idle.wav" ) resource.AddFile( "sound/vehicles/TDMCars/supra/noshift.wav" ) resource.AddFile( "sound/vehicles/TDMCars/supra/rev.wav" ) resource.AddFile( "sound/vehicles/TDMCars/supra/second.wav" ) resource.AddFile( "sound/vehicles/TDMCars/supra/third.wav" ) resource.AddFile( "sound/vehicles/TDMCars/supra/throttle_off.wav" ) resource.AddFile( "sound/vehicles/TDMCars/rx8/first.wav" ) resource.AddFile( "sound/vehicles/TDMCars/rx8/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/TDMCars/rx8/idle.wav" ) resource.AddFile( "sound/vehicles/TDMCars/rx8/noshift.wav" ) resource.AddFile( "sound/vehicles/TDMCars/rx8/second.wav" ) resource.AddFile( "sound/vehicles/TDMCars/rx8/third.wav" ) resource.AddFile( "sound/vehicles/TDMCars/rx8/throttle_off.wav" ) resource.AddFile( "sound/vehicles/TDMCars/gt500/first.wav" ) resource.AddFile( "sound/vehicles/TDMCars/gt500/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/TDMCars/gt500/idle.wav" ) resource.AddFile( "sound/vehicles/TDMCars/gt500/noshift.wav" ) resource.AddFile( "sound/vehicles/TDMCars/gt500/rev.wav" ) resource.AddFile( "sound/vehicles/TDMCars/gt500/second.wav" ) resource.AddFile( "sound/vehicles/TDMCars/gt500/third.wav" ) resource.AddFile( "sound/vehicles/TDMCars/gt500/throttle_off.wav" ) resource.AddFile( "sound/vehicles/TDMCars/dbs/first.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/dbs/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/TDMCars/dbs/idle.wav" ) resource.AddFile( "sound/vehicles/TDMCars/dbs/rev.wav" ) resource.AddFile( "sound/vehicles/TDMCars/dbs/second.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/dbs/start.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/dbs/third.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/dbs/throttle_off.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/bugatti/first.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/bugatti/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/TDMCars/bugatti/idle.wav" ) resource.AddFile( "sound/vehicles/TDMCars/bugatti/rev.wav" ) resource.AddFile( "sound/vehicles/TDMCars/bugatti/second.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/bugatti/start.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/bugatti/third.mp3" ) resource.AddFile( "sound/vehicles/TDMCars/bugatti/throttle_off.mp3" ) resource.AddFile( "models/tdmcars/242turbo.mdl" ) resource.AddFile( "models/tdmcars/auditt.mdl" ) resource.AddFile( "models/tdmcars/bugattiveyron.mdl" ) resource.AddFile( "models/tdmcars/dbs.mdl" ) resource.AddFile( "models/tdmcars/gmcvan.mdl" ) resource.AddFile( "models/tdmcars/gt500.mdl" ) resource.AddFile( "models/tdmcars/rx8.mdl" ) resource.AddFile( "models/tdmcars/supra.mdl" ) resource.AddFile( "materials/vgui/entities/242turbotdm.vmt" ) resource.AddFile( "materials/vgui/entities/242turbotdm.vtf" ) resource.AddFile( "materials/vgui/entities/auditttdm.vmt" ) resource.AddFile( "materials/vgui/entities/auditttdm.vtf" ) resource.AddFile( "materials/vgui/entities/bugattiveyrontdm.vmt" ) resource.AddFile( "materials/vgui/entities/bugattiveyrontdm.vtf" ) resource.AddFile( "materials/vgui/entities/dbstdm.vmt" ) resource.AddFile( "materials/vgui/entities/dbstdm.vtf" ) resource.AddFile( "materials/vgui/entities/focusrstdm.vmt" ) resource.AddFile( "materials/vgui/entities/focusrstdm.vtf" ) resource.AddFile( "materials/vgui/entities/gmcvantdm.vmt" ) resource.AddFile( "materials/vgui/entities/gmcvantdm.vtf" ) resource.AddFile( "materials/vgui/entities/gt500tdm.vmt" ) resource.AddFile( "materials/vgui/entities/gt500tdm.vtf" ) resource.AddFile( "materials/vgui/entities/mitsu_evoxtdm.vmt" ) resource.AddFile( "materials/vgui/entities/mitsu_evoxtdm.vtf" ) resource.AddFile( "materials/vgui/entities/rx8tdm.vmt" ) resource.AddFile( "materials/vgui/entities/rx8tdm.vtf" ) resource.AddFile( "materials/vgui/entities/supratdm.vmt" ) resource.AddFile( "materials/vgui/entities/supratdm.vtf" ) resource.AddFile( "materials/models/tdmcars/supra/interior_lod0.vmt" ) resource.AddFile( "materials/models/tdmcars/supra/interior_lod0.vtf" ) resource.AddFile( "materials/models/tdmcars/supra/lights.vmt" ) resource.AddFile( "materials/models/tdmcars/supra/lights.vtf" ) resource.AddFile( "materials/models/tdmcars/supra/lights_nrm.vtf" ) resource.AddFile( "materials/models/tdmcars/supra/nodamage.vmt" ) resource.AddFile( "materials/models/tdmcars/supra/nodamage.vtf" ) resource.AddFile( "materials/models/tdmcars/supra/nodamage_nrm.vtf" ) resource.AddFile( "materials/models/tdmcars/supra/wheel.vmt" ) resource.AddFile( "materials/models/tdmcars/supra/wheel.vtf" ) resource.AddFile( "materials/models/tdmcars/supra/wheel1.vmt" ) resource.AddFile( "materials/models/tdmcars/supra/wheel1.vtf" ) resource.AddFile( "materials/models/tdmcars/supra/wheel1_nrm.vtf" ) resource.AddFile( "materials/models/tdmcars/supra/wheel_nrm.vtf" ) resource.AddFile( "materials/models/tdmcars/shared/interior_leather2_dark.vmt" ) resource.AddFile( "materials/models/tdmcars/shared/interior_leather2_dark.vtf" ) resource.AddFile( "materials/models/tdmcars/shared/interior_leather2_dark_nrm.vtf" ) resource.AddFile( "materials/models/tdmcars/shared/interior_leather_dark.vmt" ) resource.AddFile( "materials/models/tdmcars/shared/interior_leather_dark.vtf" ) resource.AddFile( "materials/models/tdmcars/shared/interior_leather_dark_nrm.vtf" ) resource.AddFile( "materials/models/tdmcars/rx8/interior_lod0.vmt" ) resource.AddFile( "materials/models/tdmcars/rx8/interior_lod0.vtf" ) resource.AddFile( "materials/models/tdmcars/rx8/lights.vmt" ) resource.AddFile( "materials/models/tdmcars/rx8/lights.vtf" ) resource.AddFile( "materials/models/tdmcars/rx8/lights_nrm.vtf" ) resource.AddFile( "materials/models/tdmcars/rx8/nodamage.vmt" ) resource.AddFile( "materials/models/tdmcars/rx8/nodamage.vtf" ) resource.AddFile( "materials/models/tdmcars/rx8/nodamage_nrm.vtf" ) resource.AddFile( "materials/models/tdmcars/rx8/wheel.vmt" ) resource.AddFile( "materials/models/tdmcars/rx8/wheel.vtf" ) resource.AddFile( "materials/models/tdmcars/rx8/wheel_nrm.vtf" ) resource.AddFile( "materials/models/tdmcars/gt500/interior_lod0.vmt" ) resource.AddFile( "materials/models/tdmcars/gt500/interior_lod0.vtf" ) resource.AddFile( "materials/models/tdmcars/gt500/lights.vmt" ) resource.AddFile( "materials/models/tdmcars/gt500/lights.vtf" ) resource.AddFile( "materials/models/tdmcars/gt500/lights_nrm.vtf" ) resource.AddFile( "materials/models/tdmcars/gt500/nodamage.vmt" ) resource.AddFile( "materials/models/tdmcars/gt500/nodamage.
Correct me if I'm wrong but don't you put resource.addfile inside your gamemodes init.lua
[QUOTE=Adzter;34987284]Correct me if I'm wrong but don't you put resource.addfile inside your gamemodes init.lua[/QUOTE] You don't have to bud [editline]4th March 2012[/editline] @OP - what exactly is the issue? Are the files not downloading even though they pop up? Do they not even pop up? And you do realize that once you download them once it won't make you download them again, right?
[QUOTE=Banana Lord.;34989732]You don't have to bud [editline]4th March 2012[/editline] @OP - what exactly is the issue? Are the files not downloading even though they pop up? Do they not even pop up? And you do realize that once you download them once it won't make you download them again, right?[/QUOTE] They don't download. But I got a different pack and they worked. Doesn't make much sense...
[QUOTE=Tibbers;34989962]They don't download. But I got a different pack and they worked. Doesn't make much sense...[/QUOTE] Do they show up as "downloading xxx" on the loading screen or do they not even attempt to download?
[QUOTE=Banana Lord.;34990080]Do they show up as "downloading xxx" on the loading screen or do they not even attempt to download?[/QUOTE] No attempt, it doesn't generate a cache so you know somethings wrong lol
[QUOTE=Tibbers;34997988]No attempt, it doesn't generate a cache so you know somethings wrong lol[/QUOTE] okay, so you aren't adding them correctly then. is your server on windows or linux
Windows. It works with other vehicle packs though, just not this one, which is what I want lol
are you sure the path is correct? you could probably use something recursive for this
[QUOTE=Banana Lord.;34999449]are you sure the path is correct? you could probably use something recursive for this[/QUOTE] I have, with multiple packs by the author. So weird:(
Where is the lua file located?
You need to put the files in their respective folder, if these files are in an addon, it won't work. You need to put the sounds in their folder in sounds and materials in their materials folder. It should work.
Sorry, you need to Log In to post a reply to this thread.