Author Topic: resource.AddWorkshop : not loading addons  (Read 4041 times)

0 Members and 1 Guest are viewing this topic.

Offline Tomzen

  • Full Member
  • ***
  • Posts: 115
  • Karma: -1
  • A new lua adventurer
    • Thirdage Gaming
resource.AddWorkshop : not loading addons
« on: May 09, 2015, 10:33:35 AM »
Do you guy see anything wrong with this?
Code: [Select]
resource.AddWorkshop( "329483976" )
resource.AddWorkshop( "261304669" )
resource.AddWorkshop( "145471626" )
resource.AddWorkshop( "148628139" )
resource.AddWorkshop( "307885458" )
resource.AddWorkshop( "310559057" )
resource.AddWorkshop( "311681055" )
resource.AddWorkshop( "339637218" )
resource.AddWorkshop( "123581457" )
resource.AddWorkshop( "158326196" )
resource.AddWorkshop( "341314189" )
resource.AddWorkshop( "335317414" )
resource.AddWorkshop( "235738973" )
resource.AddWorkshop( "220687225" )
resource.AddWorkshop( "316775058" )
resource.AddWorkshop( "310450507" )
resource.AddWorkshop( "317291024" )
resource.AddWorkshop( "241187700" )
resource.AddWorkshop( "332506201" )
resource.AddWorkshop( "242707219" )
resource.AddWorkshop( "248725380" )
resource.AddWorkshop( "312489252" )
resource.AddWorkshop( "372767154" )
resource.AddWorkshop( "272249278" )
resource.AddWorkshop( "433013068" )
resource.AddWorkshop( "320088877" )
resource.AddWorkshop( "160059572" ) 
resource.AddWorkshop( "310910055" )

It's in a file named "forcedl.lua" in "lua/autorun/server", when players connect (including me) it shows "Getting addon info for: <id>" for all of the addons and then takes a bit longer then usual to mount addons, then when you load the models I've uploaded to my server do not work (appear as errors)

I'm 100% I've uploaded the files correctly.
Finished:
Impersonate
<==> FakePromote/Demote <==> RandomMap <==> ForceMic <==> Search <==> PlayMenu <==
WIP:
ServerMode <==

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: resource.AddWorkshop : not loading addons
« Reply #1 on: May 09, 2015, 11:55:23 AM »
Alright, well two things. First, I would just put the file (and rename it) in lua/autorun/force_download_workshop.lua

Secondly, this most likely will not make a difference, but you always want to make sure. At the top of the file, do
Code: [Select]
if CLIENT return end
Thirdly, make sure that the addons you're wanting to add are as well on your server, or your server's collection.

Lastly, some of your addons, such as this one: http://steamcommunity.com/sharedfiles/filedetails/?id=433013068 require more addons, and in the description of this addon, he says you need more materials ect, but the ID on his description didn't appear to be in this list of addons, so that's something else you're maybe forgetting.

P.S. Claptrap sucks.
- - -

The way you described that though, it makes it sound like your client is having issues downloading that all, maybe it's just too much for Garry's Mod to handle, as to be honest, garry's mod barely work as it is. [/code]
« Last Edit: May 09, 2015, 11:57:07 AM by Bite That Apple »
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.