on our server we have alot of maps and a voting addon. i was wondering how i could make it so that the maps will only download when they are voted by the players and not as soon as you join the server.
Only resource.AddWorkshop the result of game.GetMap
i apoligise but that makes 0 sense to me. atm all of the maps are added to workshop.lua
[QUOTE=code_gs;49327944][code]local maps = {
gm_construct_workshop = "123456",
ttt_whatever = "132435",
}
if ( maps[ game.GetMap() ] ) then
resource.AddWorkshop( maps[ game.GetMap() ] )
end[/code][/QUOTE]
Wouldn't you still need the map on FastDL? I thought workshop addons mount after you've connected to the server, and if that is the case then wouldn't uploading it to only FastDL solve the issue as it wouldn't be downloading a map collection?
The resource.AddWorkshop function downloads single workshop addons only.
The client automatically mounts all workshop addons before it checks for the map on the client.
On every map change, it is refreshed with the new list from the server.
FastDL in my opinion is always a step-backwards even for a single map file. You just can't beat Valve's awesome CDN.
Sorry, you need to Log In to post a reply to this thread.