• FastDL not working..
    26 replies, posted
I have 3 files in my lua/autorun/server , they are all resource.AddFiles, what I don't understand is that when i'm on my server, all models are purple / black. I have them added to my webhost and game server.. Here is a file, tell me what could be wrong, please.. [CODE]--// File Generated By Fox-Warrior's Resources Generator Version 2.06 \\-- if (SERVER) then resource.AddFile( "sound/vehicles/tdmcars/miscsounds/supercharger.wav" ) resource.AddFile( "sound/vehicles/tdmcars/miscsounds/supercharger2.wav" ) resource.AddFile( "sound/vehicles/tdmcars/miscsounds/turbo1.wav" ) resource.AddFile( "sound/vehicles/tdmcars/miscsounds/turbo2.wav" ) resource.AddFile( "sound/vehicles/tdmcars/miscsounds/turbo_blowoff1.wav" ) resource.AddFile( "sound/vehicles/tdmcars/miscsounds/turbo_blowoff2.wav" ) resource.AddFile( "sound/vehicles/tdmcars/miscsounds/turbo_blowoff3.wav" ) resource.AddFile( "sound/vehicles/tdmcars/mas_ghibli/first.wav" ) resource.AddFile( "sound/vehicles/tdmcars/mas_ghibli/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/tdmcars/mas_ghibli/idle.wav" ) resource.AddFile( "sound/vehicles/tdmcars/mas_ghibli/rev.wav" ) resource.AddFile( "sound/vehicles/tdmcars/mas_ghibli/second.wav" ) resource.AddFile( "sound/vehicles/tdmcars/mas_ghibli/third.wav" ) resource.AddFile( "sound/vehicles/tdmcars/mas_ghibli/throttle_off.wav" ) resource.AddFile( "sound/vehicles/tdmcars/airtug/first.wav" ) resource.AddFile( "sound/vehicles/tdmcars/airtug/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/tdmcars/airtug/idle.wav" ) resource.AddFile( "sound/vehicles/tdmcars/airtug/second.wav" ) resource.AddFile( "sound/vehicles/tdmcars/airtug/third.wav" ) resource.AddFile( "sound/vehicles/tdmcars/airtug/throttle_off.wav" ) resource.AddFile( "sound/vehicles/stcars/tires/high.wav" ) resource.AddFile( "sound/vehicles/stcars/tires/low.wav" ) resource.AddFile( "sound/vehicles/stcars/tires/med.wav" ) resource.AddFile( "sound/vehicles/stcars/ram/first.wav" ) resource.AddFile( "sound/vehicles/stcars/ram/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/stcars/ram/idle.wav" ) resource.AddFile( "sound/vehicles/stcars/ram/rev.wav" ) resource.AddFile( "sound/vehicles/stcars/ram/second.wav" ) resource.AddFile( "sound/vehicles/stcars/ram/start.wav" ) resource.AddFile( "sound/vehicles/stcars/ram/stop.wav" ) resource.AddFile( "sound/vehicles/stcars/ram/third.wav" ) resource.AddFile( "sound/vehicles/stcars/ram/throttle_off.wav" ) resource.AddFile( "sound/vehicles/stcars/peel/drive.wav" ) resource.AddFile( "sound/vehicles/stcars/peel/idle.wav" ) resource.AddFile( "sound/vehicles/stcars/peel/start.wav" ) resource.AddFile( "sound/vehicles/stcars/peel/stop.wav" ) resource.AddFile( "sound/vehicles/stcars/peel/throttle_off.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_door.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_first.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_firstgear_rev_loop1.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_fourth_cruise_loop2.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_horn.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_idle_loop1.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_rev_short_loop1.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_second.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_start_loop1.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_stop1.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_third.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_throttle_off_fast_loop1.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_throttle_off_slow_loop2.wav" ) resource.AddFile( "sound/vehicles/sligwolf/bus/bus_turbo_on_loop1.wav" ) resource.AddFile( "sound/vehicles/sgmcars/vswat/first.wav" ) resource.AddFile( "sound/vehicles/sgmcars/vswat/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/sgmcars/vswat/idle.wav" ) resource.AddFile( "sound/vehicles/sgmcars/vswat/rev.wav" ) resource.AddFile( "sound/vehicles/sgmcars/vswat/second.wav" ) resource.AddFile( "sound/vehicles/sgmcars/vswat/start.wav" ) resource.AddFile( "sound/vehicles/sgmcars/vswat/stop.wav" ) resource.AddFile( "sound/vehicles/sgmcars/vswat/third.wav" ) resource.AddFile( "sound/vehicles/sgmcars/vswat/throttle_off.wav" ) resource.AddFile( "sound/vehicles/sgmcars/tires/high.wav" ) resource.AddFile( "sound/vehicles/sgmcars/tires/low.wav" ) resource.AddFile( "sound/vehicles/sgmcars/tires/med.wav" ) resource.AddFile( "sound/vehicles/sgmcars/cseries/first.wav" ) resource.AddFile( "sound/vehicles/sgmcars/cseries/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/sgmcars/cseries/idle.wav" ) resource.AddFile( "sound/vehicles/sgmcars/cseries/rev.wav" ) resource.AddFile( "sound/vehicles/sgmcars/cseries/second.wav" ) resource.AddFile( "sound/vehicles/sgmcars/cseries/start.wav" ) resource.AddFile( "sound/vehicles/sgmcars/cseries/stop.wav" ) resource.AddFile( "sound/vehicles/sgmcars/cseries/third.wav" ) resource.AddFile( "sound/vehicles/sgmcars/cseries/throttle_off.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/first.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/idle.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/rev.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/second.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/siren.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/start.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/stop.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/third.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/throttle_off.wav" ) resource.AddFile( "sound/vehicles/sgmcars/ambulance/throttle_off_fast.wav" ) resource.AddFile( "sound/vehicles/sencars/c7stingray/enginestart.mp3" ) resource.AddFile( "sound/vehicles/sencars/c7stingray/first.wav" ) resource.AddFile( "sound/vehicles/sencars/c7stingray/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/sencars/c7stingray/idle.wav" ) resource.AddFile( "sound/vehicles/sencars/c7stingray/rev.wav" ) resource.AddFile( "sound/vehicles/sencars/c7stingray/second.wav" ) resource.AddFile( "sound/vehicles/sencars/c7stingray/third.wav" ) resource.AddFile( "sound/vehicles/sencars/c7stingray/throttle_off.wav" ) resource.AddFile( "sound/vehicles/lwcars/typhoon/first.wav" ) resource.AddFile( "sound/vehicles/lwcars/typhoon/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/lwcars/typhoon/idle.wav" ) resource.AddFile( "sound/vehicles/lwcars/typhoon/rev.wav" ) resource.AddFile( "sound/vehicles/lwcars/typhoon/second.wav" ) resource.AddFile( "sound/vehicles/lwcars/typhoon/slowdown_highspeed.wav" ) resource.AddFile( "sound/vehicles/lwcars/typhoon/slowdown_slow.wav" ) resource.AddFile( "sound/vehicles/lwcars/typhoon/startup.wav" ) resource.AddFile( "sound/vehicles/lwcars/typhoon/third.wav" ) resource.AddFile( "sound/vehicles/lwcars/quadbike/first.wav" ) resource.AddFile( "sound/vehicles/lwcars/quadbike/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/lwcars/quadbike/idle.wav" ) resource.AddFile( "sound/vehicles/lwcars/quadbike/rev.wav" ) resource.AddFile( "sound/vehicles/lwcars/quadbike/second.wav" ) resource.AddFile( "sound/vehicles/lwcars/quadbike/slowdown.wav" ) resource.AddFile( "sound/vehicles/lwcars/quadbike/startup.wav" ) resource.AddFile( "sound/vehicles/lwcars/quadbike/third.wav" ) resource.AddFile( "sound/vehicles/lwcars/lotus_exiges_roadster/first.wav" ) resource.AddFile( "sound/vehicles/lwcars/lotus_exiges_roadster/fourth_cruise.wav" ) resource.AddFile( "sound/vehicles/lwcars/lotus_exiges_roadster/idle.wav" ) resource.AddFile( "sound/vehicles/lwcars/lotus_exiges_roadster/rev.wav" ) resource.AddFile( "sound/vehicles/lwcars/lotus_exiges_roadster/second.wav" ) resource.AddFile( "s
You don't need it in /server/ if you have the if SERVER then check. Can you post a link to your webhost?
[QUOTE=code_gs;47535042]You don't need it in /server/ if you have the if SERVER then check. Can you post a link to your webhost?[/QUOTE] I put the folder in my lua/autorun , and it fixed it.. for the playermodels. The cars are still not working for some reason, I have tried almost everything. I even put all the cars resource.addfiles in the playermodeldownload.lua ( that was working ) , still doesn't even download it.
Remove the "if (SERVER) then" and of course the "end" the place the file in lua/autorun/server with the file name "workshop.lua" Should work.
[QUOTE=MylesTM;47538279]Remove the "if (SERVER) then" and of course the "end" the place the file in lua/autorun/server with the file name "workshop.lua" Should work.[/QUOTE] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/resource/AddFile]resource.AddFile[/url] is a function that only exists in the server realm, would give out attempt to call unknown global on the client.
It's always worked for me.
as Code_gs already asked, can we get a link to your web host?
[URL="http://plasmagamingweb.site.nfoservers.com/server"]http://plasmagamingweb.site.nfoservers.com/server[/URL]
Doesn't NFO have automated FastDL like other host providers have?
[QUOTE=The Commander;47538864]Doesn't NFO have automated FastDL like other host providers have?[/QUOTE] It has websync and puts everything on the webhost, not sure why I had to link it..
Have you added the fastdl link inside your server.cfg?
[QUOTE=PwndKilled;47538938]Have you added the fastdl link inside your server.cfg?[/QUOTE] Yes it's set as [url]http://plasmagamingweb.site.nfoservers.com/server/[/url]
[QUOTE=ImDesire;47538943]Yes it's set as [url]http://plasmagamingweb.site.nfoservers.com/server/[/url][/QUOTE] and the sv_allowdownload and sv_allowupload to 0?
[QUOTE=James xX;47538944]and the sv_allowdownload and sv_allowupload to 0?[/QUOTE] sv_allowupload 0 sv_allowdownload 1
There's you're problem. sv_allowdownload needs to be 0
[QUOTE=James xX;47539078]There's you're problem. sv_allowdownload needs to be 0[/QUOTE] well shit.. [editline]16th April 2015[/editline] [QUOTE=ImDesire;47539097]well shit..[/QUOTE] Set it to sv_allowdownload 0 , didn't do anything, still not downloading anything.
Can you post a client console log from startup to successfully joining the server
[QUOTE=code_gs;47539840]Can you post a client console log from startup to successfully joining the server[/QUOTE] console.log is too big, it's getting spammed with this Warning: Table downloadables is full Warning: Table downloadables is full Warning: Table downloadables is full Warning: Table downloadables is full Warning: Table downloadables is full Warning: Table downloadables is full
[QUOTE=ImDesire;47540077]console.log is too big, it's getting spammed with this Warning: Table downloadables is full Warning: Table downloadables is full Warning: Table downloadables is full Warning: Table downloadables is full Warning: Table downloadables is full Warning: Table downloadables is full[/QUOTE] You have too much stuff that's resource.AddLuaFile()'d, limit is 8192 AFAIK.
Thanks everyone for your help, it works, but now people are getting stuck at 1 bar when loading in. :P
Probably because you have way too much stuff being sent
you should add the lonewolf/tdm cars via resource.AddWorkshop ([url]http://wiki.garrysmod.com/page/resource/AddWorkshop[/url]). Then you don't have that many resource.AddFile stuff. Generally if you use addons that are available in the workshop use the workshop. It keeps your FastDL small and you dont have to put so many files into the resource.AddFile thing.
Remove your resource files; it's a waste of time to have to recreate or generate a new script any time the data changes... Here: First, make sure FastDL is set up correctly ( it is possible for the files to download to completely unrelated directories among other issues ): [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/fastdl_setup_instructions.lua.html[/url] Next, read and add this: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_downloads_using_recursive_resource_system.lua.html[/url] Next version will support adding workshop items as server-only and automatically add map-related gma files when the correct map is loaded ( it loads all *.gma right now ).. It also supports client-only workshop files by creating an empty ( text file ) gma file in gamemodes/<your gamemode>/content/workshop/* named whatever you want as long as the name contains the workshop digits ( without adding any other digit to the name ). The script will add all content that is located in gamemodes/<your gamemode>/content/* to fastdl as resource.AddSingleFile ( which I find works better than resource.AddFile because resource.AddFile is supposed to add related files but I've had servers not download certain files when using it ) instead of resource.AddFile. Just drop the script in addons and only update your gamemode content folder ( with content ) or addons/ folder with new workshop files... no need to generate a new script each time; the next version, as stated, will include more options. It's also possible that, if you're using resource.AddFile, the generator is adding other files to the list which are already being added ie creating unnecessary entries into the downloads table.
[QUOTE=Acecool;47555799]Remove your resource files; it's a waste of time to have to recreate or generate a new script any time the data changes... Here: First, make sure FastDL is set up correctly ( it is possible for the files to download to completely unrelated directories among other issues ): [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/fastdl_setup_instructions.lua.html[/url] Next, read and add this: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/server_srcds_steamcmd/setting_up_downloads_using_recursive_resource_system.lua.html[/url] Next version will support adding workshop items as server-only and automatically add map-related gma files when the correct map is loaded ( it loads all *.gma right now ).. It also supports client-only workshop files by creating an empty ( text file ) gma file in gamemodes/<your gamemode>/content/workshop/* named whatever you want as long as the name contains the workshop digits ( without adding any other digit to the name ). The script will add all content that is located in gamemodes/<your gamemode>/content/* to fastdl as resource.AddSingleFile ( which I find works better than resource.AddFile because resource.AddFile is supposed to add related files but I've had servers not download certain files when using it ) instead of resource.AddFile. Just drop the script in addons and only update your gamemode content folder ( with content ) or addons/ folder with new workshop files... no need to generate a new script each time; the next version, as stated, will include more options. It's also possible that, if you're using resource.AddFile, the generator is adding other files to the list which are already being added ie creating unnecessary entries into the downloads table.[/QUOTE] Why are you using resource.AddSingleFile? resource.AddSingleFile takes much more lines (and loops) in generation/processing. And besides that if your script generates over 8192 Lines it is useless too (at least i guess cause the limit is 8192 files as far as i know).
I use resource.AddSingleFile instead of resource.AddFile because I know exactly how it works 100% of the time, and besides that the OP is adding a vmt and vtf using resource.AddFile, something which adds associated files so you'd technically only need one of those lines. I use resource.AddSingleFile so each file is processed exactly once instead of allowing a function I know little about and have no access to read to do the task especially since said function has had issues where clients don't get all of the data. The tool generating the resource file shouldn't add the automatically associated / added files which resource.AddFile adds for it to be useful, but it is still cumbersome to have to regenerate a list each time you update data... resource.AddSingleFile has always worked for me and it isn't looping through the files every single frame or even on a timer; it happens once per map load at the start and adds very little time to server processing cost.
Seems like this resource.Add(Single)File thing is based on what you experienced with it on your own. I for myself never had issues and still don't have issues with the resource.AddFile. And like I also said: Maybe he shouldn't add all the models that are available via Workshop to the FastDL cause he can use Steam Workshop to let it download the content and then just puts some content on his FastDL.
[QUOTE=Acecool;47555959]I use resource.AddSingleFile instead of resource.AddFile because I know exactly how it works 100% of the time, and besides that the OP is adding a vmt and vtf using resource.AddFile, something which adds associated files so you'd technically only need one of those lines. I use resource.AddSingleFile so each file is processed exactly once instead of allowing a function I know little about and have no access to read to do the task especially since said function has had issues where clients don't get all of the data. The tool generating the resource file shouldn't add the automatically associated / added files which resource.AddFile adds for it to be useful, but it is still cumbersome to have to regenerate a list each time you update data... resource.AddSingleFile has always worked for me and it isn't looping through the files every single frame or even on a timer; it happens once per map load at the start and adds very little time to server processing cost.[/QUOTE] resource.AddFile is just as efficient as AddSingleFile, but takes less lines of code. Now, if he's using AddFile with every single file, there's absolutely no point and it just looks messier
Sorry, you need to Log In to post a reply to this thread.