• Assistance with Workshop Download and my server
    8 replies, posted
I have an issue with my server, the server downloads all the addons from the collection I specify and mounts them. Also when clients connect they download all of the addons and the .gma's do show up in their "garrysmod/downloads/server/" so they are downloaded properly. However when the client loads in they are missing the models, textures, and sounds from the addons. At first I thought it was an issue with how I made the addons but I used a .gma extractor and it seems like it is made just like them and should work properly. (They are just /materials, /models, /maps, and /sounds in three separate addons. Also my resources file seems perfectly fine. My Resources file [code] if (SERVER) then resource.AddWorkshop( "131245637" ) resource.AddWorkshop( "131243694" ) resource.AddWorkshop( "131246684" ) resource.AddWorkshop( "112607905" ) resource.AddWorkshop( "123455501" ) resource.AddWorkshop( "113999373" ) resource.AddWorkshop( "113999373" ) resource.AddWorkshop( "120766823" ) resource.AddWorkshop( "120766823" ) resource.AddWorkshop( "120765874" ) resource.AddWorkshop( "119148120" ) resource.AddWorkshop( "123455885" ) resource.AddWorkshop( "123456202" ) resource.AddWorkshop( "119148996" ) resource.AddWorkshop( "114001545" ) resource.AddWorkshop( "114000337" ) resource.AddWorkshop( "113997239" ) resource.AddWorkshop( "112606459" ) resource.AddWorkshop( "126920533" ) resource.AddWorkshop( "119146471" ) resource.AddWorkshop( "113118541" ) resource.AddWorkshop( "113120185" ) resource.AddWorkshop( "126921199" ) resource.AddWorkshop( "210637861" ) resource.AddWorkshop( "218823077" ) //Sound resource.AddWorkshop( "218822613" ) //Model resource.AddWorkshop( "218822079" ) //Materials end[/code] That is placed in lua/autorun/server/ Help would be appreciated. *First Edit* Not fixed but it appears the server will not display files unless they are added via "resource.AddFile" which I was using previously. These models and materials will not display even if the client has the file and the server has no problem spawning the model. I could have my server function on FastDL but I have 6000+ downloads and Garry only allows 4096 and it is also a lot slower.
With my workshop.lua i dont have any of the extra stuff. My file just looks something like this [CODE]resource.AddWorkshop( "131245637" ) resource.AddWorkshop( "131243694" ) resource.AddWorkshop( "131246684" ) resource.AddWorkshop( "112607905" ) resource.AddWorkshop( "123455501" ) resource.AddWorkshop( "113999373" ) resource.AddWorkshop( "113999373" ) resource.AddWorkshop( "120766823" ) resource.AddWorkshop( "120766823" ) resource.AddWorkshop( "120765874" ) resource.AddWorkshop( "119148120" ) resource.AddWorkshop( "123455885" ) resource.AddWorkshop( "123456202" ) resource.AddWorkshop( "119148996" ) resource.AddWorkshop( "114001545" ) resource.AddWorkshop( "114000337" ) resource.AddWorkshop( "113997239" ) resource.AddWorkshop( "112606459" ) resource.AddWorkshop( "126920533" ) resource.AddWorkshop( "119146471" ) resource.AddWorkshop( "113118541" ) resource.AddWorkshop( "113120185" ) resource.AddWorkshop( "126921199" ) resource.AddWorkshop( "210637861" ) resource.AddWorkshop( "218823077" ) resource.AddWorkshop( "218822613" ) resource.AddWorkshop( "218822079" )[/CODE] My file seems to work when it looks like that. It has no If and then. Try it out without the extra stuff and see if it works.
Move your file to lua/autorun/, that's why you have if SERVER then.
I have attempted moving my file into lua/autorun/ and it did not change any results everyone downloads and it says they download the workshop content when they join. However when in game they do not see any of the content the .gma is supposed to have. I made the .gma files and I may have messed up. I simply placed the models into a folder named "models" and then published it to workshop. It looks like the other workshop content in the way I did it. I also tried those with and without "If (SERVER) then"
i have the same problem!
[QUOTE=kollegah;43775484]i have the same problem![/QUOTE] Spamming other threads saying you have the same issue won't solve your issue. You have your own thread, why spam the others? The problem is that you are not reading the wiki carefully enough. Have you even created your collection yet?
This has become beyond frustrating, if Workshop obviously does not work, don't prevent FastDL from operating by restricting it to 4096 downloads, no point other than to force a buggy system. EDIT: I now realize the issue is not my server but the workshop content. Because the ones I didn't make work. Three of the workshop addons I made, it is all the models I use in one, materials in another and another in sounds. The way I made them was from taking the models folder from my server and turning it into a .gma file So the contents of the addon were just "models, and addon.json" the client is showing no signs of using the content from the workshop. How am I supposed to make them if that isn't the case. If someone wants to add me on steam I would be extremely grateful.
[QUOTE=mada1998;43777491]This has become beyond frustrating, if Workshop obviously does not work, don't prevent FastDL from operating by restricting it to 4096 downloads, no point other than to force a buggy system. EDIT: I now realize the issue is not my server but the workshop content. Because the ones I didn't make work. Three of the workshop addons I made, it is all the models I use in one, materials in another and another in sounds. The way I made them was from taking the models folder from my server and turning it into a .gma file So the contents of the addon were just "models, and addon.json" the client is showing no signs of using the content from the workshop. How am I supposed to make them if that isn't the case. If someone wants to add me on steam I would be extremely grateful.[/QUOTE] If you're sending more than 4096 downloads, then you are sending too much to the client. Garry put that in place to prevent servers from doing that. What's wrong with your content?
Well I have TDMCars and those work fine, however my content packs for materials, models, and sounds aren't loading when the client is on the server. The way I made my content packs was turning a "models" "materials" and "sound" folder into a .gma and uploading them. They don't work as in missing models, sounds, and materials. I am not sending 4096+ downloads, that's why I switched to Workshop, which I'm complaining isn't working for me also all of the files being sent are used.
Sorry, you need to Log In to post a reply to this thread.