Garry's Mod

Garry's Mod

N2 In-Game Workshop Downloader
51 Comments
Unbloated [イーブイ] 2 Feb @ 9:35am 
Don't use this, broken.

[N2WD] CollectionID: XXXXXXXXXX
[N2WD] CollectionID: XXXXXXXXXX
Unknown command: headtrack_reset_home_pos
[N2WD] Data collected!

[N2 In-Game Workshop Downloader] lua/autorun/client/cl_n2workshopdls.lua:165: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. onsuccess - lua/autorun/client/cl_n2workshopdls.lua:165
3. unknown - lua/includes/modules/http.lua:59

[N2WD] Data collected!

[N2 In-Game Workshop Downloader] lua/autorun/client/cl_n2workshopdls.lua:165: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. onsuccess - lua/autorun/client/cl_n2workshopdls.lua:165
3. unknown - lua/includes/modules/http.lua:59
party 29 Apr, 2023 @ 2:44am 
[ERROR] lua/autorun/client/cl_n2workshopdls.lua:165: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. onsuccess - lua/autorun/client/cl_n2workshopdls.lua:165
3. unknown - lua/includes/modules/http.lua:58
YoungVega 7 Apr, 2023 @ 3:37pm 
when people log back in to the server they still see things with errors even though they have already downloaded the addons with the plugin help
XxsSole!WizZxX 5 Mar, 2023 @ 5:11am 
why does this disable workshop resorce add files?

i need both?
HardCoreMC 19 Jun, 2022 @ 6:40am 
does it work with multiplayer
Eggroll 20 Dec, 2021 @ 12:26pm 
Does this still work?
lexicon 16 Feb, 2021 @ 11:28am 
Figured out my others, for those like me who want to clear it ALL and rejoin to check how it works for a totally "unprepared" client:

Clear garrysmod/data/n2wd, garrysmod/cache, garrysmod/download
Clear steamapps/workshop/content/4000, steamapps/workshop/download/4000
Close steam and delete steamapps/workshop/appworkshop_4000.acf
Start steam and you're done.

Of course, don't be subscribed to any during this. Unrelated to issue below, might be something on my end too though.
netram2  [author] 16 Feb, 2021 @ 9:35am 
When a mod has received an update, it will automatically get downloaded by the client.

About the locations, the mod has a folder in the data folder of Garry's mod. In it, he writes the used metadata. The files are named after the mod id. (Folder: [Garry's Mod Folder]\garrysmod\data\n2wd)
The mods get downloaded with Steamworks, the folder is located in [Steam Library]steamapps\workshop\content\4000
lexicon 16 Feb, 2021 @ 7:43am 
This is a great mod, thank you. Only issue I've had is I can't seem to find how it knows something is downloaded.

I tried clearing my Cache & Download folders & rejoining and it did not redownload. Not a fault of the mod, I obviously just didn't clear where it stores what's downloaded.

Adding a new mod caused it to download so it does work, where's that file stored? Does it work if mods get updated to update them?
netram2  [author] 21 Jan, 2021 @ 1:47am 
rAIZeN könntest du mir den Addon-Link mal schicken, damit ich mir das genauer ankucken kann
raizenxd 20 Jan, 2021 @ 10:48pm 
Es hat doch funktioniert aber auch irgendwie nicht. Ich habe es auf meinem Client getestet und es lädt die Sachen von Workshop aber beim beitreten wurden auch paar Sachen heruntergeladen die nicht Map relevant waren und nein ich mein nicht die Lua cl Dateien, Materials für GUIs, usw. sondern Texturen und Modelle von einen Billardtisch.
netram2  [author] 20 Jan, 2021 @ 8:55pm 
First it doesn't download maps, because addons can't download maps before joining mean if they can't join the server. I think the previous issue that the addon don't download textures of mods got fixed.
Second rAIZeN can u send something like errors.
raizenxd 20 Jan, 2021 @ 10:02am 
does not work
Charlie 14 Jan, 2021 @ 3:11pm 
Hey, its been a while since I've last been here. Is this add on able to download maps and has the previous issue with the missing textures with some mods been fixed?
>KB> >KEKSQUAD 18 Dec, 2020 @ 9:08pm 
Thanks!
netram2  [author] 18 Dec, 2020 @ 8:31pm 
Bug fixxed
>KB> >KEKSQUAD 18 Dec, 2020 @ 7:28pm 
[ERROR] lua/autorun/client/cl_n2workshopdls.lua:154: attempt to index local 'res' (a nil value)
1. onsuccess - lua/autorun/client/cl_n2workshopdls.lua:154
2. unknown - lua/includes/modules/http.lua:58
netram2  [author] 13 Nov, 2020 @ 5:32am 
problem solved
>KB> >KEKSQUAD 13 Nov, 2020 @ 5:06am 
No worries!
netram2  [author] 13 Nov, 2020 @ 5:01am 
I'm sorry, I was on vacation. I will fix the problem
>KB> >KEKSQUAD 11 Nov, 2020 @ 2:56pm 
Bump
>KB> >KEKSQUAD 9 Nov, 2020 @ 1:10am 
Hey, so I noticed that the downloads are happening even though the person is subbed to the addon.
netram2  [author] 19 Aug, 2020 @ 1:47pm 
Bug fixed
netram2  [author] 19 Aug, 2020 @ 12:17pm 
could you please send me the collection to be downloaded with the add-on?
>KB> >KEKSQUAD 19 Aug, 2020 @ 5:55am 
[ERROR] lua/autorun/client/cl_n2workshopdls.lua:78: attempt to concatenate field 'title' (a nil value)
1. unknown - lua/autorun/client/cl_n2workshopdls.lua:78

