Hi everyone, So I talked to one of my friends and he helped me get some files downloaded, but i recently added tons of files that needed to be downloaded and rather then me having to add 1 file at a time to my forcedownloads.lua i was wondering if there is a way i can choose one for such as /gamemodes/slebuild/ and then the clients download everything from there.
Please reply soon.
-Jacklin Grenade.
[QUOTE=skatehawk11;45519214]Have you tried using a workshop collection?[/QUOTE]
He wants the clients to download it, not the server.
For folders, you can use the resource.AddDir located at [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index5809.html[/url]
Make sure you don't do anything gamemodes/sledbuild/content/materials/random.vtf
In that case it would be materials/random.vtf
[QUOTE=Chimpanzee;45520093]He wants the clients to download it, not the server.
For folders, you can use the resource.AddDir located at [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index5809.html[/url]
Make sure you don't do anything gamemodes/sledbuild/content/materials/random.vtf
In that case it would be materials/random.vtf[/QUOTE]
That's deprecated, use resource.AddFile instead.
Here's a [URL="http://svenskunganka.com/tutorials/other/setup-a-fastdl-for-garrys-mod.html"]guide[/URL] for you.
Thank you, both of you. You've really helped out. I Used Sven's method and that worked fine, took a while to get all the files into my forcedownloads.lua but nether the less it works.
ok So i've been using Svenskunganka's method through at the day at its done brilliant, now i have a problem and the same method could be used but it would suck the life out of me. I have a addon and need clients to download the files, my problem? the addon contains 407 file. 407! is there anyway other then having to add each file 1 by one? because its killing me.
[QUOTE=Jacklin_G;45527467]ok So i've been using Svenskunganka's method through at the day at its done brilliant, now i have a problem and the same method could be used but it would suck the life out of me. I have a addon and need clients to download the files, my problem? the addon contains 407 file. 407! is there anyway other then having to add each file 1 by one? because its killing me.[/QUOTE]
You don't have to add each file 1 by 1, use [URL="http://facepunch.com/showthread.php?t=904405"]Fox Warrior's Resource Generator[/URL]. I listed it on the tutorial aswell, so you must've missed that part.
[QUOTE=Svenskunganka;45527711]You don't have to add each file 1 by 1, use [URL="http://facepunch.com/showthread.php?t=904405"]Fox Warrior's Resource Generator[/URL]. I listed it on the tutorial aswell, so you must've missed that part.[/QUOTE]
I did check your link and managed to follow it up to the part of compressing which I couldn't make any sense of. I have been compressing my files to bzip2 is this correct?
That is correct, compressing them into .bzip2 decreases file sizes quite a bit.
[QUOTE=Jacklin_G;45529253]I did check your link and managed to follow it up to the part of compressing which I couldn't make any sense of. I have been compressing my files to bzip2 is this correct?[/QUOTE]
Well that depends if you're using FastDL (sv_downloadurl "http://website.com/fastdl") or WorkshopDL or ServerDL.
You only want to bzip them if you're using FastDL, follow the whole tutorial in that case.
If you're using WorkshopDL, you want to be looking at [URL="http://wiki.garrysmod.com/page/resource/AddWorkshop"]resource.AddWorkshop[/URL] function.
If ServerDL, just follow the 2. Generate lua part on the tutorial.
I cant do the compressing part due to the fact my program only allows me to do each compression 1 file at a time, what program allows me to select the folders and compress?
[QUOTE=Jacklin_G;45533249]I cant do the compressing part due to the fact my program only allows me to do each compression 1 file at a time, what program allows me to select the folders and compress?[/QUOTE]
This: [url]http://tjservers.org/files/bzip.zip[/url]
Sorry, you need to Log In to post a reply to this thread.