• Workshop server download problem
    2 replies, posted
I am trying to use the ability to make people download from workshop when they join my server. I have added a collection to the server and that seems to work but when i make a lua file with what addons people should download it seems to work but i get kicked for to many lua errors. The server console gives me the error. [ERROR] lua/autorun/workshop.lua:2: attempt to call field 'AddWorkshop' <a nil value> 1. unkown - lua/autorun/workshop.lua:2 this is my code is there something wrong with it. [code]--Fading Doorsresource.AddWorkshop( "105115318" ) --Door STool resource.AddWorkshop( "104479467" ) --Offset Trails resource.AddWorkshop( "104527283" ) --Laser sTool resource.AddWorkshop( "130574537" ) --1969 Dodge Charger resource.AddWorkshop( "108903285" ) --Stacker STool resource.AddWorkshop( "104479831" ) --Permapoly Weld and Prop Shrinker resource.AddWorkshop( "104506404" ) --physgun build mode resource.AddWorkshop( "116917055" ) --Re-Located STools resource.AddWorkshop( "104771157" ) --SmartSnap resource.AddWorkshop( "104815552" ) --Super Parent Multi resource.AddWorkshop( "105017171" ) --Wiremod resource.AddWorkshop( "160250458" )[/code] thanks in advance
Put it in lua/autorun/server as opposed to lua/autorun. Also, I recommend putting sv_kickerrornum 0 in your server.cfg [editline]22nd August 2013[/editline] Oh, and something I noticed in your code is that you put [code]--Fading Doorsresource.AddWorkshop( "105115318" )[/code] on one line. Is that on purpose?
[QUOTE=code_gs;41930509]Put it in lua/autorun/server as opposed to lua/autorun. Also, I recommend putting sv_kickerrornum 0 in your server.cfg [editline]22nd August 2013[/editline] Oh, and something I noticed in your code is that you put [code]--Fading Doorsresource.AddWorkshop( "105115318" )[/code] on one line. Is that on purpose?[/QUOTE] Thanks for the help. That part of the code was when i thought the problem was with one of the addons
Sorry, you need to Log In to post a reply to this thread.