get rid of content/ in front of all of resource.AddFile
Oh shit, didn't realize the generator I used added 'content/' to it. lol
Thanks alot F0x_Resources_Generator
Edit: Are you sure content/ is the problem. Cause here is my directory [I]C:\gmod\darkrp\garrysmod\gamemodes\DarkRP\content\materials[/I]
[editline]23rd January 2016[/editline]
[QUOTE=Ztiep;49592038]get rid of content/ in front of all of resource.AddFile[/QUOTE]
Worked. Thanks
Cool glad it worked :D
Also, disable sv_allowdownload. That's not for FastDL, and going to cause any files that you don't send to the clients to be downloaded SUPER slow.
[QUOTE=code_gs;49592145]Also, disable sv_allowdownload. That's not for FastDL, and going to cause any files that you don't send to the clients to be downloaded SUPER slow.[/QUOTE]
Also it is usually a good idea and install Something like Spray Mesh [url]https://facepunch.com/showthread.php?t=1451605[/url] (not sure if you already have it) for sprays so you have sv_allowupload set to 0. Just another small little thing. Then your clients can also use things like youtube videos as sprays.
[QUOTE=code_gs;49592145]Also, disable sv_allowdownload. That's not for FastDL, and going to cause any files that you don't send to the clients to be downloaded SUPER slow.[/QUOTE]
Alright, thank you! (:
[editline]23rd January 2016[/editline]
[QUOTE=Ztiep;49592332]Also it is usually a good idea and install Something like Spray Mesh [url]https://facepunch.com/showthread.php?t=1451605[/url] (not sure if you already have it) for sprays so you have sv_allowupload set to 0. Just another small little thing. Then your clients can also use things like youtube videos as sprays.[/QUOTE]
I use to have spray mesh, but I forgot to add it again. Thank you! (:
[QUOTE=code_gs;49592145]Also, disable sv_allowdownload. That's not for FastDL, and going to cause any files that you don't send to the clients to be downloaded SUPER slow.[/QUOTE]
sv_allowdownload is completely disregarded when sv_downloadurl is set, as is net_maxfilesize
I am not using FastDL btw, just using resource.AddFile in lua/autorun/server
I have not setup sv_downloadurl yet :P
[QUOTE=Banana Lord.;49593688]sv_allowdownload is completely disregarded when sv_downloadurl is set, as is net_maxfilesize[/QUOTE]
I thought it still fell back on sv_allowdownload for files not on the server; good to know. You learn something new every day.
[QUOTE=code_gs;49594403]I thought it still fell back on sv_allowdownload for files not on the server; good to know. You learn something new every day.[/QUOTE]
No sir, it'll just make two HTTP requests (one to the BZ2 version of the file, one to the uncompressed) and move on regardless. sv_downloadurl does not control anything with FastDL but there used to be security concerns where the client could request the server send config files and such if it were enabled. FastDL also ignores file size limits so you can put massive maps like Evo City on it.
Sorry, you need to Log In to post a reply to this thread.