Hello,
my last server i made was back in 2017 I think and you can really imagine how shitty it was xDDD. With no Lua experience I managed to make a server but closed the server after 1 week or so.
Currently I'm getting into Lua more and more, but not in the things with downloads via the workshop .
But back to the topic: my question:
When you are using workshop download, do you need an download.lua?
After all I will use FastDL throgh Apache2, but this quetions is following me all the time.
Yeah, I mean automaticly via the server. Sorry that I didn't include that information.
Something needs to mark which addons should be downloaded by the clients. Ideally this would be done by the addon itself.
No.
So if I read all right:
Made collection and added TDMCars in there and put the id into my start.sh
Made an download.lua in /lua/autorun/server/ with resource.AddWorkshop("xxx") for each addon in the collection.
FastDL: Made resource.AddFile("xx") for every other addons that aren't in the collection and aren't .lua
Is this right?
because you can't use two download options
You can.
You need to mark only the addons that need downloading, not all of them.
Lua only addons do not need downloading.
So is it possible to download automaticly all my addons like M9K (with models, etc in FastDL) and the whole workshop collection (automaticly)?
When yes, it would be really nice.
Your workshop collection is already automatically downloaded on server start.
Client downloads are obviously have to be manually chosen since you have an 8000 limit and not all files need sending.
That being said, you have the power of Lua at your side, you can code whatever logic you want in terms of how you add files, and which methods to use, FastDL or WorkshopDL.
That being said, if an addon exists on workshop, you don't wanna be sending its files over FastDL, and neither should you repack workshop addons into "server content packs".
Sorry, I didn't really understood this.
Okay, I already answerd the most of my understanding problem with this Garrysmod
But can I do 2 downloads in 1?
That means when a player joins he automaticly downloads the collection AND thw fastdl?
Yes you can. What Rubat wanted to say is that if an addon exists on Workshop, there is no point in having the files from that addon in fastdl, fastdl is for stuff that isnt on workshop pretty much, but the decision is up to you (the server owner)
Ah okay, thanks!
Sorry, you need to Log In to post a reply to this thread.