• Steam Workshop Collection - Downloading map when it changes, not when you join
    8 replies, posted
I want to use the workshop for downloading maps because I cannot afford paying an extra $20 for a FastDL. But the problem is that it will try downloading the map when you join the server for the first time, and I want it to download when it's changing to the map. Is there anyway to make it download while it's changing map or is it just not possible. Any help is appreciated.
No. FastDL is the only way to make specific maps download on map change.
I could do with an explanation on how garry's automatic workshop map downloading works. Let's say you have gm_SomeRandomMap on your server. How does the game decide what workshop entry to download? Does it download every map stored on your server? Does the server itself package together all of your maps and put them on the workshop for users to download?
No, it relies on resource.AddWorkshop to tell the user what to download from the workshop, just like how FastDL relies on resource.AddFile on what to download. The only difference is that FastDL will send maps to the client on map change. Workshop treats map files on the workshop as a normal addon.
Hmm, this isn't a debate here. I'm trying to look for some help. So is it possible to make it download from the workshop before it's changing maps.
No. You have to download them all at once when you first join the server, as I said already.
[QUOTE=code_gs;43411908]No. You have to download them all at once when you first join the server, as I said already.[/QUOTE] Maybe, depending on how it works, you could make something to detect a map change, and then resource.AddWorkshop the next map. Dunno, just brainstorming here. (I generally avoid Workshop like the plague, so I don't know too much about it.)
Have a go with Example 2 on [URL="http://wiki.garrysmod.com/page/resource/AddWorkshop"]Resource.Addworkshop[/URL] [QUOTE]Adds the current map if it's an addon. When clients join, they will only download the current map. Put this inside a lua file in /lua/autorun/server/ ...[/QUOTE]
As far as I'm aware of, if the server is using the workshop edition of the map, the client will only download that version. If it changes to another workshop based map, the same will happen again. So basically all you want are workshop maps on your server, anything else will require a bit of manipulation for resource.AddWorkshop or to have a FastDL.
Sorry, you need to Log In to post a reply to this thread.