• resource.AddWorkshp question!
    4 replies, posted
So, I have made a Deathrun server and I added a 30+ map pack. I put in my garrysmod/lua/autorun folder a lua file that makes the client download workshop items. Except since a 30+ map pack (One workshop item) is so large when clients join the game it sends every single file before the client joins which takes a very long time. I was wondering if it is possible to make it so the client only downloads the file of the current map. And everytime the map changes, if the client doesn't have the next map, then they download it. So basically I am trying to make it so the download time is distributive through map changes. Perhaps a custom check to see what map it is and have the client download the map using resource.AddFile() if they don't already have it?
It is supposed to be automatic; ie if you are using a map from the workshop, the client will download it. No need to use resource.AddWorkshop. Now, if you have ALL of the maps in one pack, then the client would need to download the pack ( because it is one file ) before they join the game. It may be better to separate them out.
Downloading maps to clients via workshop never worked for us for some reason. Clients would download map from workshop, and then download the same map from FastDL again anyway.
Just don't use resource.AddWorkshop. Its a piece of shit.
[QUOTE=vigi8;45789922]Downloading maps to clients via workshop never worked for us for some reason. Clients would download map from workshop, and then download the same map from FastDL again anyway.[/QUOTE] If you have the map added via resource.AddWorkshop don't resource.AddFile it, the FastDL won't recognize that you have the workshop version downloaded.
Sorry, you need to Log In to post a reply to this thread.