• Adding workshop items force players joining to DL?
    4 replies, posted
Quick question, I've searched but found no answers. If I add a map to a workshop collection and have the server set up to point to the workshop collection (with API set up ofc), when it switches to that map, does it force players to download those workshop maps? I have the map set up in a workshop collection and when the server changed to that map, players were kicked off due to missing map. Do I need to manually extract the .bsp file and put it on my FastDL server for it to work for others, or should the workshop way work?
Well, if the workshop colletion isn't working, I'd place it on FastDL [editline]20th September 2014[/editline] But i think that the workshop way works, since i used to use it on another server that i was part of
Use [URL="http://wiki.garrysmod.com/page/resource/AddWorkshop"]resource.AddWorkshop()[/URL]
If you resource.AddWorkshop() all the maps they will download everytime. The way I use for my server is the following (I believe posted by Matt several months ago): [lua] local maptable = {} maptable["example"] = exampleID maptable["example2"] = exampleID2 maptable["ttt_community_bowling_v5a"] = "131667838" if maptable[game.GetMap()] then resource.AddWorkshop(maptable[game.GetMap()]) end [/lua]
[QUOTE=zerf;46035573]If you resource.AddWorkshop() all the maps they will download everytime. The way I use for my server is the following (I believe posted by Matt several months ago): [lua] local maptable = {} maptable["example"] = exampleID maptable["example2"] = exampleID2 maptable["ttt_community_bowling_v5a"] = "131667838" if maptable[game.GetMap()] then resource.AddWorkshop(maptable[game.GetMap()]) end [/lua][/QUOTE] Thanks a lot! Thanks to you other people too! I wasn't aware of resource.AddWorkshop() :P
Sorry, you need to Log In to post a reply to this thread.