>KB> >KEKSQUAD 19 Aug, 2020 @ 5:55am 
[ERROR] lua/autorun/client/cl_n2workshopdls.lua:78: attempt to concatenate field 'title' (a nil value)
1. unknown - lua/autorun/client/cl_n2workshopdls.lua:78
netram2  [author] 11 Aug, 2020 @ 4:20am 
Yes, the items in the collection are also downloaded in the order in which they are displayed.
>KB> >KEKSQUAD 10 Aug, 2020 @ 5:13pm 
No I mean would the client download the items in the order that they appear in the collection?
netram2  [author] 10 Aug, 2020 @ 1:21pm 
A reorganization should not change anything, because the add-ons are queried individually and not as a large one, which means that even if the add-on is located elsewhere in the collection is not redownloaded.
>KB> >KEKSQUAD 9 Aug, 2020 @ 11:19pm 
Hey would it make a difference if I physically rearranged the collection?
Charlie 7 Aug, 2020 @ 8:13am 
okay
netram2  [author] 6 Aug, 2020 @ 11:02pm 
Thanks for the bug report. Fixing this could take longer because it's a problem with garrysmod itself. because the provided method (steamworks.DownloadUGC) does not work with all addons as I just noticed. I am going to develop my own method to fix this problem
Charlie 6 Aug, 2020 @ 8:41am 
hey, i've noticed that with some mods, it doesnt download/mount them entirely.
for example, my server has the lightsabers mod and although the main part is visible and fine, the lightsaber itself has the purple missing texture
netram2  [author] 5 Aug, 2020 @ 10:07pm 
Bug fixed
netram2  [author] 5 Aug, 2020 @ 9:17pm 
thanks for the bug report will fix it as soon as possible
>KB> >KEKSQUAD 5 Aug, 2020 @ 12:07pm 
[ERROR] lua/autorun/client/cl_n2workshopdls.lua:193: attempt to index local 'res' (a nil value)
1. unknown - lua/autorun/client/cl_n2workshopdls.lua:193
2. NewObject - [C]:-1
3. AddFunction - lua/vgui/dhtml.lua:132
4. Init - lua/vgui/dhtml.lua:18
5. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
6. unknown - lua/autorun/client/cl_n2workshopdls.lua:122
netram2  [author] 26 Jul, 2020 @ 8:14am 
this addon download maps too
Charlie 25 Jul, 2020 @ 4:33pm 
Is this able to download maps too?
netram2  [author] 25 Jul, 2020 @ 6:41am 
if you join the server there should be information on the right that an addon will be downloaded
Charlie 25 Jul, 2020 @ 4:29am 
Okay, thanks for the infromation. Is there some way I can tell that I did everything correctly and that I set it up properly?
netram2  [author] 24 Jul, 2020 @ 12:51pm 
Yes, it's server side
Charlie 24 Jul, 2020 @ 11:33am 
So this is serverside and does not need to be downloaded clientside right?
netram2  [author] 24 Jul, 2020 @ 11:12am 
the downloaded mods are mounted in-game directly after the download.
Simply add the addon to the server and enter the collection ID in the server configuration (n2wd_collection "<your workshop collection ID>"). No further settings are required for this addon.
Charlie 24 Jul, 2020 @ 9:46am 
and does it also mount the downloaded mods automatically or do you have to rejoin for that?
Charlie 24 Jul, 2020 @ 9:36am 
So I just add this to my server's collection and it will add itself?
netram2  [author] 24 Jul, 2020 @ 8:49am 
you do not have to download the addon itself via the workshop.lua, because the lua files of this addon are normally downloaded automatically
Charlie 24 Jul, 2020 @ 7:28am 
Hey, thanks for your response,
So I only need this mod as the only entry in the workshop.lua file?
netram2  [author] 24 Jul, 2020 @ 5:37am 
You do not have to delete your workshop.lua file, but all entries that should be loaded via this addon are downloaded twice if they are in the workshop.lua. The addons are downloaded only once and this addon checks whether a mod has not been downloaded, and it also automatically detects updates.