• Clients not Downloading.
    2 replies, posted
Hello all. I am having a slight issue with my clients not downloading server content for my custom gamemode. When I started my project I had some friends come and test it. They were able to download the content easily with no issues. I used the following code to allow them to DL it all. resource.AddFile("content/materials/vgui/slayer/hud.png") resource.AddFile("content/materials/vgui/slayer/health.png") resource.AddFile("content/materials/vgui/slayer/timer.png") resource.AddFile("content/materials/vgui/slayer/slayerlogo.png") This is placed in my .init file at the top under the include and AddCSLuaFile section. Recently this has stopped working and new clients aren't able to download any of the content. this is the top of the file structure for my init. AddCSLuaFile("sh_unstuck.lua") AddCSLuaFile("cl_prefixes.lua") AddCSLuaFile("kick.lua") AddCSLuaFile( "shared.lua" ) AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "specialchars.lua" ) AddCSLuaFile( "chatsounds.lua" ) --AddCSLuaFile( "tags.lua" ) --resource.AddFile( string path ) include( 'shared.lua' )--include this include( 'kick.lua' ) include( 'cl_prefixes.lua' ) include( 'specialchars.lua' ) include( 'sh_unstuck.lua' ) include( 'chatsounds.lua' ) -------[[HUD Resources}}---------- resource.AddFile("content/materials/vgui/slayer/hud.png") resource.AddFile("content/materials/vgui/slayer/health.png") resource.AddFile("content/materials/vgui/slayer/timer.png") resource.AddFile("content/materials/vgui/slayer/slayerlogo.png") If you know how to fix this or where I have may of gone wrong please inform me. Many thanks -Duby If your interested in the project have a look here and post your honest thoughts. [url]http://facepunch.com/showthread.php?t=1358724[/url]
Don't put content in the file path; it has to mirror your GMod base directory. Try this. [code]resource.AddFile("materials/vgui/slayer/hud.png") resource.AddFile("materials/vgui/slayer/health.png") resource.AddFile("materials/vgui/slayer/timer.png") resource.AddFile("materials/vgui/slayer/slayerlogo.png")[/code] If that does not work, please post the link to your FastDL host.
Ok fixed all my issue's I was stupid. I did this late at night.. So don't laugh to much. I forgot to add the files into the folder for the download location.
Sorry, you need to Log In to post a reply to this thread.