• Fast Download refuses to do its job
    16 replies, posted
Hello, We have a custom gamemode that has 800+ files the client needs to download. These files are not on the workshop or anything and are custom. We have all the required files setup to be downloaded in a resources.lua file. On connect the files do not download and therefore everything is an error. Resources.lua Located at: /garrysmod/lua/autorun Config details: sv_downloadurl "http://XXX.XXX.XXX.XXX/dl" sv_allowupload 1 sv_allowdownload 1 Any help?
What is your sv_downloadurl set to?
[url]http://XXX.XXX.XXX.XXX/dl[/url] That is not a valid url. Post a valid one. Don't worry, any player on your server can get that information using his console anyway. Also, check your console for errors when joining a server.
sv_downloadurl "http://107.191.48.126/dl/" sv_allowupload 1 sv_allowdownload 1 Have tried with and without ending /. No errors in console.
Give us some example filenames that clients should be downloading as well.
I mean in the clients console. And post a few lines ( for files that are not downloading ) from your resource file so I can check if it is possible to access those files on your web server.
Why are sv_allowdownload and upload set to 1?
[QUOTE=skatehawk11;45548733]For me I get a Forbidden error saying I don't have access to it. You need to remove that so it can be accessed.[/QUOTE] Some hosts block it so people using web browsers can't access it, but it will still work in game.
@Code_gs Been playing around with them setting from 0 to 1 same results. -- View the entire resource file at: [url]http://108.61.242.210/dl/resources.lua[/url] As for the forbidden, I have the .htaccess file to block the directory listing. The actual downloads work. Example: [url]http://107.191.48.126/dl/maps/gm_aftermath_rc1a.bsp[/url] EDIT*: Users console shows no errors relating textures. Just sound bits that don't matter. Example: Failed to load sound "snork\snorkscream.wav", file probably missing from disk/repository
Remove the slash from the resources.lua before the material. Example: /materials and the models.
[url]http://108.61.242.210/dl/sound/snork/snorkscream.wav[/url] [url]http://108.61.242.210/dl/sound/snork/snorkscream.wav.bz2[/url] Neither of these files exist.
They should be set to 0; they are not needed for FastDL and are just exploitable.
@Willox That 108 ip is a different server than the one I said which is:107.191.48.126 At any rate I could care less about the sounds. The models and materials are what I need to work right now. -- Can anyone confirm on removing the / before each entry? *EDIT*: This is why I am trying to get the files to download: [url]http://cloud-4.steampowered.com/ugc/575651636765252081/C02DCA1185AA6E8B078658BB9AB0BA55A497B659/[/url]
Yes.
Yeah the download filter won't allow paths beginning with slashes. All-hail its protective powers.
And that was the problem! Works just fine now. Thanks! [editline]31st July 2014[/editline] Okay, it all downloads now but it seems none of it is being used. All of the models are all errors still. When I take the fast dl content and throw it in the addons folder it all works just fine. [editline]31st July 2014[/editline] Nvm Fixed it.
Sorry, you need to Log In to post a reply to this thread.