• WorkShop.vdf / Anyway to put my addons on my gmod server
    5 replies, posted
Ive started a server on my own computer for the first time, everything works, people can join and etc. but when my friends join and ive put a new addon on the server (using GMAD extractor) and i add the workshop number in the workshop.vdf file they dont download the file at all heres the workshop.vdf file, [QUOTE] "addons" { "1" "[119937872]" "2" "[104482086]" "3" "[117667617]" "4" "[108720350]" "5" "[105982362]" "6" "[157884508]" "7" "[128089118]" "8" "[128091208]" "9" "[128093075]" "10" "[144982052]" "11" "[123277559]" "12" "[123277559]" "13" "[110981497]" "14" "[107214517]" "15" "[160250458]" "16" "[129637512]" "17" "[162747683]" "18" "[112278083]" "19" "[137171970]" "20" "[128563326]" "21" "[108424005]" "22" "[108813333]" "23" "[173476625]" }[/QUOTE] I install them they work perfectlly for me is there anything wrong with the workshop.vdf file or do i need to put somthing into srcds to make it work??/
workshop.vdf is outdated. See [url]http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers[/url].
Make a resource.lua in your autorun folder, and put: [CODE] if SERVER then resource.AddWorkshop( "123" ) end [/CODE]
[QUOTE=OzymandiasJ;41809567] [code] local maptable = { ["ttt_foundation_a1"] = 135894827, ["ttt_bb_suburbia_b3"] = 131586546, ["ttt_inception_ar01"] = 139863788, ["ttt_construction_v3"] = 148394206 } local map = game.GetMap() if maptable[map] then resource.AddWorkshop(maptable[map]) end[/code][/QUOTE] This is suggested for maps. If you're going to do a bunch of workshop addons you can still have them in a table like that and do something like: [code] local workshoptable = { 119937872, 104482086, 117667617, 108720350, 105982362, 157884508, 128089118, 128091208, 128093075, 144982052, 123277559, 123277559, 110981497, 107214517, 160250458, 129637512, 162747683, 112278083, 137171970, 128563326, 108424005, 108813333, 173476625, } for _, v in ipairs(workshoptable) do resource.AddWorkshop(v) end[/code]
[QUOTE=Robotboy655;42133850]workshop.vdf is outdated. See [url]http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers[/url].[/QUOTE] Thanks this worked the best, very easy to set up and fast DL c:
You don't need fastDL for workshop addons, see upper posts.
Sorry, you need to Log In to post a reply to this thread.